/* ============================================================================
   USAR WC Bridge — frontend styles
   Brand: Navy #294a70, Navy Dark #1a3354, Gold #e69b1e, Green #2e7d32, Red #c62828
   Fonts: Playfair Display (headings), Inter (body)
   ============================================================================ */

.usar-wc-lookup,
.usar-wc-pathb-disclosure,
.usar-wc-completion,
.usar-wc-upsells {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
}

.usar-wc-lookup h4,
.usar-wc-completion h2,
.usar-wc-upsells h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #294a70;
    margin: 0 0 0.4em;
}

/* ============================================================================
   LOOKUP WIDGET
   ============================================================================ */
.usar-wc-lookup {
    background: #f4f6f9;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    padding: 1.25em 1.5em;
    margin: 0 0 1.5em;
}
.usar-wc-lookup-form h4 { font-size: 18px; }
.usar-wc-lookup-help {
    margin: 0 0 1em;
    font-size: 14px;
    color: #555;
}
.usar-wc-lookup-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}
.usar-wc-lookup-fields label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #294a70;
}
.usar-wc-lookup-fields label span { margin-bottom: 4px; font-weight: 600; }
.usar-wc-lookup-fields input {
    padding: 10px 12px;
    border: 1px solid #c0c8d1;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}
.usar-wc-lookup-fields input:focus {
    border-color: #294a70;
    outline: none;
    box-shadow: 0 0 0 3px rgba(41,74,112,0.15);
}
.usar-wc-lookup-submit.button {
    background: #294a70 !important;
    color: #fff !important;
    border: 0 !important;
    padding: 11px 18px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer;
    white-space: nowrap;
}
.usar-wc-lookup-submit.button:hover {
    background: #1a3354 !important;
}
.usar-wc-lookup-result {
    margin-top: 1em;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
}
.usar-wc-lookup-result.success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #2e7d32;
}
.usar-wc-lookup-result.error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #c62828;
}
.usar-wc-lookup-success {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e8f5e9;
    border: 1px solid #2e7d32;
    border-radius: 4px;
    padding: 0.75em 1em;
    color: #1b5e20;
    font-size: 14px;
}
.usar-wc-lookup-success-icon {
    width: 28px; height: 28px;
    background: #2e7d32; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.usar-wc-lookup-regid {
    font-family: 'Courier New', monospace;
    background: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
}
.usar-wc-lookup-clear {
    font-size: 12px;
    color: #294a70;
    text-decoration: underline;
}
.usar-wc-lookup-newbuyer {
    margin: 1em 0 0;
    font-size: 13px;
    color: #555;
}

@media (max-width: 640px) {
    .usar-wc-lookup-fields { grid-template-columns: 1fr; }
}

/* ============================================================================
   PATH B DISCLOSURE
   ============================================================================ */
.usar-wc-pathb-disclosure {
    background: linear-gradient(135deg, #f4f6f9 0%, #ffffff 100%);
    border: 1px solid #d8dde3;
    border-left: 5px solid #2e7d32;
    padding: 1.25em 1.5em;
    margin: 0 0 1.5em;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(41,74,112,0.04);
}
.usar-wc-pathb-disclosure h3 {
    margin: 0 0 0.6em;
    color: #294a70;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
}
.usar-wc-pathb-disclosure ul {
    margin: 0;
    padding-left: 1.2em;
    list-style: none;
    font-size: 14px;
    line-height: 1.7;
}
.usar-wc-pathb-disclosure ul li {
    position: relative;
    padding-left: 0.3em;
    margin-bottom: 0.4em;
}
.usar-wc-pathb-disclosure ul li::marker { content: ''; }
.usar-wc-pathb-disclosure ul li strong:first-child {
    color: #2e7d32;
    font-size: 16px;
    margin-right: 0.3em;
}

/* ============================================================================
   CART LINE ITEM — animal/breed/handler details (the data captured on product page)
   ============================================================================ */
.woocommerce-cart .cart_item dl.variation,
.woocommerce-checkout .cart_item dl.variation,
.woocommerce-cart-form dl.variation,
.woocommerce-checkout-review-order-table dl.variation {
    margin: 8px 0 0;
    padding: 8px 12px;
    background: #f4f6f9;
    border-left: 3px solid #294a70;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.5;
}
.woocommerce-cart-form dl.variation dt,
.woocommerce-checkout-review-order-table dl.variation dt {
    font-weight: 600;
    color: #294a70;
    margin: 0;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.woocommerce-cart-form dl.variation dd,
.woocommerce-checkout-review-order-table dl.variation dd {
    margin: 0 0 6px;
    color: #1a1a1a;
}
.woocommerce-cart-form dl.variation dd:last-child,
.woocommerce-checkout-review-order-table dl.variation dd:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   THANK-YOU PAGE COMPLETION UI
   ============================================================================ */
.usar-wc-completion {
    max-width: 720px;
    margin: 2em auto;
    background: #fff;
    border: 1px solid #d8dde3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.usar-wc-completion-inner {
    padding: 2em;
}
.usar-wc-completion-header {
    text-align: center;
    margin-bottom: 1.5em;
}
.usar-wc-completion-badge {
    display: inline-block;
    background: #e69b1e;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 0.6em;
}
.usar-wc-completion h2 {
    font-size: 28px;
    margin: 0 0 0.4em;
}
.usar-wc-completion-header p {
    margin: 0;
    color: #555;
    font-size: 15px;
}
.usar-wc-completion-progress {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 2em;
    padding: 0 1em;
}
.usar-wc-step {
    text-align: center;
    padding: 8px;
    border-bottom: 3px solid #d8dde3;
    transition: border-color 0.2s;
}
.usar-wc-step.active { border-color: #294a70; }
.usar-wc-step.done   { border-color: #2e7d32; }
.usar-wc-step-num {
    display: inline-block;
    width: 28px; height: 28px;
    background: #d8dde3;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}
.usar-wc-step.active .usar-wc-step-num { background: #294a70; }
.usar-wc-step.done   .usar-wc-step-num { background: #2e7d32; }
.usar-wc-step-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.usar-wc-section { border: none; padding: 0; margin: 0 0 1.5em; }
.usar-wc-section[data-section]:not(.active) { display: none; }
.usar-wc-section legend {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    color: #294a70;
    margin-bottom: 0.8em;
    padding: 0;
}
.usar-wc-section label {
    display: block;
    margin-bottom: 1em;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #294a70;
    font-weight: 600;
}
.usar-wc-section label span { display: block; margin-bottom: 6px; }
.usar-wc-section input[type="text"],
.usar-wc-section select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #c0c8d1;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Inter', system-ui, sans-serif;
    text-transform: none;
    color: #1a1a1a;
    letter-spacing: 0;
    font-weight: 400;
    background: #fff;
}
.usar-wc-section input:focus, .usar-wc-section select:focus {
    outline: none;
    border-color: #294a70;
    box-shadow: 0 0 0 3px rgba(41,74,112,0.15);
}

.usar-wc-uploader {
    margin-bottom: 1.5em;
    padding: 1em;
    border: 2px dashed #c0c8d1;
    border-radius: 6px;
    text-align: center;
}
.usar-wc-uploader label {
    text-align: center;
    margin-bottom: 0.6em;
}
.usar-wc-uploader input[type="file"] {
    display: block;
    margin: 0 auto;
    font-size: 14px;
}
.usar-wc-uploader-help {
    font-size: 12px;
    color: #777;
    margin-top: 0.4em;
    text-transform: none;
    letter-spacing: 0;
}
.usar-wc-uploader-preview {
    margin-top: 0.8em;
}
.usar-wc-uploader-preview img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 4px;
    border: 1px solid #d8dde3;
}

.usar-wc-signature {
    background: #f4f6f9;
    padding: 1em;
    border-radius: 6px;
    text-align: center;
}
#usar-wc-sig-canvas {
    background: #fff;
    border: 1px solid #d8dde3;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
    touch-action: none;
    cursor: crosshair;
}
.usar-wc-signature-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6em;
}
.usar-wc-signature-help {
    font-size: 12px;
    color: #555;
}
.usar-wc-sig-clear {
    background: transparent;
    border: 1px solid #c0c8d1;
    color: #555;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.usar-wc-completion-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2em;
}
.usar-wc-completion-actions button {
    background: #294a70;
    color: #fff;
    border: 0;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.usar-wc-completion-actions button:hover { background: #1a3354; }
.usar-wc-completion-actions button:disabled { opacity: 0.5; cursor: not-allowed; }
.usar-wc-prev { background: #777 !important; }
.usar-wc-submit { background: #2e7d32 !important; }
.usar-wc-submit:hover { background: #1b5e20 !important; }

.usar-wc-completion-result {
    margin-top: 1.5em;
    padding: 1em;
    border-radius: 4px;
    font-size: 14px;
}
.usar-wc-completion-result.success {
    background: #e8f5e9; color: #1b5e20; border: 1px solid #2e7d32;
}
.usar-wc-completion-result.error {
    background: #ffebee; color: #b71c1c; border: 1px solid #c62828;
}

.usar-wc-completion-trust {
    text-align: center;
    margin-top: 1.5em;
    color: #777;
}

.usar-wc-completion-done .usar-wc-completion-icon {
    width: 56px; height: 56px;
    margin: 0 auto 1em;
    background: #2e7d32;
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* ============================================================================
   UPSELLS
   ============================================================================ */
.usar-wc-upsells {
    max-width: 720px;
    margin: 1.5em auto;
    padding: 0 1em;
}
.usar-wc-upsells-header { text-align: center; margin-bottom: 1.5em; }
.usar-wc-upsells h3 { font-size: 24px; }
.usar-wc-upsells-sub { margin: 0; color: #555; font-size: 14px; }
.usar-wc-upsells-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.usar-wc-upsell-card {
    position: relative;
    background: #fff;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    padding: 1.5em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.usar-wc-upsell-pill {
    position: absolute;
    top: -10px; left: 12px;
    background: #e69b1e;
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
}
.usar-wc-upsell-card h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: #294a70;
    margin: 0 0 0.6em;
}
.usar-wc-upsell-card ul {
    padding-left: 1.2em;
    margin: 0 0 1em;
    font-size: 13px;
    line-height: 1.6;
}
.usar-wc-upsell-savings {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
    margin: 0 0 0.6em;
}
.usar-wc-upsell-btn {
    width: 100%;
    background: #294a70;
    color: #fff;
    border: 0;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}
.usar-wc-upsell-btn:hover { background: #1a3354; }
.usar-wc-upsell-included {
    background: #e8f5e9; color: #1b5e20;
    padding: 10px; border-radius: 4px;
    text-align: center; font-weight: 600; font-size: 14px;
}
.usar-wc-upsell-skip {
    text-align: center;
    margin-top: 1.5em;
}
.usar-wc-upsell-skip a {
    color: #777;
    font-size: 14px;
    text-decoration: underline;
}
.usar-wc-upsell-success, .usar-wc-upsell-cancel {
    max-width: 720px;
    margin: 1em auto;
    padding: 1em 1.5em;
    border-radius: 6px;
    text-align: center;
}
.usar-wc-upsell-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #2e7d32; }
.usar-wc-upsell-cancel  { background: #fff8e1; color: #856404; border: 1px solid #ffc107; }

@media (max-width: 640px) {
    .usar-wc-upsells-grid { grid-template-columns: 1fr; }
    .usar-wc-completion h2 { font-size: 22px; }
    .usar-wc-completion-inner { padding: 1.25em; }
}

/* ============================================================================
   PRODUCT-PAGE FORM (v0.6.1 — moved from checkout to product page)
   ============================================================================ */
.usar-wc-product-form {
    margin: 1.5em 0;
    padding: 1.5em;
    background: #fff;
    border: 2px solid #294a70;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(41,74,112,0.08);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}
.usar-wc-product-form *,
.usar-wc-product-form *::before,
.usar-wc-product-form *::after {
    box-sizing: border-box;
}
.usar-wc-product-form-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #294a70;
    margin: 0 0 0.4em;
    font-size: 22px;
}
.usar-wc-product-form-help {
    margin: 0 0 1em;
    font-size: 13px;
    color: #555;
}
.usar-wc-product-form-row { margin-bottom: 0.8em; }
.usar-wc-product-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.usar-wc-product-form-field {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #294a70;
    font-weight: 600;
    margin: 0;
}
.usar-wc-product-form-field span { margin-bottom: 4px; }
.usar-wc-product-form-field input,
.usar-wc-product-form-field select {
    padding: 10px 12px;
    border: 1px solid #c0c8d1;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1a1a1a;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    background: #fff;
}
.usar-wc-product-form-field input:focus,
.usar-wc-product-form-field select:focus {
    outline: none;
    border-color: #294a70;
    box-shadow: 0 0 0 3px rgba(41,74,112,0.15);
}

.usar-wc-product-form-uploaders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 1em 0;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}
.usar-wc-product-form-uploader {
    display: flex;
    flex-direction: column;
    padding: 1em;
    border: 2px dashed #c0c8d1;
    border-radius: 6px;
    text-align: center;
    background: #fafbfd;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
    min-height: 200px;
    min-width: 0;          /* grid item default is min-width:auto which causes overflow */
    max-width: 100%;
    overflow: hidden;       /* clamp any oversized children */
}
.usar-wc-product-form-uploader.has-photo { border-color: #2e7d32; background: #f1f8f1; }
.usar-wc-product-form-uploader label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.6em;
    font-size: 13px;
    font-weight: 600;
    color: #294a70;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.usar-wc-product-form-uploader input[type="file"] { display: block; margin: 0 auto; font-size: 13px; }
.usar-wc-product-form-uploader-help { font-size: 11px; color: #777; margin-top: auto; padding-top: 0.6em; line-height: 1.5; }
.usar-wc-product-form-uploader-preview { margin-top: 0.6em; }
.usar-wc-product-form-uploader-preview img { max-width: 140px; max-height: 140px; border-radius: 4px; border: 1px solid #d8dde3; }

/* Optional handler-photo uploader — visually softer than the required animal photo */
.usar-wc-product-form-uploader-optional {
    border-style: dashed;
    border-color: #d8dde3;
    background: #fafbfd;
}
.usar-wc-product-form-uploader-optional label {
    color: #555;
}
.usar-wc-optional-badge {
    display: inline-block;
    background: #d8dde3;
    color: #555;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
}
.usar-wc-product-form-uploader-optional.has-photo .usar-wc-optional-badge {
    background: #2e7d32;
    color: #fff;
}

.usar-wc-product-form-signature {
    background: #f4f6f9;
    padding: 1em;
    border-radius: 6px;
    margin-top: 1em;
}
.usar-wc-product-form-signature > label {
    display: block;
    margin-bottom: 0.5em;
    font-size: 13px;
    font-weight: 600;
    color: #294a70;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.usar-wc-product-form-signature #usar-wc-sig-canvas {
    background: #fff;
    border: 1px solid #d8dde3;
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
    height: 180px;
    touch-action: none;
    cursor: crosshair;
}
.usar-wc-product-form-signature-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 0.5em;
}
.usar-wc-product-form-signature-help { font-size: 12px; color: #555; }

@media (max-width: 640px) {
    .usar-wc-product-form-row-2,
    .usar-wc-product-form-uploaders {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   INLINE CHECKOUT FIELDS (v0.6.0)
   ============================================================================ */
.usar-wc-checkout-section {
    margin: 1.5em 0;
    padding: 1.5em;
    background: #fff;
    border: 1px solid #d8dde3;
    border-radius: 8px;
}
.usar-wc-checkout-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #294a70;
    margin: 0 0 0.4em;
    font-size: 22px;
}
.usar-wc-checkout-help { margin: 0 0 1em; font-size: 13px; color: #555; }
.usar-wc-checkout-uploader-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 1em 0;
}
.usar-wc-checkout-uploader {
    padding: 1em;
    border: 2px dashed #c0c8d1;
    border-radius: 6px;
    text-align: center;
    background: #fafbfd;
    transition: border-color 0.15s, background 0.15s;
}
.usar-wc-checkout-uploader.has-photo { border-color: #2e7d32; background: #f1f8f1; }
.usar-wc-checkout-uploader label {
    display: block;
    text-align: center;
    margin-bottom: 0.5em;
    font-size: 13px;
    font-weight: 600;
    color: #294a70;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.usar-wc-checkout-uploader input[type="file"] { display: block; margin: 0 auto; font-size: 13px; }
.usar-wc-checkout-uploader-help { font-size: 11px; color: #777; margin-top: 0.4em; }
.usar-wc-checkout-uploader-preview { margin-top: 0.6em; }
.usar-wc-checkout-uploader-preview img { max-width: 160px; max-height: 160px; border-radius: 4px; border: 1px solid #d8dde3; }

.usar-wc-checkout-signature {
    background: #f4f6f9;
    padding: 1em;
    border-radius: 6px;
    margin-top: 1em;
}
.usar-wc-checkout-signature > label {
    display: block;
    margin-bottom: 0.5em;
    font-size: 13px;
    font-weight: 600;
    color: #294a70;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.usar-wc-checkout-signature #usar-wc-sig-canvas {
    background: #fff;
    border: 1px solid #d8dde3;
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
    height: 180px;
    touch-action: none;
    cursor: crosshair;
}
.usar-wc-checkout-signature-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 0.5em;
}
.usar-wc-checkout-signature-help { font-size: 12px; color: #555; }

@media (max-width: 640px) {
    .usar-wc-checkout-uploader-row { grid-template-columns: 1fr; }
}

/* ============================================================================
   CROPPER MODAL
   ============================================================================ */
.usar-wc-cropper-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.usar-wc-cropper-modal.open { display: block; }
.usar-wc-cropper-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26,51,84,0.75);
    backdrop-filter: blur(2px);
}
.usar-wc-cropper-dialog {
    position: relative;
    max-width: 560px;
    width: calc(100% - 32px);
    margin: 4vh auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    z-index: 1;
}
.usar-wc-cropper-head {
    padding: 1.25em 1.5em;
    background: linear-gradient(135deg, #294a70 0%, #1a3354 100%);
    color: #fff;
}
.usar-wc-cropper-head h3 {
    margin: 0 0 0.3em;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    color: #fff;
}
.usar-wc-cropper-head p {
    margin: 0;
    font-size: 13px;
    opacity: 0.92;
}
.usar-wc-cropper-stage {
    padding: 1em;
    background: #f4f6f9;
    min-height: 360px;
    max-height: 50vh;
}
.usar-wc-cropper-stage img {
    display: block;
    max-width: 100%;
    height: auto;
}
.usar-wc-cropper-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0.75em 1em;
    background: #fafbfd;
    border-top: 1px solid #e6e9ee;
    border-bottom: 1px solid #e6e9ee;
}
.usar-wc-cropper-toolbar button {
    flex: 1 1 auto;
    min-width: 90px;
    background: #fff;
    border: 1px solid #c0c8d1;
    color: #294a70;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.usar-wc-cropper-toolbar button:hover {
    background: #294a70;
    color: #fff;
    border-color: #294a70;
}
.usar-wc-cropper-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 1em 1.5em;
}
.usar-wc-crop-cancel {
    background: transparent;
    border: 1px solid #c0c8d1;
    color: #555;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.usar-wc-crop-save {
    background: #2e7d32;
    color: #fff;
    border: 0;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.usar-wc-crop-save:hover { background: #1b5e20; }

.usar-wc-uploader.has-crop {
    border-color: #2e7d32;
    background: #f1f8f1;
}

/* ============================================================================
   EXIT-INTENT MODAL
   ============================================================================ */
.usar-wc-exit-intent {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
}
.usar-wc-exit-intent.open { display: block; }
.usar-wc-exit-intent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26,51,84,0.7);
}
.usar-wc-exit-intent-dialog {
    position: relative;
    max-width: 480px;
    width: calc(100% - 32px);
    margin: 10vh auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    z-index: 1;
    text-align: center;
}
.usar-wc-exit-intent-dialog .ei-banner {
    background: linear-gradient(135deg, #e69b1e 0%, #cf8a15 100%);
    color: #fff;
    padding: 1em 1.5em;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
}
.usar-wc-exit-intent-dialog .ei-body { padding: 1.5em; }
.usar-wc-exit-intent-dialog .ei-code {
    background: #fff9ed;
    border: 2px dashed #e69b1e;
    border-radius: 8px;
    padding: 0.8em;
    font-size: 24px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #1a3354;
    letter-spacing: 2px;
    margin: 1em 0;
}
.usar-wc-exit-intent-dialog .ei-cta {
    background: #2e7d32;
    color: #fff;
    border: 0;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}
.usar-wc-exit-intent-dialog .ei-dismiss {
    display: block;
    margin: 0.8em auto 0;
    background: transparent;
    border: 0;
    color: #777;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
}

/* ============================================================================
   TRUST SIGNALS
   ============================================================================ */
.usar-wc-trust-ticker {
    background: #f1f8f1;
    border: 1px solid #cce5d0;
    border-radius: 6px;
    padding: 0.6em 1em;
    margin: 0 0 1em;
    font-size: 13px;
    color: #1b5e20;
    display: flex;
    align-items: center;
    gap: 8px;
}
.usar-wc-trust-ticker .ticker-dot {
    width: 8px; height: 8px;
    background: #2e7d32;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.usar-wc-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 0.75em 0;
    margin: 1em 0;
    border-top: 1px solid #e6e9ee;
    border-bottom: 1px solid #e6e9ee;
}
.usar-wc-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.usar-wc-trust-badge::before {
    content: '✓';
    color: #2e7d32;
    font-weight: 700;
    font-size: 14px;
}

/* ============================================================================
   EXPRESS CHECKOUT
   ============================================================================ */
.usar-wc-express-checkout {
    background: #f4f6f9;
    border-radius: 8px;
    padding: 1em;
    margin: 0 0 1em;
    text-align: center;
}
.usar-wc-express-checkout .ec-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    margin-bottom: 0.5em;
}
.usar-wc-express-checkout #usar-wc-pr-button {
    max-width: 320px;
    margin: 0 auto;
}
.usar-wc-express-checkout .ec-divider {
    text-align: center;
    color: #777;
    font-size: 12px;
    margin: 0.6em 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

