/* === Popup фон === */
.one-click-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === Содержимое окна === */
.popup-content {
  background: #fff;
  border-radius: 12px;
  padding: 25px 30px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  font-family: "Roboto", sans-serif;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* === Крестик закрытия === */
.popup-content .close {
  position: absolute;
  right: 15px; top: 10px;
  cursor: pointer;
  font-size: 22px;
  color: #555;
  transition: color 0.2s ease;
}
.popup-content .close:hover {
  color: #000;
}

/* === Заголовок === */
.popup-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

/* === Информация о товаре === */
.product-info p {
  margin-bottom: 20px;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
}

/* === Поля формы === */
.popup-content input {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}
.popup-content input:focus {
  outline: none;
  border-color: #007b43;
}

/* === Кнопка отправки === */
.popup-content button {
  width: 100%;
  padding: 12px;
  background: #007b43;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.popup-content button:hover {
  background: #006238;
}

/* === Сообщение после отправки === */
.result-message {
  margin-top: 10px;
  color: #007b43;
  font-weight: 500;
  display: none;
}

/* === Кнопка "Купить в 1 клик" === */
.single_add_to_cart_button.woodmart-one-click-btn {
  display: inline-block !important;
  vertical-align: middle;
  margin-left: 10px;
  border: 2px solid #007b43;
  color: #007b43;
  background: transparent;
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  text-transform: none;
}
.single_add_to_cart_button.woodmart-one-click-btn:hover {
  background: #007b43;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 123, 67, 0.2);
}

/* === Мобильная адаптация === */
@media (max-width: 768px) {
  .single_add_to_cart_button.woodmart-one-click-btn {
    display: block !important;
    width: 100%;
    margin: 10px 0 0 0;
  }

  .popup-content {
    max-width: 90%;
    padding: 20px;
  }

  .popup-content h3 {
    font-size: 18px;
  }

  .popup-content input, 
  .popup-content button {
    font-size: 14px;
  }
}
/* === Поля формы === */
.popup-content input,
.popup-content textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
}

.popup-content input::placeholder,
.popup-content textarea::placeholder {
  color: #999;
  font-weight: 400;
}

.popup-content input:focus,
.popup-content textarea:focus {
  outline: none;
  border-color: #007b43;
  box-shadow: 0 0 0 2px rgba(0, 123, 67, 0.1);
}

/* === Кнопка отправки === */
.popup-content button {
  width: 100%;
  padding: 13px;
  background: #007b43;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.popup-content button:hover {
  background: #006238;
  transform: translateY(-2px);
}
