/**
 * AMC Package Protection — Checkout widget styles.
 *
 * Uses #id selectors for high specificity to override theme styles.
 */

/* ── Widget container (ID for specificity) ── */

#amc-protection-widget {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 45% !important;
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 14px 16px;
    border: 2px solid #3c8094;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    font-size: 14px;
    line-height: 18px;
    box-sizing: border-box;
}

/* ── Checkbox + label row ── */

#amc-protection-widget .amc-protection-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

#amc-protection-widget .amc-protection-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #3c8094;
    cursor: pointer;
}

/* ── Shield icon ── */

#amc-protection-widget .amc-protection-icon {
    display: flex;
    align-items: center;
    color: #3c8094;
    flex-shrink: 0;
}

#amc-protection-widget .amc-protection-icon svg {
    display: block;
}

/* ── Label text + fee ── */

#amc-protection-widget .amc-protection-text {
    flex: 1;
}

#amc-protection-widget .amc-protection-fee {
    font-weight: 700;
    color: #3c8094;
    white-space: nowrap;
}

/* ── Disclaimer text ── */

#amc-protection-widget .amc-protection-desc {
    margin: 10px 0 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 18px;
    color: #555;
    white-space: pre-wrap;
}

/* ── Link color ── */

#amc-protection-widget a {
    color: #3c8094;
}

/* ── Mobile: full width ── */

@media (max-width: 768px) {
    #amc-protection-widget {
        width: 100% !important;
        margin-left: auto;
        margin-right: auto;
        padding: 12px 14px;
    }

    #amc-protection-widget .amc-protection-label {
        font-size: 14px;
        gap: 8px;
    }
}
