/*
Theme Name:  Wollschlaeger Child
Template:    wts
Version:     1.0
*/
@import url('../wts/style.css');


/* ── Enquiry button ─────────────────────────── */
.woo-enquiry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 13px 20px;
  background: #25D366;
  color: #fff !important;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.woo-enquiry-btn:hover { background: #1EBE5A; }

/* ── Trust banners ──────────────────────────── */
.trust-banner-block { margin-top: 16px; }

.trust-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.trust-box {
    background: #e8f0fe;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.trust-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}
.trust-box strong {
    display: block;
    font-size: 13px;
    color: #1a1a1a;
    margin-bottom: 3px;
}
.trust-box span {
    font-size: 11px;
    color: #5f6368;
}
.payment-options-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}
.payment-options-box strong {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.payment-options-box img {
    max-width: 100%;
    height: auto;
}

/* ── Mobile: stack banners vertically ────── */
@media (max-width: 600px) {
  .woo-trust-banners { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid #e0e0e0; }
  .trust-item:last-child { border-bottom: none; }
}

/* ── Loop enquiry button ────────────────────── */
.woo-loop-enquiry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: calc(100% - 24px);
    margin: 6px 12px 10px;
    padding: 8px;
    background: #25d366;
    color: #fff !important;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.woo-loop-enquiry:hover { background: #1ebe5d; }

/* ── Loop % badge ───────────────────────────── */
.woo-pct-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e07b00;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 4px;
    z-index: 2;
    min-width: unset;
    line-height: 1.4;
}
ul.products .onsale {
    margin: 0;
    border-radius: 4px;
    min-height: unset;
    min-width: unset;
    line-height: 1.4;
}

/* ── % Off Sale ────── */

.onsale {
    background: #cc3a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
}

.single-sale-badge {
    display: inline-block;
    background: #cc3a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* ── Price on Request button (single product) ────── */
.price-on-request-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 13px 20px;
    background: #008000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.price-on-request-btn:hover { background: #006600; }

/* Gap between stacked action buttons on single product page */
.price-on-request-btn,
.woo-enquiry-btn,
.wts-print-btn {
    margin-top: 12px;
}

/* ── Price on Request button (loop cards) ────── */
.price-on-request-btn--loop {
    width: calc(100% - 24px);
    margin: 6px 12px 10px;
    padding: 8px;
    font-size: 12px;
    border-radius: 5px;
}

/* ── Price on Request popup modal ────── */
.wts-price-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wts-price-modal-overlay.is-open { display: flex; }

.wts-price-modal {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 380px;
    border-radius: 10px;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.wts-price-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: auto;
    height: auto;
    min-width: unset;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 22px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}
.wts-price-modal-close:hover,
.wts-price-modal-close:focus {
    background: transparent !important;
    color: #222;
}

.wts-price-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}
.wts-price-modal-product {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #008000;
}
.wts-price-modal-text {
    margin: 0 0 20px;
    font-size: 13px;
    color: #5f6368;
    line-height: 1.5;
}
.wts-price-modal-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #008000;
    color: #fff !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.wts-price-modal-whatsapp:hover { background: #006600; }

.wts-price-modal-rfq-toggle {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px;
    background: #fff;
    color: #008000;
    border: 1.5px solid #008000;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.wts-price-modal-rfq-toggle:hover { background: #f0f8f0; }

.wts-price-modal-rfq-form {
    display: none;
    text-align: left;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    max-height: 320px;
    overflow-y: auto;
}
.wts-price-modal-rfq-form.is-open { display: block; }
.wts-price-modal-rfq-form p { margin: 0 0 10px; }
.wts-price-modal-rfq-form input[type="text"],
.wts-price-modal-rfq-form input[type="email"],
.wts-price-modal-rfq-form input[type="tel"],
.wts-price-modal-rfq-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
}
.wts-price-modal-rfq-form input[type="submit"] {
    background: #008000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
}
.wts-price-modal-rfq-form input[type="submit"]:hover { background: #006600; }

/* ── Print button (single product page) ────── */
.wts-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.wts-print-btn:hover { background: #f2f2f2; border-color: #999; }

/* Hide print button + on-page action buttons/modal when printing */
@media print {
    .wts-print-btn,
    .price-on-request-btn,
    .woo-enquiry-btn,
    .sv-bulk-banner,
    .wts-price-modal-overlay {
        display: none !important;
    }
}

/* ── Bulk order banner (below share buttons) — slim/slick ────── */
.sv-bulk-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 6px 10px;
    min-height: 50px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.sv-bulk-banner:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}
.sv-bulk-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.sv-bulk-icon {
    color: #008000;
    font-size: 11px;
    flex-shrink: 0;
}
.sv-bulk-title {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    white-space: nowrap;
}
.sv-bulk-sub {
    font-size: 11px;
    color: #8a8f98;
    line-height: 1.2;
    margin-top: 1px;
}
.sv-bulk-btn {
    flex-shrink: 0;
    background: #008000;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.2s;
    pointer-events: none; /* click handled by parent banner */
}
.sv-bulk-banner:hover .sv-bulk-btn { background: #006600; }

@media (max-width: 480px) {
    .sv-bulk-title { white-space: normal; }
}


/* ── Checkout: payment icons ─────────────────── */
.wts-checkout-payment-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #f7f9fc;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}
.wts-checkout-payment-label {
  font-size: 12px;
  font-weight: 700;
  color: #1a3a6b;
  text-transform: uppercase;
  white-space: nowrap;
}
.wts-checkout-payment-icons img {
  max-height: 26px;
  width: auto;
}

/* ── Checkout: delivery estimate box ─────────── */
.wts-delivery-estimate {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #e8f0fe;
  border: 1px solid #cddcf5;
  border-radius: 6px;
}
.wts-delivery-estimate-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: #1a3a6b;
}
.wts-delivery-estimate-head strong { font-size: 14px; }
.wts-delivery-estimate-text {
  margin: 0;
  font-size: 13px;
  color: #333;
}

/* ── Checkout: request a callback ────────────── */
.wts-callback-request {
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px dashed #1a3a6b;
  border-radius: 6px;
  background: #fff;
}
.wts-callback-request label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #1a1a1a;
}
.wts-callback-request input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.wts-callback-request span {
  display: block;
}

/* Block-checkout: additional field checkbox (Additional information area) */
.wc-block-checkout__additional-fields .wts\/request-callback,
.wc-block-components-checkbox:has(input[name*="request-callback"]) {
  border: 1px dashed #1a3a6b;
  border-radius: 6px;
  padding: 10px 14px;
  background: #fff;
}

/* ── Admin order edit: callback flag ─────────── */
.wts-admin-callback-flag {
  background: #fff3cd;
  border: 1px solid #ffe08a;
  border-radius: 4px;
  padding: 6px 10px;
  margin-top: 8px !important;
  color: #7a5b00;
}

.wts-emirate-select {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid #cddcf5;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
  color: #1a1a1a;
}
