/* ── Checkout + Payment ── */
/* Checkout and Payment Modal styles */
.checkout-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 3, 7, 0.75);
  backdrop-filter: blur(14px) saturate(190%);
  -webkit-backdrop-filter: blur(14px) saturate(190%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.checkout-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.checkout-modal {
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  background: linear-gradient(135deg, rgba(13, 11, 22, 0.96) 0%, rgba(5, 5, 8, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 28px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow-y: auto;
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 var(--p-white-a10),
    0 0 35px rgba(168, 85, 247, 0.12);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.checkout-overlay.visible .checkout-modal {
  transform: scale(1) translateY(0);
}
.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.checkout-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--p-white);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--p-white) 0%, var(--p-purple-200) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.checkout-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--p-white-a3);
  border: 1px solid var(--p-white-a8);
  color: rgba(255, 255, 255, 0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer;
  transition: all 0.3s;
}
.checkout-close:hover {
  background: var(--p-white-a10);
  color: var(--p-white);
}
.checkout-field-group {
  display: flex;
  flex-direction: column;
  position: relative;
}
.gift-label-row {
  font-size: 11px;
  color: var(--p-white-a40);
  font-style: italic;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.gift-input-wrapper, .promo-input-wrapper, .receipt-email-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.gift-input-wrapper input, .promo-input-wrapper input, .receipt-email-wrapper input {
  width: 100%;
  padding: 12px 50px 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--p-white-a6);
  background: rgba(255, 255, 255, 0.02);
  color: var(--p-white);
  font-size: 13px;
  font-family: inherit;
  transition: all 0.3s;
}
.gift-input-wrapper input:focus, .promo-input-wrapper input:focus, .receipt-email-wrapper input:focus {
  border-color: var(--p-purple-a50);
  background: var(--p-white-a4);
  outline: none;
  box-shadow: 0 0 10px var(--p-purple-a15);
}
/* Без кнопки справа, как у gift/promo — email во всю ширину. */
.receipt-email-wrapper input {
  padding-right: 16px;
}
.gift-submit-btn, .promo-submit-btn {
  position: absolute;
  right: 6px;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--p-purple-600) 0%, var(--p-pink-500) 100%);
  border: none;
  color: var(--p-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.gift-submit-btn:hover, .promo-submit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}
.gift-submit-btn svg, .promo-submit-btn svg {
  width: 16px; height: 16px;
}
.gift-autocomplete-wrapper {
  position: relative;
  flex: 1;
}
.gift-autocomplete-wrapper input {
  width: 100%;
  padding: 12px 50px 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--p-white-a6);
  background: rgba(255, 255, 255, 0.02);
  color: var(--p-white);
  font-size: 13px;
  font-family: inherit;
  transition: all 0.3s;
  box-sizing: border-box;
}
.gift-autocomplete-wrapper input:focus {
  border-color: var(--p-purple-a50);
  background: var(--p-white-a4);
  outline: none;
  box-shadow: 0 0 10px var(--p-purple-a15);
}
.gift-autocomplete-wrapper input.input-error, .receipt-email-wrapper input.input-error {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}
.gift-autocomplete-wrapper input.input-ok {
  border-color: rgba(45, 212, 191, 0.6);
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.12);
}
.gift-hint {
  font-size: 10px;
  margin-top: 4px;
  padding-left: 4px;
  min-height: 14px;
  transition: color 0.2s;
}
.gift-hint.error { color: rgba(239, 68, 68, 0.85); }
.gift-hint.ok    { color: rgba(45, 212, 191, 0.85); }
.gift-hint.info  { color: var(--p-white-a35); }
.gift-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: rgba(22, 18, 36, 0.97);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
  overflow: hidden;
  display: none;
}
.gift-suggestions.visible { display: block; }
.gift-suggestion-item {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--p-white-a85);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.gift-suggestion-item:hover, .gift-suggestion-item.focused {
  background: var(--p-purple-a15);
  color: var(--p-white);
}
.gift-suggestion-item .sug-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0; color: var(--p-purple-200);
}
.gift-suggestion-clear {
  padding: 7px 14px;
  font-size: 10px;
  color: var(--p-white-a25);
  cursor: pointer;
  border-top: 1px solid var(--p-white-a5);
  text-align: right;
  transition: color 0.15s;
}
.gift-suggestion-clear:hover { color: rgba(239, 68, 68, 0.7); }
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--p-white-a45);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.checkout-dropdown {
  position: relative;
  width: 100%;
}
.checkout-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--p-white-a6);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
  -webkit-user-select: none;
}
.checkout-dropdown-trigger:hover {
  border-color: var(--p-white-a15);
  background: var(--p-white-a4);
}
.checkout-dropdown.open .checkout-dropdown-trigger {
  border-color: var(--p-purple-a50);
  box-shadow: 0 0 10px var(--p-purple-a15);
}
.dropdown-chevron {
  width: 16px; height: 16px;
  color: var(--p-white-a40);
  transition: transform 0.3s;
}
.checkout-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--p-purple-300);
}
.checkout-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--p-bg-1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 16px;
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.85);
  display: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s;
}
.checkout-dropdown.open .checkout-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.checkout-dropdown-item {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--p-white-a70);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkout-dropdown-item:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--p-white);
}
.checkout-dropdown-item.active {
  background: var(--p-purple-a20);
  color: var(--p-purple-200);
  font-weight: 600;
}
.checkout-usp-label {
  font-size: 11px;
  color: var(--p-pink-500);
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.01em;
  animation: pulseUsp 2s infinite ease-in-out;
}
@keyframes pulseUsp {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; transform: scale(1.005); }
}
.checkout-summary-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--p-white-a4);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  gap: 12px;
}
.summary-row > span:first-child {
  flex-shrink: 0;
}
.summary-value {
  color: var(--p-white);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}
.highlight-price {
  color: var(--p-pink-500) !important;
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}
.payment-info-box {
  border: 1px dashed rgba(168, 85, 247, 0.3);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
  color: var(--p-pink-500);
  font-size: 12px;
  font-weight: 600;
  background: rgba(236, 72, 153, 0.02);
  line-height: 1.3;
}
.agreement-wrapper {
  margin-top: 4px;
  margin-bottom: 2px;
}
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.checkout-checkbox-hidden {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.checkout-checkbox-custom {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--p-white-a15);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  margin-top: 1px;
}
.checkbox-container:hover .checkout-checkbox-custom {
  border-color: var(--p-white-a30);
}
.checkout-checkbox-hidden:checked + .checkout-checkbox-custom {
  background: linear-gradient(135deg, var(--p-purple-600) 0%, var(--p-pink-500) 100%);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}
.agreement-text {
  font-size: 11px;
  color: var(--p-white-a45);
  line-height: 1.4;
}
.agreement-text a {
  color: var(--p-purple-200);
  text-decoration: underline;
  font-weight: 500;
}
.agreement-text a:hover {
  color: var(--p-white);
}
.checkout-btn {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--p-purple-600) 0%, var(--p-pink-500) 100%);
  border: 1px solid var(--p-white-a15);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  color: var(--p-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 16px rgba(124,58,237,0.25), inset 0 1px 0 var(--p-white-a20);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.checkout-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.5), inset 0 1px 0 var(--p-white-a30);
}
.checkout-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.checkout-btn:disabled {
  background: var(--p-white-a8);
  border-color: var(--p-white-a5);
  color: var(--p-white-a25);
  cursor: not-allowed;
  box-shadow: none;
}
.oferta-content {
  color: var(--p-white-a70);
  font-size: 12px;
  line-height: 1.5;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 8px;
  text-align: justify;
}
.oferta-content p {
  margin-bottom: 10px;
}
.oferta-content h3 {
  color: var(--p-white);
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 6px;
}

