/* Oxiline Shipping Protection — cart drawer / cart page row + checkout toggle. */

/* Discreet information card (no price emphasis, subtle border). */
.oxi-sp-row {
    display: flex;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.015);
}

.oxi-sp-row.oxi-sp-pending {
    opacity: 0.6;
    pointer-events: none;
    cursor: progress;
}

.oxi-sp-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.oxi-sp-icon {
    flex: 0 0 auto;
    color: #64748b;
    display: inline-flex;
    margin-top: 2px;
}

.oxi-sp-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.oxi-sp-title-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.oxi-sp-title {
    font-weight: 500;
    color: #334155;
}

/* Price kept light — not bold. */
.oxi-sp-amount {
    font-weight: 400;
    color: #334155;
    white-space: nowrap;
}

.oxi-sp-desc {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #94a3b8;
}

/* Opt-out/opt-in link under the Proceed-to-Checkout button. */
.oxi-sp-toggle-wrap {
    display: flex;
    justify-content: center;
}

.oxi-sp-toggle-wrap.oxi-sp-pending {
    opacity: 0.6;
    pointer-events: none;
    cursor: progress;
}

/*
 * Hard reset: CheckoutWC (and some themes) style every <button> as a filled
 * button via `.checkoutwc button`, which out-specifies our class selector and
 * renders the link as a big grey block. Force a plain inline text link.
 */
.oxi-sp-toggle {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.3 !important;
    border-radius: 0 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    font-size: 13px;
    font-weight: 400 !important;
    color: #64748b !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    cursor: pointer;
}

.oxi-sp-toggle:hover {
    background: none !important;
    color: #0f172a !important;
}

/* Checkout (CheckoutWC order review). */

/* Subtle "Remove" link sitting right under the fee line item. */
.oxi-sp-fee-action {
    display: block;
    margin-top: 2px;
    line-height: 1.2;
    text-align: right;
}

.oxi-sp-fee-action.oxi-sp-pending {
    opacity: 0.6;
    pointer-events: none;
}

/* "Add protection" link under the order total. */
.oxi-sp-checkout-add {
    text-align: right;
}

.oxi-sp-checkout-add.oxi-sp-pending {
    opacity: 0.6;
    pointer-events: none;
}

/* Inline hyperlink style — intentionally low-key. */
.oxi-sp-toggle--link {
    font-size: 12px;
    font-weight: 400 !important;
    color: #94a3b8 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.oxi-sp-toggle--link:hover {
    color: #475569 !important;
}

/*
 * Specificity boost for CheckoutWC: `.checkoutwc button { color:#fff }` has
 * higher specificity (0,1,1) than a single class (0,1,0), so even our
 * !important color lost. These descendant selectors (0,2,0) win, and we darken
 * the link so it's clearly readable on the light totals background.
 */
.oxi-sp-fee-action .oxi-sp-toggle,
.oxi-sp-checkout-add .oxi-sp-toggle {
    /* Match the muted gray of the surrounding totals text. */
    color: inherit !important;
    font-size: 12px !important;
    text-decoration: underline !important;
}

/* Keep the inherited gray on hover (CheckoutWC's button:hover turns it white). */
.oxi-sp-fee-action .oxi-sp-toggle:hover,
.oxi-sp-checkout-add .oxi-sp-toggle:hover {
    color: inherit !important;
    opacity: 0.75;
}

.oxi-sp-toggle-wrap .oxi-sp-toggle {
    color: #475569 !important;
    text-decoration: underline !important;
}

.oxi-sp-toggle-wrap .oxi-sp-toggle:hover {
    color: #0f172a !important;
}
