:root { --wac-brand: #1270c2; } .wac-toast-progress {
height: 4px;
width: 100%;
background: var(--wac-brand);
transform-origin: right center;
animation: wac-countdown 5s linear forwards;
}
@keyframes wac-countdown {
from { transform: scaleX(1); }
to   { transform: scaleX(0); }
} .wac-overlay {
position: fixed; inset: 0;
background: rgba(0, 0, 0, 0.55);
z-index: 99998;
opacity: 0;
pointer-events: none;
transition: opacity .3s ease;
}
.wac-overlay--show { opacity: 1; pointer-events: auto; } .wac-toast {
position: fixed;
top: 50%; left: 50%;
transform: translate(-50%, -40%);
background: #fff;
color: #1a1a1a;
border-radius: 14px;
font-size: 15px;
z-index: 99999;
opacity: 0;
transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s;
pointer-events: none;
direction: rtl;
box-shadow: 0 10px 40px rgba(0,0,0,.22);
width: 460px;
max-width: calc(100vw - 32px);
overflow: hidden;
}
.wac-toast--show { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; } @media (min-width: 481px) {
.wac-toast-top { gap: 16px; padding: 22px 22px 16px; }
.wac-toast-img,
.wac-toast-img-wrap--icon { width: 78px; height: 78px; }
.wac-toast-icon-only svg { width: 36px; height: 36px; }
.wac-toast-label { font-size: 15px; }
.wac-toast-name { font-size: 14px; }
.wac-ship-bar { padding: 14px 22px 18px; }
.wac-ship-bar-msg { font-size: 14px; margin-bottom: 10px; }
.wac-ship-bar-track { height: 10px; }
.wac-toast-btn { font-size: 13.5px; padding: 14px 8px; }
} .wac-toast-close {
position: absolute;
top: 8px; left: 8px;
width: 28px; height: 28px;
border: none;
background: rgba(0,0,0,0.04);
color: #6b7280;
border-radius: 50%;
cursor: pointer;
padding: 0;
display: flex; align-items: center; justify-content: center;
transition: background .2s, color .2s;
z-index: 2;
}
.wac-toast-close:hover { background: rgba(0,0,0,0.1); color: #111; }
.wac-toast-close svg { width: 16px; height: 16px; } .wac-toast-top {
display: flex;
align-items: center;
gap: 12px;
padding: 16px 16px 12px;
}
.wac-toast-img-wrap { position: relative; flex-shrink: 0; }
.wac-toast-img {
width: 58px; height: 58px;
object-fit: cover;
border-radius: 10px;
display: block;
border: 1px solid #e5e7eb;
}
.wac-toast-badge {
position: absolute;
bottom: -6px; left: -6px;
background: #16a34a;
color: #fff;
border-radius: 50%;
width: 22px; height: 22px;
display: flex; align-items: center; justify-content: center;
border: 2px solid #fff;
line-height: 1;
}
.wac-toast-badge svg { width: 12px; height: 12px; }
.wac-toast-img-wrap--icon {
width: 58px; height: 58px;
background: #e8f1fc;
border-radius: 10px;
display: flex; align-items: center; justify-content: center;
color: var(--wac-brand);
}
.wac-toast-icon-only svg { width: 28px; height: 28px; }
.wac-toast-msg {
flex: 1;
display: flex; flex-direction: column; gap: 3px;
text-align: right;
min-width: 0;
}
.wac-toast-label {
font-size: 13.5px;
font-weight: 700;
color: var(--wac-brand);
display: flex; align-items: center; gap: 6px;
}
.wac-toast-label-icon {
display: inline-flex; align-items: center; justify-content: center;
color: #16a34a;
}
.wac-toast-label-icon svg { width: 16px; height: 16px; }
.wac-toast-label--error { color: #dc2626; }
.wac-toast-label--error .wac-toast-label-icon { color: #dc2626; }
.wac-toast-name {
font-size: 12.5px;
color: #4b5563;
font-weight: 500;
line-height: 1.45;
word-break: break-word;
} .wac-ship-bar {
margin: 12px 16px 4px;
padding: 11px 14px 12px;
background: #f0fdf4;
border: 1.5px solid #bbf7d0;
border-radius: 14px;
}
.wac-ship-bar-msg {
display: flex; align-items: center; gap: 8px;
font-size: 12.5px;
font-weight: 700;
color: #047857;
margin-bottom: 8px;
line-height: 1.45;
}
.wac-ship-icon {
display: inline-flex; align-items: center; justify-content: center;
color: #059669;
flex-shrink: 0;
}
.wac-ship-icon svg { width: 18px; height: 18px; }
.wac-ship-bar-text strong { color: #047857; font-weight: 800; }
.wac-ship-bar-track {
width: 100%;
height: 8px;
background: #dbe7f4;
border-radius: 999px;
overflow: hidden;
position: relative;
}
.wac-ship-bar-fill {
height: 100%;
background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
border-radius: 999px;
transition: width .8s cubic-bezier(.4,0,.2,1);
position: relative;
overflow: hidden;
}
.wac-ship-bar-track { background: #d1fae5; }
.wac-ship-bar-fill::after {
content: '';
position: absolute; inset: 0;
background: linear-gradient(90deg,
rgba(255,255,255,0) 0%,
rgba(255,255,255,.45) 50%,
rgba(255,255,255,0) 100%);
animation: wac-shimmer 1.6s linear infinite;
}
@keyframes wac-shimmer {
from { transform: translateX(-100%); }
to   { transform: translateX(100%); }
}
.wac-ship-bar--unlocked {
background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
border-color: #a7f3d0;
}
.wac-ship-bar--unlocked .wac-ship-bar-msg,
.wac-ship-bar--unlocked .wac-ship-icon { color: #047857; }
.wac-ship-bar--unlocked .wac-ship-bar-fill {
background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}
.wac-ship-bar--unlocked .wac-ship-bar-track { background: #bbf7d0; } .wac-coupon {
margin: 0;
padding: 12px 16px 14px;
background: #f8fafc;
border-top: 1px solid #e5e7eb;
border-bottom: 1px solid #e5e7eb;
}
.wac-coupon-head {
display: flex; align-items: center; gap: 10px;
margin-bottom: 10px;
}
.wac-coupon-icon {
flex-shrink: 0;
width: 34px; height: 34px;
background: var(--wac-brand, #1270c2);
color: #fff;
border-radius: 8px;
display: flex; align-items: center; justify-content: center;
}
.wac-coupon-icon svg { width: 18px; height: 18px; }
.wac-coupon-meta {
flex: 1; min-width: 0;
display: flex; flex-direction: column; gap: 2px;
}
.wac-coupon-label {
font-size: 13px;
font-weight: 800;
color: #111827;
}
.wac-coupon-desc {
font-size: 12px;
color: #6b7280;
line-height: 1.45;
}
.wac-coupon-row {
display: flex;
align-items: stretch;
gap: 0;
background: #fff;
border: 1.5px dashed var(--wac-brand, #1270c2);
border-radius: 8px;
overflow: hidden;
}
.wac-coupon-code {
flex: 1;
padding: 11px 12px;
font-size: 14px;
font-weight: 800;
letter-spacing: 1.5px;
color: var(--wac-brand, #1270c2);
text-align: center;
cursor: pointer;
user-select: all;
direction: ltr;
background: #fff;
transition: background .2s;
}
.wac-coupon-code:hover { background: #f9fafb; }
.wac-coupon-copy {
display: inline-flex; align-items: center; justify-content: center;
gap: 6px;
padding: 0 14px;
border: none;
background: var(--wac-brand, #1270c2);
color: #fff;
font-size: 12px;
font-weight: 700;
cursor: pointer;
font-family: inherit;
transition: filter .2s, background .2s;
white-space: nowrap;
}
.wac-coupon-copy:hover { filter: brightness(.92); }
.wac-coupon-copy-icon { display: inline-flex; }
.wac-coupon-copy-icon svg { width: 14px; height: 14px; }
.wac-coupon-copy--done {
background: #16a34a !important;
filter: none !important;
}
.wac-coupon-note {
margin-top: 8px;
text-align: center;
font-size: 11.5px;
color: #6b7280;
line-height: 1.5;
font-style: normal;
}
@media (min-width: 481px) {
.wac-coupon { padding: 14px 22px 18px; }
.wac-coupon-label { font-size: 14px; }
.wac-coupon-desc { font-size: 13px; }
.wac-coupon-code { font-size: 16px; padding: 13px 14px; }
.wac-coupon-copy { font-size: 13px; padding: 0 18px; }
.wac-coupon-note { font-size: 12.5px; }
} .wac-cross-sells {
padding: 12px 16px 14px;
background: #fafbfc;
border-top: 1px solid #e5e7eb;
}
.wac-cs-title {
font-size: 13px;
font-weight: 700;
color: #1f2937;
margin-bottom: 10px;
text-align: right;
}
.wac-cs-list { display: flex; flex-direction: column; gap: 8px; }
.wac-cs-item {
display: flex;
align-items: center;
gap: 10px;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 10px;
padding: 8px 10px;
transition: border-color .15s, box-shadow .15s;
}
.wac-cs-item:hover { border-color: var(--wac-brand); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.wac-cs-img {
width: 46px; height: 46px;
object-fit: cover;
border-radius: 8px;
flex-shrink: 0;
border: 1px solid #f3f4f6;
}
.wac-cs-info {
flex: 1; min-width: 0;
display: flex; flex-direction: column; gap: 2px;
text-align: right;
}
.wac-cs-name {
font-size: 12.5px;
font-weight: 600;
color: #111827 !important;
text-decoration: none !important;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.wac-cs-name:hover { color: var(--wac-brand) !important; }
.wac-cs-price {
font-size: 12px;
color: var(--wac-brand);
font-weight: 700;
}
.wac-cs-price del { color: #9ca3af; font-weight: 400; margin-inline-end: 4px; font-size: 11px; }
.wac-cs-btn {
flex-shrink: 0;
display: inline-flex; align-items: center; justify-content: center;
gap: 5px;
padding: 7px 11px;
font-size: 11.5px;
font-weight: 700;
border-radius: 7px;
border: 1px solid var(--wac-brand);
background: #fff;
color: var(--wac-brand) !important;
cursor: pointer;
text-decoration: none !important;
transition: background .15s, color .15s;
font-family: inherit;
white-space: nowrap;
}
.wac-cs-btn:hover { background: var(--wac-brand); color: #fff !important; }
.wac-cs-btn .wac-toast-icon svg { width: 13px; height: 13px; }
.wac-cs-btn--loading { opacity: .7; pointer-events: none; }
@media (min-width: 481px) {
.wac-cross-sells { padding: 14px 22px 18px; }
.wac-cs-title { font-size: 14px; margin-bottom: 12px; }
.wac-cs-img { width: 54px; height: 54px; }
.wac-cs-name { font-size: 13px; }
.wac-cs-btn { font-size: 12px; padding: 8px 14px; }
} .wac-toast-actions {
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px 16px 6px;
}
.wac-toast-btn {
width: 100%;
display: flex; align-items: center; justify-content: center;
gap: 8px;
padding: 12px 14px;
font-size: 13.5px;
font-weight: 700;
text-decoration: none !important;
transition: background .2s, color .2s, border-color .2s;
cursor: pointer;
border-radius: 12px;
border: 1.5px solid transparent;
box-sizing: border-box;
font-family: inherit;
line-height: 1.2;
}
.wac-toast-icon { display: inline-flex; align-items: center; justify-content: center; }
.wac-toast-icon svg { width: 16px; height: 16px; }
.wac-toast-btn--checkout {
background: var(--wac-brand) !important;
color: #fff !important;
border-color: var(--wac-brand) !important;
}
.wac-toast-btn--checkout:hover {
background: color-mix(in srgb, var(--wac-brand) 88%, black) !important;
border-color: color-mix(in srgb, var(--wac-brand) 88%, black) !important;
color: #fff !important;
}
.wac-toast-btn--cart {
background: #fff !important;
color: var(--wac-brand) !important;
border-color: var(--wac-brand) !important;
}
.wac-toast-btn--cart:hover {
background: color-mix(in srgb, var(--wac-brand) 8%, white) !important;
color: var(--wac-brand) !important;
}
.wac-toast-link--continue {
display: flex; align-items: center; justify-content: center;
gap: 6px;
width: 100%;
background: transparent;
border: none;
cursor: pointer;
padding: 6px 4px 4px;
font-size: 12.5px;
font-weight: 600;
color: #6b7280;
font-family: inherit;
transition: color .2s;
text-decoration: none;
}
.wac-toast-link--continue:hover { color: var(--wac-brand); }
.wac-toast-link--continue .wac-toast-icon svg { width: 13px; height: 13px; } .wac-trust-badges {
display: flex;
align-items: center;
justify-content: space-around;
gap: 6px;
margin: 4px 16px 14px;
padding: 10px 8px;
background: #f9fafb;
border: 1px solid #f3f4f6;
border-radius: 12px;
}
.wac-trust-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
text-align: center;
min-width: 0;
}
.wac-trust-icon {
display: inline-flex; align-items: center; justify-content: center;
color: var(--wac-brand);
}
.wac-trust-icon svg { width: 18px; height: 18px; }
.wac-trust-text {
font-size: 10.5px;
font-weight: 600;
color: #4b5563;
line-height: 1.3;
word-break: break-word;
}
@media (min-width: 481px) {
.wac-trust-text { font-size: 11.5px; }
.wac-trust-icon svg { width: 20px; height: 20px; }
} .wac-toast--error .wac-toast-top { padding: 18px 18px 16px; }
.wac-toast--error .wac-toast-actions,
.wac-toast--error .wac-ship-bar { display: none; } @media (max-width: 480px) { .wac-toast {
width: calc(100vw - 24px);
max-width: 360px;
max-height: 85vh;
overflow-y: auto;
font-size: 13px;
border-radius: 12px;
-webkit-overflow-scrolling: touch;
} .wac-toast-close { width: 24px; height: 24px; top: 6px; left: 6px; }
.wac-toast-close svg { width: 13px; height: 13px; } .wac-toast-top { padding: 10px 12px 8px; gap: 9px; }
.wac-toast-img,
.wac-toast-img-wrap--icon { width: 42px; height: 42px; border-radius: 8px; }
.wac-toast-icon-only svg { width: 20px; height: 20px; }
.wac-toast-badge { width: 18px; height: 18px; bottom: -4px; left: -4px; }
.wac-toast-badge svg { width: 10px; height: 10px; }
.wac-toast-label { font-size: 12px; gap: 4px; }
.wac-toast-label-icon svg { width: 13px; height: 13px; }
.wac-toast-name { font-size: 11.5px; line-height: 1.35; } .wac-ship-bar { margin: 8px 12px 2px; padding: 8px 10px 9px; border-radius: 10px; }
.wac-ship-bar-msg { font-size: 11px; gap: 6px; margin-bottom: 6px; line-height: 1.35; }
.wac-ship-icon svg { width: 14px; height: 14px; }
.wac-ship-bar-track { height: 6px; } .wac-coupon { padding: 9px 12px 11px; }
.wac-coupon-head { gap: 8px; margin-bottom: 8px; }
.wac-coupon-icon { width: 30px; height: 30px; border-radius: 7px; }
.wac-coupon-icon svg { width: 15px; height: 15px; }
.wac-coupon-label { font-size: 12.5px; }
.wac-coupon-desc { font-size: 11px; line-height: 1.35; }
.wac-coupon-code { font-size: 13px; padding: 9px 10px; letter-spacing: 1px; }
.wac-coupon-copy { font-size: 11px; padding: 0 10px; gap: 4px; }
.wac-coupon-copy-icon svg { width: 12px; height: 12px; }
.wac-coupon-note { font-size: 10.5px; margin-top: 6px; line-height: 1.4; } .wac-cross-sells { padding: 8px 12px 10px; }
.wac-cs-title { font-size: 11.5px; margin-bottom: 7px; }
.wac-cs-list { gap: 6px; }
.wac-cs-item { gap: 8px; padding: 6px 8px; border-radius: 8px; }
.wac-cs-img { width: 38px; height: 38px; border-radius: 6px; }
.wac-cs-name { font-size: 11px; line-height: 1.3; }
.wac-cs-price { font-size: 10.5px; }
.wac-cs-price del { font-size: 9.5px; }
.wac-cs-btn { font-size: 10px; padding: 5px 8px; gap: 3px; border-radius: 6px; }
.wac-cs-btn .wac-toast-icon svg { width: 11px; height: 11px; } .wac-toast-actions { padding: 9px 12px 5px; gap: 7px; }
.wac-toast-btn {
font-size: 14px;
padding: 11px 10px;
gap: 6px;
border-radius: 10px;
}
.wac-toast-icon svg { width: 15px; height: 15px; }
.wac-toast-link--continue { font-size: 12.5px; padding: 5px 4px 3px; }
.wac-toast-link--continue .wac-toast-icon svg { width: 12px; height: 12px; } .wac-trust-badges {
margin: 4px 12px 10px;
padding: 8px 6px;
gap: 4px;
border-radius: 8px;
}
.wac-trust-item {
flex-direction: row;
gap: 4px;
align-items: center;
justify-content: center;
}
.wac-trust-icon svg { width: 13px; height: 13px; }
.wac-trust-text { font-size: 9.5px; line-height: 1.2; } .wac-toast--error .wac-toast-top { padding: 12px 12px 11px; }
} @media (max-width: 360px) {
.wac-toast { width: calc(100vw - 16px); max-height: 88vh; font-size: 12.5px; }
.wac-toast-top { padding: 9px 10px 7px; gap: 8px; }
.wac-toast-img,
.wac-toast-img-wrap--icon { width: 38px; height: 38px; }
.wac-ship-bar { margin: 7px 10px 2px; padding: 7px 9px 8px; }
.wac-coupon { padding: 7px 10px 9px; }
.wac-cross-sells { padding: 7px 10px 9px; }
.wac-toast-actions { padding: 7px 10px 4px; }
.wac-trust-badges { margin: 4px 10px 9px; }
.wac-toast-btn { font-size: 11.5px; padding: 8px 6px; }
} .wac-btn-loading::after,
.wac-btn-loading::before { display: none !important; }
.wac-btn-loading { pointer-events: none; opacity: .75; }