/* Amazon Sale Popup — popup.css v1.1 */

.assp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.62);
    display: none; /* JS shows after delay */
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: asspFadeIn 0.3s ease;
}
@keyframes asspFadeIn  { from{opacity:0} to{opacity:1} }
@keyframes asspFadeOut { from{opacity:1} to{opacity:0} }
@keyframes asspSlideUp {
    from { transform:translateY(20px); opacity:0 }
    to   { transform:translateY(0);    opacity:1 }
}

.assp-popup {
    position: relative;
    width: 370px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 16px 52px rgba(0,0,0,0.32);
    animation: asspSlideUp 0.3s cubic-bezier(0.22,1,0.36,1);
    font-family: Arial, Helvetica, sans-serif;
}

/* Close */
.assp-close {
    position: absolute;
    top: 11px; right: 11px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    line-height: 1;
    transition: background 0.18s, transform 0.15s;
}
.assp-close:hover { background: rgba(255,255,255,0.4); transform: scale(1.1); }

/* Header */
.assp-header {
    background: linear-gradient(150deg, #1a2535 0%, #2e3f56 100%);
    padding: 48px 28px 32px;
    text-align: center;
}
.assp-tag {
    display: inline-block;
    background: #FF9900;
    color: #111;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 16px;
}
.assp-title {
    font-size: 25px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    letter-spacing: -0.3px;
    line-height: 1.2;
}
.assp-orange { color: #FF9900; }

/* Body */
.assp-body { padding: 26px 26px 28px; }

/* Ongoing */
.assp-ongoing { display:none; text-align:center; padding: 8px 0 20px; }
.assp-ongoing.assp-visible { display: block; }

.assp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0faf4;
    border: 1.5px solid #a8dfc0;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #1a7a40;
    margin-bottom: 8px;
}
.assp-green-dot {
    width: 8px; height: 8px;
    background: #25a35a;
    border-radius: 50%;
    flex-shrink: 0;
    animation: asspGpulse 1.4s ease-in-out infinite;
}
@keyframes asspGpulse {
    0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(37,163,90,0.4); }
    50%      { opacity:0.7; box-shadow:0 0 0 5px rgba(37,163,90,0); }
}
.assp-sub { font-size:12px; color:#aaa; margin-top:4px; }

/* Timer */
.assp-timer {
    display: none;
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 5px;
    padding: 16px 18px 14px;
    margin-bottom: 20px;
}
.assp-timer.assp-visible { display: block; }

.assp-timer-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #B12704;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.assp-live-dot {
    width: 7px; height: 7px;
    background: #B12704;
    border-radius: 50%;
    animation: asspRpulse 1.3s ease-in-out infinite;
}
@keyframes asspRpulse { 0%,100%{opacity:1} 50%{opacity:0.25} }

.assp-digits { display:flex; align-items:flex-start; }
.assp-dg     { flex:1; display:flex; flex-direction:column; align-items:center; }
.assp-num {
    font-size: 42px;
    font-weight: 800;
    color: #111;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
}
.assp-unit {
    font-size: 9px; color: #bbb;
    letter-spacing: 1.5px; text-transform: uppercase;
    margin-top: 5px; font-weight: 600;
}
.assp-colon {
    font-size: 36px; font-weight: 800; color: #ddd;
    padding: 0 1px; margin-top: 1px;
    animation: asspCblink 1s step-end infinite;
}
@keyframes asspCblink { 0%,100%{opacity:1} 50%{opacity:0.1} }

/* CTA */
.assp-cta {
    display: block;
    width: 100%;
    padding: 13px;
    background: #FF9900;
    color: #111 !important;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s;
    box-shadow: none !important;
    font-family: Arial, Helvetica, sans-serif;
}
.assp-cta:hover { background: #e68900; color: #111 !important; }

/* No thanks */
.assp-no-thanks {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: none;
    border: none;
    padding: 4px;
    font-size: 12px;
    color: #bbb;
    text-align: center;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    transition: color 0.15s;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.assp-no-thanks:hover { color: #666; }
