.wr-toasts { position: fixed; top: 16px; right: 16px; z-index: 100000; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; direction: rtl; }
.wr-toast { --wr-toast-accent: #18a374; --wr-toast-soft: rgba(24, 163, 116, .12); position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 16px 12px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: #10234f; border: 1px solid rgba(220, 231, 246, .9); box-shadow: 0 18px 40px rgba(16, 35, 79, .16), 0 2px 6px rgba(16, 35, 79, .06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-family: var(--wr-font, "WebraanYekanBakh", "YekanBakh", Tahoma, sans-serif); overflow: hidden; pointer-events: auto; opacity: 0; transform: translateX(24px) scale(.98); transition: opacity .26s cubic-bezier(.22, 1, .36, 1), transform .26s cubic-bezier(.22, 1, .36, 1); }
.wr-toast--error { --wr-toast-accent: #d94a62; --wr-toast-soft: rgba(217, 74, 98, .12); }
.wr-toast.is-in { opacity: 1; transform: none; }
.wr-toast.is-out { opacity: 0; transform: translateX(24px) scale(.98); }
.wr-toast__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--wr-toast-soft); color: var(--wr-toast-accent); }
.wr-toast__icon svg { width: 22px; height: 22px; }
.wr-toast--success.is-in .wr-toast__icon svg path, .wr-toast--error.is-in .wr-toast__icon svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: wr-toast-draw .45s .12s ease-out forwards; }
.wr-toast__body { flex: 1; min-width: 0; padding-top: 1px; }
.wr-toast__title { display: block; font-size: 15px; font-weight: 800; line-height: 1.6; }
.wr-toast__text { margin: 2px 0 0; font-size: 13px; line-height: 1.8; color: #52627d; overflow-wrap: anywhere; }
.wr-toast__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wr-toast__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid #dce7f6; background: transparent; color: #10234f !important; font-size: 13px; font-weight: 700; text-decoration: none !important; transition: background-color .15s, border-color .15s; }
.wr-toast__btn:hover { border-color: #0a63f7; }
.wr-toast__btn--primary { border-color: transparent; background: linear-gradient(135deg, #1769ff, #0a63f7); color: #fff !important; }
.wr-toast__btn--primary:hover { filter: brightness(1.06); }
.wr-toast__btn svg { width: 16px; height: 16px; }
.wr-toast__close { flex: none; width: 28px; height: 28px; margin: -4px -2px 0 0; border: 0; border-radius: 8px; background: transparent; color: #66738b; font-size: 22px; line-height: 1; cursor: pointer; }
.wr-toast__close:hover { background: rgba(16, 35, 79, .06); color: #10234f; }
.wr-toast__close:focus-visible, .wr-toast__btn:focus-visible { outline: 2px solid #0a63f7; outline-offset: 2px; }
.wr-toast__bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--wr-toast-accent); transform-origin: right; animation: wr-toast-bar var(--wr-toast-duration, 5000ms) linear forwards; opacity: .75; }
.wr-toast.is-paused .wr-toast__bar { animation-play-state: paused; }
@keyframes wr-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes wr-toast-draw { to { stroke-dashoffset: 0; } }

html[data-wr-theme=dark] .wr-toast { background: rgba(21, 36, 58, .96); color: #eff5ff; border-color: #3b506d; box-shadow: 0 18px 40px rgba(0, 8, 24, .45); }
html[data-wr-theme=dark] .wr-toast--success { --wr-toast-accent: #72dfb1; --wr-toast-soft: rgba(114, 223, 177, .14); }
html[data-wr-theme=dark] .wr-toast--error { --wr-toast-accent: #ff9dac; --wr-toast-soft: rgba(255, 157, 172, .14); }
html[data-wr-theme=dark] .wr-toast__text { color: #b9c8df; }
html[data-wr-theme=dark] .wr-toast__btn { border-color: #3b506d; color: #eff5ff !important; }
html[data-wr-theme=dark] .wr-toast__btn--primary { border-color: transparent; color: #fff !important; }
html[data-wr-theme=dark] .wr-toast__close { color: #b9c8df; }
html[data-wr-theme=dark] .wr-toast__close:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.single_add_to_cart_button.wr-is-loading { position: relative; color: transparent !important; pointer-events: none; }
.single_add_to_cart_button.wr-is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: wr-toast-spin .7s linear infinite; }
@keyframes wr-toast-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) { .wr-toasts { right: 12px; left: 12px; width: auto; } .wr-toast { transform: translateY(-16px) scale(.98); } .wr-toast.is-out { transform: translateY(-16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .wr-toast, .wr-toast.is-out { transition: opacity .15s; transform: none; } .wr-toast__bar, .wr-toast.is-in .wr-toast__icon svg path { animation: none; stroke-dashoffset: 0; } .single_add_to_cart_button.wr-is-loading::after { animation-duration: 1.6s; } }
.wr-toast--info { --wr-toast-accent: #0a63f7; --wr-toast-soft: rgba(10, 99, 247, .1); }
html[data-wr-theme=dark] .wr-toast--info { --wr-toast-accent: #83b5ff; --wr-toast-soft: rgba(131, 181, 255, .14); }

/* Buy box price */
.wr-buy-price { flex: 1 0 100%; width: 100%; max-width: 520px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; padding: 12px 16px; border: 1px solid var(--wr-border, #dce7f6); border-radius: var(--wr-radius-sm, 12px); background: var(--wr-blue-ice, #eef6ff); }
.wr-buy-price__label { font-size: 14px; font-weight: 600; color: var(--wr-text-muted, #52627d); }
.wr-buy-price__amount, .wr-buy-price__amount .amount { font-size: 22px; font-weight: 800; color: var(--wr-blue, #0a63f7); line-height: 1.4; }
.wr-buy-price__amount del, .wr-buy-price__amount del .amount { font-size: 14px; font-weight: 500; color: var(--wr-text-muted, #52627d); opacity: .8; margin-inline-end: 6px; }
.wr-buy-price__amount ins { text-decoration: none; }
.single-product .woocommerce-variation-add-to-cart, .single-product form.cart:not(.variations_form) { flex-wrap: wrap; }
.single-product .wr-buy-price ~ .single_add_to_cart_button, .single-product form.cart:not(.variations_form) .single_add_to_cart_button { flex: 1; }
.single-product .woocommerce-variation-price { display: none; }
html[data-wr-theme=dark] .wr-buy-price { background: #1c304b; border-color: #3b506d; }
html[data-wr-theme=dark] .wr-buy-price__label { color: #b9c8df; }
html[data-wr-theme=dark] .wr-buy-price__amount, html[data-wr-theme=dark] .wr-buy-price__amount .amount { color: #83b5ff; }

/* Pay from the cart */
.wr-pay { display: flex; flex-direction: column; gap: 10px; font-family: var(--wr-font, "WebraanYekanBakh", "YekanBakh", Tahoma, sans-serif); }
.wr-pay__title { margin: 0; font-weight: 800; font-size: 15px; color: var(--wr-text, #10234f); }
.wr-pay__methods { display: flex; flex-direction: column; gap: 8px; }
.wr-pay__method { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--wr-border, #dce7f6); border-radius: 12px; background: var(--wr-surface, #fff); cursor: pointer; transition: border-color .15s, background-color .15s; }
.wr-pay__method input { position: absolute; opacity: 0; pointer-events: none; }
.wr-pay__dot { flex: none; width: 18px; height: 18px; box-sizing: border-box; border: 2px solid var(--wr-border, #dce7f6); border-radius: 50%; }
.wr-pay__method:has(input:checked) { border-color: var(--wr-blue, #0a63f7); background: var(--wr-blue-ice, #eef6ff); }
.wr-pay__method:has(input:checked) .wr-pay__dot { border: 5px solid var(--wr-blue, #0a63f7); }
.wr-pay__method:has(input:focus-visible) { outline: 2px solid var(--wr-blue, #0a63f7); outline-offset: 2px; }
.wr-pay__method.is-disabled { opacity: .55; cursor: not-allowed; }
.wr-pay__name { font-weight: 700; color: var(--wr-text, #10234f); }
.wr-pay__note { margin-inline-start: auto; font-size: 12px; color: var(--wr-text-muted, #52627d); }
.wr-pay__error { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(217, 74, 98, .1); color: #c43851; font-size: 13px; font-weight: 600; line-height: 1.8; }
.wr-pay__btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #1769ff, #0a63f7); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(10, 99, 247, .25); }
.wr-pay__btn .amount, .wr-pay__btn bdi, .wr-pay__btn .woocommerce-Price-currencySymbol { color: inherit; }
.wr-pay__btn:hover { filter: brightness(1.06); }
.wr-pay__btn.wr-is-loading { pointer-events: none; }
.wr-pay__btn.wr-is-loading > * , .wr-pay__btn.wr-is-loading { color: transparent !important; }
.wr-pay__btn.wr-is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: wr-toast-spin .7s linear infinite; }
.wr-pay__fallback { text-align: center; font-size: 13px; color: var(--wr-blue, #0a63f7); }
html[data-wr-theme=dark] .wr-pay__method { background: #15243a; border-color: #3b506d; }
html[data-wr-theme=dark] .wr-pay__method:has(input:checked) { background: #1c304b; border-color: #83b5ff; }
html[data-wr-theme=dark] .wr-pay__name, html[data-wr-theme=dark] .wr-pay__title { color: #eff5ff; }
html[data-wr-theme=dark] .wr-pay__note { color: #b9c8df; }
