.wwqo-product-button-wrap,
.wwqo-cart-button-wrap,
.wwqo-checkout-button-wrap {
  margin: 14px 0;
}

.wwqo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  min-height: 44px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
  font-size: 15px;
}

.wwqo-btn:hover,
.wwqo-btn:focus {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .22);
}

.wwqo-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.wwqo-limit-notice {
  margin: 12px 0;
  padding: 12px 14px;
  border-left: 4px solid #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
  font-weight: 600;
}

body.wwqo-popup-open {
  overflow: hidden;
}

.wwqo-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.wwqo-popup.is-active {
  display: flex;
}

.wwqo-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .66);
  backdrop-filter: blur(3px);
}

.wwqo-popup__dialog {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .28);
  box-sizing: border-box;
}

.wwqo-popup__dialog h3 {
  margin: 0 44px 14px 0;
  font-size: 22px;
  line-height: 1.25;
  color: #0f172a;
}

.wwqo-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wwqo-popup__product-summary {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
}

.wwqo-popup__product-summary strong {
  color: #0f172a;
}

.wwqo-popup__product-summary span {
  font-size: 14px;
}

.wwqo-popup__form {
  display: grid;
  gap: 13px;
}

.wwqo-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #0f172a;
}

.wwqo-required {
  color: #dc2626;
  margin-left: 3px;
}

.wwqo-field input,
.wwqo-field textarea,
.wwqo-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #0f172a;
  box-sizing: border-box;
  font-size: 15px;
}

.wwqo-field textarea {
  min-height: 90px;
  resize: vertical;
}

.wwqo-field input.wwqo-error,
.wwqo-field textarea.wwqo-error,
.wwqo-field select.wwqo-error,
.wwqo-checkout-error input,
.wwqo-checkout-error select,
.wwqo-checkout-error textarea {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626 !important;
}

.wwqo-popup__submit {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .wwqo-btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  .wwqo-popup {
    align-items: flex-end;
    padding: 0;
  }

  .wwqo-popup__dialog {
    max-width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    padding: 20px 18px 18px;
  }

  .wwqo-popup__dialog h3 {
    font-size: 20px;
  }

  .wwqo-popup__close {
    top: 12px;
    right: 12px;
  }

  .wwqo-popup__submit {
    position: sticky;
    bottom: 0;
    z-index: 2;
    box-shadow: 0 -8px 16px rgba(255, 255, 255, .9);
  }
}
