/* SP Ship Countdown — storefront widget.
   Colors are driven entirely by admin-configured CSS custom properties:
   --sscd-bg, --sscd-text, --sscd-accent, --sscd-border. */

.sscd {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--sscd-text, #1f2937);
    margin: 14px 0;
    box-sizing: border-box;
}
.sscd__icon { font-size: 1.15em; line-height: 1; flex: none; }
.sscd__text { font-weight: 500; }
.sscd__timer {
    color: var(--sscd-accent, #2556c4);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
}

/* Skin: Minimal — plain inline text, no chrome */
.sscd--minimal { background: transparent; padding: 0; }

/* Skin: Boxed — soft card with an accent edge */
.sscd--boxed {
    background: var(--sscd-bg, #f5f7fc);
    border-left: 3px solid var(--sscd-border, #2556c4);
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
}

/* Skin: Banner — full-width strip */
.sscd--banner {
    background: var(--sscd-bg, #f5f7fc);
    border-top: 2px solid var(--sscd-border, #2556c4);
    border-bottom: 2px solid var(--sscd-border, #2556c4);
    padding: 12px 16px;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* Skin: Pill — compact rounded badge, only as wide as its content.
   width:fit-content + align-self:flex-start stop it stretching when the
   parent (e.g. the WooCommerce product summary) is a flex column. */
.sscd--pill {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    background: var(--sscd-bg, #f5f7fc);
    border: 1px solid var(--sscd-border, #2556c4);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 14px;
}

/* Centered variant — used below the Proceed to Checkout button. Centers the
   widget itself (not just its text) regardless of skin or parent container. */
.sscd--centered {
    justify-content: center;
    text-align: center;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}
.sscd--centered.sscd--pill { display: flex; }

/* Hide until JS has computed the live time (prevents a flash of stale/empty text) */
.sscd:not(.sscd--ready) .sscd__text:empty { visibility: hidden; }
