.wciq-store-notice-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: var(--wciq-bar-bg, #102f4a);
    color: var(--wciq-bar-text, #ffffff);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
    font-family: var(--wciq-popup-font-family, inherit);
}

.admin-bar .wciq-store-notice-bar {
    top: 32px;
}

.wciq-store-notice-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 11px 18px;
}

.wciq-store-notice-bar-text {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.wciq-store-notice-bar-text strong {
    color: var(--wciq-bar-text, #ffffff);
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
}

.wciq-store-notice-bar-text span {
    color: var(--wciq-bar-text, #ffffff);
    opacity: .88;
    font-size: 13px;
    line-height: 1.45;
}

.wciq-store-notice-bar-close {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: var(--wciq-bar-text, #ffffff);
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

body.wciq-store-notice-bar-active {
    padding-top: 50px !important;
}

body.admin-bar.wciq-store-notice-bar-active {
    padding-top: 82px !important;
}

.wciq-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: var(--wciq-popup-overlay, rgba(15, 23, 42, 0.58));
    backdrop-filter: blur(3px);
}

.wciq-popup-overlay.is-open {
    display: flex;
}

body.wciq-popup-open {
    overflow: hidden;
}

.wciq-popup-modal {
    position: relative;
    width: min(var(--wciq-popup-width, 560px), 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    background-color: var(--wciq-popup-bg, #ffffff);
    background-image: var(--wciq-popup-bg-image, none);
    background-size: cover;
    background-position: center;
    border: var(--wciq-popup-border-width, 1px) solid var(--wciq-popup-border-color, rgba(226, 232, 240, 0.95));
    border-radius: var(--wciq-popup-radius, 22px);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.33);
    padding: var(--wciq-popup-padding, 34px);
    color: var(--wciq-popup-text, #111827);
    font-family: var(--wciq-popup-font-family, inherit);
    font-size: var(--wciq-popup-font-size, 15px);
}

.wciq-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    appearance: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #dbe5ef;
    background: rgba(248,250,252,.92);
    color: #334155;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.wciq-popup-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(238,246,255,.92);
    border: 1px solid #cfe7ff;
    color: #174c78;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.wciq-popup-modal h2 {
    margin: 0 36px 14px 0;
    color: var(--wciq-popup-headline, #0f172a);
    font-size: var(--wciq-popup-headline-size, 25px);
    line-height: 1.22;
    font-weight: 800;
}

.wciq-popup-message {
    color: var(--wciq-popup-text, #475569);
    font-size: var(--wciq-popup-font-size, 15px);
    line-height: 1.65;
}

.wciq-popup-message p {
    margin: 0 0 12px;
}

.wciq-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.wciq-popup-primary,
.wciq-popup-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.wciq-popup-primary {
    border: 1px solid var(--wciq-popup-button-bg, #102f4a);
    background: var(--wciq-popup-button-bg, #102f4a);
    color: var(--wciq-popup-button-text, #ffffff);
}

.wciq-popup-primary:hover,
.wciq-popup-primary:focus {
    color: var(--wciq-popup-button-text, #ffffff);
    filter: brightness(1.06);
}

.wciq-popup-secondary {
    border: 1px solid #dbe5ef;
    background: rgba(255,255,255,.88);
    color: #334155;
}

.wciq-cart-checkout-notice {
    border-radius: 12px;
    line-height: 1.55;
}

@media (max-width: 782px) {
    .admin-bar .wciq-store-notice-bar {
        top: 46px;
    }

    .wciq-store-notice-bar-inner {
        align-items: flex-start;
        padding: 10px 14px;
    }

    .wciq-store-notice-bar-text {
        display: block;
    }

    .wciq-store-notice-bar-text strong {
        display: block;
        margin-bottom: 3px;
        white-space: normal;
    }

    body.wciq-store-notice-bar-active {
        padding-top: 74px !important;
    }

    body.admin-bar.wciq-store-notice-bar-active {
        padding-top: 120px !important;
    }

    .wciq-popup-modal {
        padding: max(22px, calc(var(--wciq-popup-padding, 34px) - 8px));
        border-radius: min(var(--wciq-popup-radius, 22px), 22px);
    }

    .wciq-popup-modal h2 {
        font-size: min(var(--wciq-popup-headline-size, 25px), 24px);
    }
}

/* v0.3.98 PopUP modal placement options */
.wciq-popup-position-top-center {
    align-items: flex-start;
    justify-content: center;
}
.wciq-popup-position-bottom-center {
    align-items: flex-end;
    justify-content: center;
}
.wciq-popup-position-center-left {
    align-items: center;
    justify-content: flex-start;
}
.wciq-popup-position-center-right {
    align-items: center;
    justify-content: flex-end;
}
.wciq-popup-position-top-left {
    align-items: flex-start;
    justify-content: flex-start;
}
.wciq-popup-position-top-right {
    align-items: flex-start;
    justify-content: flex-end;
}
.wciq-popup-position-bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}
.wciq-popup-position-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
}
@media (max-width: 782px) {
    .wciq-popup-overlay[class*="wciq-popup-position-"] {
        align-items: center;
        justify-content: center;
    }
}
