.nspc-countdown-panel {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99999;
    display: block;
    width: max-content;
    min-width: 0;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    padding: 16px 18px 15px 18px;
    border: 1px solid rgba(12, 44, 70, 0.10);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, var(--nspc-panel-opacity, 0.96)), rgba(247, 251, 253, var(--nspc-panel-opacity, 0.96)));
    color: #102f4a;
    box-shadow:
        0 12px 28px rgba(7, 29, 48, 0.12),
        0 2px 7px rgba(7, 29, 48, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.58);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: left;
    line-height: 1.25;
    overflow: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.nspc-countdown-panel.nspc-is-clickable {
    cursor: pointer;
}

.nspc-countdown-panel.nspc-is-clickable:hover,
.nspc-countdown-panel.nspc-is-clickable:focus {
    border-color: rgba(217, 48, 37, 0.22);
    box-shadow:
        0 14px 32px rgba(7, 29, 48, 0.14),
        0 3px 9px rgba(7, 29, 48, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
    outline: none;
}

.nspc-countdown-panel.nspc-hidden {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    visibility: hidden;
    pointer-events: none;
}

.nspc-countdown-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0f6d95, #2fb7d7, #78d6e8);
    transition: background 160ms ease;
}

.nspc-countdown-panel:hover::before,
.nspc-countdown-panel:focus-within::before {
    background: linear-gradient(90deg, #9f1c16, #d93025, #ff6b5f);
}

.nspc-countdown-panel .nspc-close {
    position: absolute !important;
    top: 9px !important;
    right: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-color: transparent !important;
    border-radius: 999px !important;
    outline: 0 !important;
    background: transparent !important;
    color: rgba(16, 47, 74, 0.58) !important;
    cursor: pointer;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 22px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    overflow: hidden !important;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.nspc-countdown-panel .nspc-close:hover,
.nspc-countdown-panel .nspc-close:focus {
    background: #e53935 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-color: transparent !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.nspc-countdown-panel .nspc-close:active {
    transform: scale(0.94);
}

.nspc-countdown-panel .nspc-close::before,
.nspc-countdown-panel .nspc-close::after {
    content: none !important;
    display: none !important;
}

.nspc-title {
    margin: 0 0 11px;
    padding-right: 34px;
    color: #173955;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
}

.nspc-count-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    margin: 14px 0 18px;
    flex-wrap: nowrap;
}

.nspc-count {
    margin: 0;
    color: #071d30;
    font-size: 31px;
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
    transition: color 160ms ease;
}

.nspc-countdown-panel:hover .nspc-count,
.nspc-countdown-panel:focus-within .nspc-count {
    color: #d93025;
}

.nspc-label {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 150px;
    box-sizing: border-box;
    padding: 4px 9px;
    border: 1px solid rgba(47, 183, 215, 0.22);
    border-radius: 999px;
    background: rgba(47, 183, 215, 0.10);
    color: #0f5f82;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nspc-label:empty {
    display: none;
}

.nspc-countdown-panel:hover .nspc-label:not(:empty),
.nspc-countdown-panel:focus-within .nspc-label:not(:empty) {
    border-color: #0f5f82;
    background: #0f5f82;
    color: #ffffff;
}

.nspc-date-row {
    display: flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    color: rgba(16, 47, 74, 0.68);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.005em;
    white-space: nowrap;
}

.nspc-date-prefix {
    flex: 0 0 auto;
    color: rgba(16, 47, 74, 0.55);
    font-weight: 400;
}

.nspc-date {
    flex: 0 0 auto;
    min-width: max-content;
    color: rgba(16, 47, 74, 0.72);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.005em;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.nspc-date-value,
.nspc-date-time strong,
.nspc-delivery-note strong {
    font-weight: 750;
}

.nspc-date-weekday,
.nspc-date-time {
    font-weight: 400;
}

.nspc-date-time:empty {
    display: none;
}

.nspc-delivery-note {
    margin-top: 2px;
    color: rgba(16, 47, 74, 0.55);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.005em;
    line-height: 1.18;
    white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
    .nspc-countdown-panel {
        border-color: rgba(255, 255, 255, 0.11);
        background:
            linear-gradient(145deg, rgba(12, 38, 60, var(--nspc-panel-opacity, 0.96)), rgba(7, 24, 39, var(--nspc-panel-opacity, 0.96)));
        color: #eef8fb;
        box-shadow:
            0 12px 28px rgba(0, 0, 0, 0.20),
            0 2px 7px rgba(0, 0, 0, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .nspc-countdown-panel.nspc-is-clickable:hover,
    .nspc-countdown-panel.nspc-is-clickable:focus {
        border-color: rgba(255, 107, 95, 0.28);
        box-shadow:
            0 14px 32px rgba(0, 0, 0, 0.22),
            0 3px 9px rgba(0, 0, 0, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .nspc-countdown-panel .nspc-close {
        color: rgba(238, 248, 251, 0.62) !important;
    }

    .nspc-countdown-panel .nspc-close:hover,
    .nspc-countdown-panel .nspc-close:focus {
        background: #e53935 !important;
        color: #ffffff !important;
    }

    .nspc-title {
        color: rgba(238, 248, 251, 0.82);
    }

    .nspc-count {
        color: #ffffff;
    }

    .nspc-countdown-panel:hover .nspc-count,
    .nspc-countdown-panel:focus-within .nspc-count {
        color: #ff6b5f;
    }

    .nspc-label {
        border-color: rgba(120, 214, 232, 0.24);
        background: rgba(120, 214, 232, 0.13);
        color: #b8edf7;
    }

    .nspc-countdown-panel:hover .nspc-label:not(:empty),
    .nspc-countdown-panel:focus-within .nspc-label:not(:empty) {
        border-color: #b8edf7;
        background: #b8edf7;
        color: #073047;
    }

    .nspc-date-row,
    .nspc-date-prefix {
        color: rgba(238, 248, 251, 0.58);
    }

    .nspc-date {
        color: rgba(238, 248, 251, 0.76);
    }

    .nspc-delivery-note {
        color: rgba(238, 248, 251, 0.55);
    }
}

@media (max-width: 480px) {
    .nspc-countdown-panel {
        left: 12px;
        bottom: 12px;
        width: max-content;
        min-width: 0;
        max-width: calc(100vw - 24px);
        padding: 14px 14px 13px 14px;
        border-radius: 18px;
    }

    .nspc-title {
        font-size: 11px;
        margin-bottom: 9px;
        padding-right: 32px;
        white-space: normal;
    }

    .nspc-count-row {
        gap: 11px;
        margin: 12px 0 15px;
    }

    .nspc-count {
        font-size: 27px;
    }

    .nspc-label {
        max-width: 122px;
        font-size: 13px;
        padding: 3px 7px;
    }

    .nspc-date-row,
    .nspc-date {
        font-size: 11px;
    }

    .nspc-delivery-note {
        font-size: 10px;
        white-space: normal;
    }
}
