/* Compact Sale Popup – typography follows the shop's local Raleway font when available. */
.ssp-overlay[hidden], .ssp-dock[hidden], .ssp-success-toast[hidden] { display: none !important; }
.ssp-is-open { overflow: hidden; }
.ssp-overlay,
.ssp-overlay *,
.ssp-dock,
.ssp-dock * { box-sizing: border-box; }

.ssp-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .30);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ssp-modal {
    --ssp-accent: #ece81a;
    --ssp-button-text: #000000;
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: #fff;
    color: #111;
    border-radius: 22px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .20);
    outline: none;
    animation: ssp-appear .20s ease-out both;
}

.ssp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ededed;
    color: #111;
    cursor: pointer;
}
.ssp-close:hover { background: #e0e0e0; }
.ssp-close:focus-visible, .ssp-button:focus-visible, .ssp-dock-expand:focus-visible, .ssp-dock-toggle:focus-visible { outline: 3px solid #1a77c9; outline-offset: 3px; }
.ssp-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.1; fill: none; stroke-linecap: round; }

.ssp-image { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 22px 22px 0 0; }
.ssp-content { padding: 35px 30px 30px; text-align: center; }
.ssp-title {
    max-width: 460px;
    margin: 0 auto 10px;
    padding: 0 12px;
    color: inherit;
    font-size: clamp(25px, 3vw, 33px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.ssp-description {
    white-space: pre-line;
    margin: 0 auto 20px;
    max-width: 450px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
}

.ssp-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    width: min(100%, 380px);
    margin: 0 auto;
}
.ssp-actions--two { grid-template-columns: minmax(0, 1fr); }
.ssp-option {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
}
.ssp-option-label { font-size: 14px; line-height: 1.25; font-weight: 700; }
.ssp-coupon-offer { font-size: 14px; font-weight: 500; }
.ssp-coupon-code {
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding: 5px 12px;
    border: 0;
    border-radius: 6px;
    background: #f2f2f2;
    color: #111;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
    user-select: all;
}
.ssp-promotion-form { width: 100%; margin: 0; }

/* Applies to both the sale link and the coupon-submit button. */
.ssp-overlay .ssp-button, .ssp-dock .ssp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    color: var(--ssp-button-text, #000000) !important;
    background: var(--ssp-accent, #ece81a);
    border: 0;
    border-radius: 999px;
    font-family: "Raleway", Arial, sans-serif !important;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .005em;
    text-decoration: none !important;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}
.ssp-overlay .ssp-button:hover, .ssp-dock .ssp-button:hover {
    filter: brightness(.96);
    color: var(--ssp-button-text, #000000) !important;
    transform: translateY(-1px);
}
.ssp-overlay .ssp-button:active, .ssp-dock .ssp-button:active { transform: translateY(0); }
.ssp-overlay .ssp-apply-button:disabled, .ssp-dock .ssp-apply-button:disabled { opacity: .65; cursor: wait; transform: none; }
.ssp-overlay .ssp-button.is-done, .ssp-dock .ssp-button.is-done { background: #d9d9d9; color: #666666 !important; filter: none; cursor: default; box-shadow: none; }
.ssp-overlay .ssp-button.is-done:hover, .ssp-dock .ssp-button.is-done:hover { transform: none; filter: none; color: #666666 !important; }
.ssp-copy-status { display: block; min-height: 1em; font-size: 12px; color: #444; }
.ssp-copy-status:empty { display: none; }

.ssp-success-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 20010;
    max-width: min(92vw, 520px);
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .94);
    color: #fff;
    text-align: center;
    transform: translateX(-50%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    animation: ssp-toast 2.6s ease both;
}
@keyframes ssp-appear {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ssp-toast {
    0% { opacity: 0; transform: translate(-50%, 12px); }
    10%, 85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 8px); }
}
@media (max-width: 575.98px) {
    .ssp-overlay { padding: 12px; }
    .ssp-modal { width: 100%; max-height: calc(100dvh - 24px); border-radius: 18px; }
    .ssp-image { max-height: 160px; border-radius: 18px 18px 0 0; }
    .ssp-content { padding: 45px 18px 22px; }
    .ssp-title { font-size: clamp(23px, 6vw, 29px); padding: 0 18px; }
    .ssp-description { font-size: 14px; margin-bottom: 16px; }
    .ssp-close { top: 10px; right: 10px; width: 34px; height: 34px; }
    .ssp-actions { width: 100%; gap: 12px; }
    .ssp-overlay .ssp-button, .ssp-dock .ssp-button { min-height: 44px; font-size: 15px; padding: 10px 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .ssp-modal, .ssp-success-toast { animation: none; }
    .ssp-overlay .ssp-button, .ssp-dock .ssp-button { transition: none; }
}

/* Side offer: visible after dismissing the modal, including later page visits. */
.ssp-dock {
    --ssp-accent: #ece81a;
    --ssp-button-text: #000000;
    position: fixed;
    top: auto;
    bottom: 19%;
    left: 0;
    right: auto;
    z-index: 19990;
    display: flex;
    flex-direction: column;
    width: 216px;
    max-width: calc(100vw - 14px);
    padding: 10px 9px 12px;
    border: 1px solid #e3e3e3;
    border-left: 0;
    border-radius: 0 16px 16px 0;
    background: #fff;
    color: #111;
    box-shadow: 4px 4px 22px rgba(0, 0, 0, .13);
    font-family: "Raleway", Arial, sans-serif;
    text-align: center;
    animation: ssp-dock-enter .22s ease both;
}
/* Left-side tab: arrow folds the offer to the left; OFFER opens the full modal. */
.ssp-dock-header {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: 30px;
}
.ssp-dock-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #111;
    cursor: pointer;
}
.ssp-dock-toggle:hover { background: #f1f1f1; }
.ssp-dock-toggle svg { width: 21px; height: 21px; transition: transform .18s ease; }
.ssp-dock-content { width: 100%; }
.ssp-dock-content[hidden], .ssp-dock-expand[hidden] { display: none !important; }
.ssp-dock.is-collapsed {
    width: 47px;
    max-width: 47px;
    min-height: 61px;
    padding: 9px 5px;
    border-radius: 0 15px 15px 0;
}
.ssp-dock.is-collapsed .ssp-dock-header { min-height: 42px; }
.ssp-dock.is-collapsed .ssp-dock-toggle { width: 37px; height: 42px; flex-basis: 37px; }
.ssp-dock.is-collapsed .ssp-dock-toggle svg { transform: rotate(180deg); }
.ssp-dock-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    min-height: 25px;
    padding: 1px 4px;
    border: 0;
    background: transparent;
    color: #1a1a1a;
    font: 800 15px/1 "Raleway", Arial, sans-serif;
    letter-spacing: .06em;
    cursor: pointer;
}
.ssp-dock-expand:hover { color: #666; }
.ssp-dock-promo { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.ssp-dock-label { display: block; margin-top: 2px; font-size: 15px; line-height: 1.28; font-weight: 700; overflow-wrap: anywhere; }
.ssp-dock-code {
    display: block;
    padding: 5px 3px;
    border-radius: 5px;
    background: #f2f2f2;
    color: #111;
    font: 800 18px/1.35 "Raleway", Arial, sans-serif;
    letter-spacing: .02em;
    overflow-wrap: anywhere;
    user-select: all;
}
.ssp-dock .ssp-promotion-form { width: 100%; }
.ssp-dock .ssp-button {
    min-height: 38px;
    padding: 8px 8px;
    font-size: 15px;
    line-height: 1.18;
    white-space: normal;
    overflow-wrap: anywhere;
}
.ssp-dock-status { font-size: 12px; line-height: 1.3; }
@keyframes ssp-dock-enter {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .ssp-dock { animation: none; } .ssp-dock-toggle svg { transition: none; } }

@media (max-width: 575.98px) {
    .ssp-dock { width: min(198px, calc(100vw - 14px)); bottom: 15%; }
    .ssp-dock .ssp-button { font-size: 14px; min-height: 40px; padding: 9px 7px; }
    .ssp-dock-label { font-size: 14px; }
    .ssp-dock-code { font-size: 17px; }
}
