/* Shackle & Tackle — inline enquiry modal */

.st-enquire-wrap {
  margin-top: 10px;
}

.st-enquire-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  padding: 12px 18px;
  border: 2px solid #e85d04;
  border-radius: 6px;
  background: #fff;
  color: #c44d00;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.st-enquire-trigger:hover,
.st-enquire-trigger:focus {
  background: #e85d04;
  border-color: #e85d04;
  color: #fff;
  outline: none;
}

.st-enquire-trigger__icon {
  font-size: 1.1em;
  line-height: 1;
}

.st-enquire-trigger--loop {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-width: 1px;
  border-radius: 6px;
  line-height: 1.2;
  box-sizing: border-box;
}

.st-enquire-wrap--loop {
  width: 100%;
  margin: 0;
  padding: 0 18px 16px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.st-enquiry-cart-wrap,
.st-enquiry-cart-sidebar-wrap,
.st-enquiry-checkout-wrap {
  margin-top: 0;
}

.st-enquiry-cart-sidebar-wrap,
.st-enquiry-checkout-wrap {
  margin-bottom: 12px;
}

.st-enquiry-cart-sidebar-wrap .st-enquire-wrap,
.st-enquiry-checkout-wrap .st-enquire-wrap {
  margin-top: 0;
}

.st-enquire-trigger--cart-sidebar,
.st-enquire-trigger--checkout {
  width: 100%;
  margin: 0;
}

.st-enquiry-cart-wrap {
  margin-top: 10px;
}

.st-enquiry-cart-wrap .st-enquire-trigger {
  width: 100%;
}

/* Modal */
html.st-enquiry-open {
  overflow: hidden;
}

.st-enquiry-modal[hidden] {
  display: none !important;
}

.st-enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.st-enquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.st-enquiry-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 24px 22px 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.st-enquiry-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #555;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.st-enquiry-modal__close:hover,
.st-enquiry-modal__close:focus {
  background: #f2f2f2;
  outline: none;
}

.st-enquiry-modal__title {
  margin: 0 32px 6px 0;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #1a1a1a;
}

.st-enquiry-modal__subtitle {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: #666;
  line-height: 1.45;
}

.st-enquiry-modal__summary {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f7f7f7;
  font-size: 0.92rem;
  line-height: 1.4;
}

.st-enquiry-summary__sku {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 0.85rem;
}

.st-enquiry-form .st-enquiry-field {
  margin: 0 0 12px;
}

.st-enquiry-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
}

.st-enquiry-form input[type="text"],
.st-enquiry-form input[type="tel"],
.st-enquiry-form input[type="email"],
.st-enquiry-form input[type="number"],
.st-enquiry-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.35;
}

.st-enquiry-form textarea {
  resize: vertical;
  min-height: 72px;
}

.st-enquiry-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #888;
}

.st-enquiry-actions {
  margin: 0;
}

.st-enquiry-submit {
  width: 100%;
  margin: 0;
  padding: 12px 16px !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.st-enquiry-message {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.st-enquiry-message--success {
  background: #e8f5e9;
  color: #1b5e20;
}

.st-enquiry-message--error {
  background: #ffebee;
  color: #b71c1c;
}

.st-enquiry-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* PDP: stack with WhatsApp quote */
.single-product .st-enquire-wrap {
  margin-top: 10px;
}

.single-product form.cart .st-enquire-trigger--pdp {
  margin-top: 0;
}

@media (min-width: 550px) {
  .single-product .st-pdp-quote + .st-enquire-wrap .st-enquire-trigger,
  .single-product .st-enquire-wrap + .st-pdp-quote {
    margin-top: 10px;
  }
}
