/* Betesda checkout confidence panel — WooCommerce Checkout Block */
.betesda-checkout-trust {
    --bt-text:#171717;
    --bt-muted:#6b6b67;
    --bt-line:#e8e6df;
    --bt-soft:#faf9f6;
    --bt-gold:#8d6f2d;
    --bt-gold-soft:#faf5e8;
    width: min(100%, 430px);
    margin: 16px 0 0 auto;
    padding: 18px;
    border: 1px solid var(--bt-line);
    border-radius: 16px;
    background: #fff;
    color: var(--bt-text);
    box-sizing: border-box;
    font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    box-shadow: 0 10px 32px rgba(0,0,0,.035);
}
.betesda-checkout-trust *{box-sizing:border-box}
.betesda-trust-head{padding-bottom:14px;border-bottom:1px solid var(--bt-line)}
.betesda-trust-kicker{display:block;margin-bottom:6px;color:var(--bt-gold);font-size:10px;font-weight:800;letter-spacing:.1em}
.betesda-trust-head h3{margin:0 0 5px!important;font-size:17px!important;line-height:1.25!important;font-weight:750!important;letter-spacing:-.02em}
.betesda-trust-head p{margin:0!important;color:var(--bt-muted);font-size:12px;line-height:1.5}
.betesda-trust-list{padding:6px 0}
.betesda-trust-item{display:flex;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid #f0efeb}
.betesda-trust-item:last-child{border-bottom:0}
.betesda-trust-icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:var(--bt-soft);color:#2b2b2b}
.betesda-trust-icon svg,.betesda-checkout-whatsapp svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.betesda-trust-item--attention .betesda-trust-icon{background:var(--bt-gold-soft);color:var(--bt-gold)}
.betesda-trust-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.betesda-trust-copy strong{color:var(--bt-text);font-size:12px;line-height:1.25;font-weight:750}
.betesda-trust-copy small{color:var(--bt-muted);font-size:10.5px;line-height:1.35}
.betesda-checkout-whatsapp{display:flex!important;align-items:center;gap:10px;width:100%;margin-top:8px;padding:11px 12px!important;border:1px solid #171717!important;border-radius:11px!important;background:#171717!important;color:#fff!important;text-decoration:none!important;transition:transform .15s ease,background .15s ease}
.betesda-checkout-whatsapp:hover{background:#292929!important;color:#fff!important;transform:translateY(-1px)}
.betesda-checkout-whatsapp>span:first-child{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:rgba(255,255,255,.1)}
.betesda-checkout-whatsapp>span:last-child{display:flex;flex-direction:column;gap:1px;min-width:0;text-align:left}
.betesda-checkout-whatsapp strong{color:#fff;font-size:11.5px;line-height:1.25;font-weight:750}
.betesda-checkout-whatsapp small{color:rgba(255,255,255,.72);font-size:9.5px;line-height:1.3}
@media (max-width:781px){
  .betesda-checkout-trust{width:100%;max-width:none;margin:14px 0 0;padding:16px;border-radius:14px;box-shadow:none}
  .betesda-trust-head h3{font-size:16px!important}
  .betesda-trust-item{padding:9px 0}
}

/* v1.5 — the desktop panel lives inside the native WooCommerce sidebar. */
.wc-block-checkout__sidebar > .betesda-checkout-trust {
    width: 100%;
    max-width: none;
    margin: 16px 0 0;
}


/* v1.6 — savings visibility and contrast in the native order summary. */
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-badge.wc-block-components-sale-badge {
    background: #eaf8ef !important;
    border: 1px solid #b9e6c8 !important;
    color: #126b35 !important;
    font-weight: 750 !important;
    border-radius: 6px !important;
    padding: 3px 6px !important;
    line-height: 1.2 !important;
}

.wc-block-components-checkout-order-summary__title .betesda-summary-savings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 5px 8px;
    border: 1px solid #b9e6c8;
    border-radius: 999px;
    background: #eaf8ef;
    color: #126b35;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

/* Keep the compact header clean: title | total | savings | chevron. */
.wc-block-components-checkout-order-summary__title {
    gap: 8px;
}
.wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-price {
    margin-left: auto;
    white-space: nowrap;
}
.wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-price + .betesda-summary-savings {
    margin-left: 0;
}

/* The extra pill is primarily useful when the accordion is compact/collapsed. */
.wc-block-components-checkout-order-summary__title[aria-expanded="true"] .betesda-summary-savings {
    display: none;
}

@media (max-width: 480px) {
    .wc-block-components-checkout-order-summary__title .betesda-summary-savings {
        padding: 4px 6px;
        font-size: 10px;
    }
    .wc-block-components-checkout-order-summary__title {
        gap: 6px;
    }
}

/* v1.7 — stronger primary checkout CTA for better visibility/clickability. */
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button,
button.wc-block-components-checkout-place-order-button {
    width: 100% !important;
    min-height: 60px !important;
    padding: 17px 24px !important;
    border: 1px solid #137a3f !important;
    border-radius: 10px !important;
    background: #168447 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(22, 132, 71, .18) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    cursor: pointer !important;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

.wc-block-checkout__actions .wc-block-components-checkout-place-order-button .wc-block-components-button__text,
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text,
button.wc-block-components-checkout-place-order-button .wc-block-components-button__text,
button.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text {
    color: #ffffff !important;
    font-size: inherit !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover:not(:disabled),
button.wc-block-components-checkout-place-order-button:hover:not(:disabled) {
    background: #126f3a !important;
    border-color: #126f3a !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(18, 111, 58, .24) !important;
    transform: translateY(-1px);
}

.wc-block-checkout__actions .wc-block-components-checkout-place-order-button:focus-visible,
button.wc-block-components-checkout-place-order-button:focus-visible {
    outline: 3px solid rgba(22, 132, 71, .28) !important;
    outline-offset: 3px !important;
}

.wc-block-checkout__actions .wc-block-components-checkout-place-order-button:disabled,
button.wc-block-components-checkout-place-order-button:disabled {
    opacity: .62 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 781px) {
    .wc-block-checkout__actions .wc-block-components-checkout-place-order-button,
    button.wc-block-components-checkout-place-order-button {
        min-height: 58px !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }
}


/* v1.8.2 — robust duplicate cleanup across WooCommerce Blocks breakpoints. */
.checkout-order-summary-block-fill-wrapper {
    display: none !important;
}

/* Never show the injected savings pill on desktop/tablet landscape. */
@media (min-width: 782px) {
    .wc-block-components-checkout-order-summary__title .betesda-summary-savings {
        display: none !important;
    }
}

/* On mobile the custom savings pill is only useful in the collapsed header. */
@media (max-width: 781px) {
    .wc-block-components-checkout-order-summary__title[aria-expanded="true"] .betesda-summary-savings,
    .wc-block-components-checkout-order-summary__title.is-open .betesda-summary-savings {
        display: none !important;
    }
}
