.wc-otp-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, .55);
z-index: 999999;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
}
body.wc-otp-open {
overflow: hidden;
} .wc-otp-modal {
background: #fff;
border-radius: 20px;
padding: 40px 36px 32px;
width: 100%;
max-width: 420px;
position: relative;
direction: rtl;
text-align: center;
box-shadow: 0 24px 60px rgba(0,0,0,.2);
animation: wc-otp-slide-up .25s ease; outline: none;
}
@keyframes wc-otp-slide-up {
from { transform: translateY(28px); opacity: 0; }
to   { transform: translateY(0);    opacity: 1; }
} .wc-otp-close {
position: absolute;
top: 14px;
left: 16px;
background: #f3f4f6;
border: none;
border-radius: 50%;
width: 32px;
height: 32px;
font-size: 15px;
cursor: pointer;
color: #555;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
transition: background .2s;
outline: none;
}
.wc-otp-close:hover { background: #e5e7eb; }
.wc-otp-back {
background: none;
border: none;
color: #6b7280;
font-size: .85em;
cursor: pointer;
padding: 0 0 12px;
display: block;
text-align: right;
outline: none;
}
.wc-otp-back:hover { color: #111; } .wc-otp-logo { margin-bottom: 16px; }
.wc-otp-logo img { max-height: 52px; width: auto; }
.wc-otp-site-name { font-size: 1.3em; font-weight: 700; color: #111; }
.wc-otp-modal h2 {
font-size: 1.25em;
font-weight: 700;
color: #111827;
margin: 0 0 6px;
}
.wc-otp-subtitle {
color: #6b7280;
font-size: .92em;
margin: 0 0 22px;
line-height: 1.5;
} .wc-otp-phone-group {
display: flex;
align-items: center;
direction: ltr; gap: 0;
background: #f9fafb;
border: 2px solid #e5e7eb;
border-radius: 12px;
padding: 0 12px 0 12px;
margin-bottom: 10px;
transition: border-color .2s, background .2s;
overflow: hidden;
}
.wc-otp-phone-group:focus-within {
border-color: #2563eb;
background: #fff;
}
.wc-otp-flag {
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
margin-right: 6px;
border-radius: 50%;
background-color: transparent;
background-image: url(//mfrash.com/wp-content/plugins/wc-otp-msegat/assets/sa-flag.svg);
background-position: center;
background-repeat: no-repeat;
background-size: contain;
box-shadow: none;
overflow: hidden;
}
.wc-otp-prefix {
font-size: .95em;
color: #374151;
font-weight: 600;
white-space: nowrap;
flex-shrink: 0;
border-right: 1px solid #d1d5db; padding-right: 10px;
margin-right: 8px;
line-height: 1;
}
.wc-otp-field {
flex: 1;
border: none;
background: transparent;
padding: 14px 8px;
font-size: 1.05em;
outline: none !important;
box-shadow: none !important;
color: #111;
text-align: left !important;
letter-spacing: 1px;
min-width: 0;
direction: ltr !important;
unicode-bidi: plaintext;
}
.wc-otp-field:focus,
.wc-otp-field:focus-visible {
outline: none !important;
box-shadow: none !important;
} .wc-otp-field::placeholder {
text-align: left;
direction: ltr;
color: #aab;
} .wc-otp-digits-row {
display: flex;
justify-content: center;
gap: 8px;
margin: 18px 0 10px;
direction: ltr;
}
.wc-otp-digit {
width: 46px;
height: 54px;
border: 2px solid #e5e7eb;
border-radius: 10px;
text-align: center !important;
font-size: 1.5em;
font-weight: 700;
color: #111;
background: #f9fafb;
outline: none;
box-shadow: none;
transition: border-color .15s, background .15s;
caret-color: transparent;
direction: ltr !important;
unicode-bidi: isolate;
padding-left: 0;
padding-right: 0;
-webkit-appearance: none;
}
.wc-otp-input,
#wc_otp_code {
text-align: center !important;
direction: ltr !important;
unicode-bidi: isolate;
}
.wc-otp-digit:focus {
border-color: #2563eb;
background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
outline: none;
} .wc-otp-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 14px;
border-radius: 12px;
border: none;
font-size: 1em;
font-weight: 600;
cursor: pointer;
transition: background .2s, opacity .15s, transform .1s;
margin-top: 8px;
outline: none;
}
.wc-otp-btn-otp::after,
.wc-otp-btn-fingerprint::after {
content: "";
display: inline-block;
width: 18px;
height: 18px;
flex: 0 0 18px;
background: currentColor;
}
.wc-otp-btn-otp::after {
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 10h8'/%3E%3Cpath d='M8 14h5'/%3E%3C/svg%3E") center / contain no-repeat;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 10h8'/%3E%3Cpath d='M8 14h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wc-otp-btn-fingerprint::after {
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11c0 4-2 5-2 8'/%3E%3Cpath d='M14 21c.7-1.8 1-3.6 1-5 0-1.7-1.3-3-3-3s-3 1.3-3 3c0 .8-.2 1.8-.7 3'/%3E%3Cpath d='M17.7 17c.2-1 .3-2 .3-3 0-3.3-2.7-6-6-6s-6 2.7-6 6c0 .7-.1 1.5-.3 2.2'/%3E%3Cpath d='M4.5 12.5a8 8 0 0 1 15.4 1.5c0 .7 0 1.4-.1 2.1'/%3E%3Cpath d='M7 4.9A10 10 0 0 1 22 13'/%3E%3Cpath d='M2 13a10 10 0 0 1 2.2-6.2'/%3E%3C/svg%3E") center / contain no-repeat;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11c0 4-2 5-2 8'/%3E%3Cpath d='M14 21c.7-1.8 1-3.6 1-5 0-1.7-1.3-3-3-3s-3 1.3-3 3c0 .8-.2 1.8-.7 3'/%3E%3Cpath d='M17.7 17c.2-1 .3-2 .3-3 0-3.3-2.7-6-6-6s-6 2.7-6 6c0 .7-.1 1.5-.3 2.2'/%3E%3Cpath d='M4.5 12.5a8 8 0 0 1 15.4 1.5c0 .7 0 1.4-.1 2.1'/%3E%3Cpath d='M7 4.9A10 10 0 0 1 22 13'/%3E%3Cpath d='M2 13a10 10 0 0 1 2.2-6.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wc-otp-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.wc-otp-btn:active { transform: scale(.98); }
.wc-otp-btn-primary { background: #2563eb; color: #fff; }
.wc-otp-btn-primary:hover:not(:disabled) { background: #1d4ed8; }
.wc-otp-btn-secondary {
background: #f3f4f6;
color: #111827;
border: 1px solid #d1d5db;
}
.wc-otp-btn-secondary:hover:not(:disabled) { background: #e5e7eb; }
.wc-otp-btn:disabled { opacity: .5; cursor: not-allowed; } .wc-otp-msg {
display: block;
font-size: .88em;
min-height: 20px;
margin: 4px 0 6px;
font-weight: 500;
text-align: center;
}
.wc-otp-msg.success { color: #16a34a; }
.wc-otp-msg.error   { color: #dc2626; } .wc-otp-resend-row {
margin-top: 14px;
font-size: .88em;
color: #6b7280;
min-height: 24px;
text-align: center;
}
.wc-otp-link {
background: none;
border: none;
color: #2563eb;
cursor: pointer;
font-size: inherit;
padding: 0;
text-decoration: underline;
outline: none;
}
.wc-otp-link:hover { color: #1d4ed8; }
.wc-otp-terms {
font-size: .78em;
color: #9ca3af;
margin-top: 14px;
margin-bottom: 0;
}
.wc-otp-terms a { color: #6b7280; } .wc-otp-success-icon {
width: 68px;
height: 68px;
background: #dcfce7;
color: #16a34a;
font-size: 2.2em;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 18px;
animation: wc-otp-pop .4s ease;
}
@keyframes wc-otp-pop {
0%   { transform: scale(.4); opacity: 0; }
80%  { transform: scale(1.15); }
100% { transform: scale(1); opacity: 1; }
} .wc-otp-account-login-notice {
text-align: center;
margin-bottom: 16px;
}
.wc-otp-account-login-notice p {
font-size: 1.05em;
color: #374151;
margin-bottom: 10px;
}
.wc-otp-passkey-panel {
border: 1px solid #e5e7eb;
border-radius: 10px;
padding: 18px;
margin: 18px 0;
background: #f9fafb;
}
.wc-otp-passkey-panel h3 {
margin-top: 0;
}
.wc-otp-passkey-status {
font-weight: 600;
}
.wc-otp-passkey-status.success { color: #16a34a; }
.wc-otp-passkey-status.error { color: #dc2626; }
.wc-otp-passkey-hero {
width: 66px;
height: 66px;
margin: 0 auto 18px;
border-radius: 50%;
background: #eef2ff;
color: #2563eb;
display: flex;
align-items: center;
justify-content: center;
}
.wc-otp-passkey-hero::before {
content: "";
width: 34px;
height: 34px;
background: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11c0 4-2 5-2 8'/%3E%3Cpath d='M14 21c.7-1.8 1-3.6 1-5 0-1.7-1.3-3-3-3s-3 1.3-3 3c0 .8-.2 1.8-.7 3'/%3E%3Cpath d='M17.7 17c.2-1 .3-2 .3-3 0-3.3-2.7-6-6-6s-6 2.7-6 6c0 .7-.1 1.5-.3 2.2'/%3E%3Cpath d='M4.5 12.5a8 8 0 0 1 15.4 1.5c0 .7 0 1.4-.1 2.1'/%3E%3Cpath d='M7 4.9A10 10 0 0 1 22 13'/%3E%3Cpath d='M2 13a10 10 0 0 1 2.2-6.2'/%3E%3C/svg%3E") center / contain no-repeat;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11c0 4-2 5-2 8'/%3E%3Cpath d='M14 21c.7-1.8 1-3.6 1-5 0-1.7-1.3-3-3-3s-3 1.3-3 3c0 .8-.2 1.8-.7 3'/%3E%3Cpath d='M17.7 17c.2-1 .3-2 .3-3 0-3.3-2.7-6-6-6s-6 2.7-6 6c0 .7-.1 1.5-.3 2.2'/%3E%3Cpath d='M4.5 12.5a8 8 0 0 1 15.4 1.5c0 .7 0 1.4-.1 2.1'/%3E%3Cpath d='M7 4.9A10 10 0 0 1 22 13'/%3E%3Cpath d='M2 13a10 10 0 0 1 2.2-6.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wc-otp-skip-passkey {
display: inline-block;
margin-top: 14px;
text-decoration: none;
} .wc-otp-section {
background: #f0f9ff;
border: 1px solid #bae6fd;
border-radius: 10px;
padding: 20px;
margin: 16px 0;
direction: rtl;
text-align: right;
}
.wc-otp-section h3 {
margin-top: 0;
font-size: 1.05em;
color: #0c4a6e;
border-bottom: 1px solid #bae6fd;
padding-bottom: 10px;
margin-bottom: 14px;
}
.wc-otp-send-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
background: #2563eb;
color: #fff !important;
border: none;
padding: 10px 22px;
border-radius: 8px;
cursor: pointer;
font-size: .95em;
font-weight: 600;
transition: background .2s;
outline: none;
}
.wc-otp-admin-icon-btn {
display: inline-flex !important;
align-items: center;
justify-content: center;
gap: 7px;
}
.wc-otp-send-btn:hover:not(:disabled) { background: #1d4ed8; }
.wc-otp-send-btn:disabled { opacity: .6; cursor: not-allowed; }
.wc-otp-input {
font-size: 1.3em !important;
letter-spacing: 6px;
text-align: center;
max-width: 200px;
border: 2px solid #2563eb !important;
border-radius: 8px;
padding: 8px 12px !important;
direction: ltr;
}
.wc-otp-status { display: block; margin-top: 8px; font-size: .9em; font-weight: 500; }
.wc-otp-status.success { color: #16a34a; }
.wc-otp-status.error   { color: #dc2626; } #billing_phone,
.wc-otp-phone-ltr {
direction: ltr !important;
text-align: left !important;
} .wc-otp-billing-group {
display: flex;
align-items: center;
direction: ltr;
background: #f9fafb;
border: 2px solid #e5e7eb;
border-radius: 12px;
padding: 0 12px;
overflow: hidden;
cursor: not-allowed;
transition: border-color .2s;
}
.wc-otp-billing-group .wc-otp-flag {
flex-shrink: 0;
margin-right: 6px;
line-height: 1;
}
.wc-otp-billing-group .wc-otp-prefix {
font-size: .95em;
color: #374151;
font-weight: 600;
white-space: nowrap;
flex-shrink: 0;
border-right: 1px solid #d1d5db;
padding-right: 10px;
margin-right: 8px;
line-height: 1;
}
.wc-otp-billing-group .wc-otp-billing-field,
.wc-otp-billing-group #billing_phone {
flex: 1;
border: none !important;
background: transparent !important;
padding: 14px 8px !important;
font-size: 1.05em !important;
outline: none !important;
box-shadow: none !important;
color: #374151 !important;
text-align: left !important;
letter-spacing: 1px;
min-width: 0;
direction: ltr !important;
cursor: not-allowed !important;
opacity: 1 !important;
border-radius: 0 !important;
} .wc-otp-billing-group input:focus,
.wc-otp-billing-group input:focus-visible {
outline: none !important;
box-shadow: none !important;
border: none !important;
} @media (max-width: 480px) {
.wc-otp-modal {
padding: 32px 18px 24px;
border-radius: 16px;
max-width: 100%;
}
.wc-otp-digit {
width: 40px;
height: 48px;
font-size: 1.3em;
border-radius: 8px;
}
.wc-otp-digits-row { gap: 6px; }
} .wc-otp-admin-wrap {
direction: rtl;
text-align: right;
max-width: 820px;
padding-top: 16px;
}
.wc-otp-card {
background: #fff;
border: 1px solid #ddd;
border-radius: 10px;
padding: 22px 26px;
margin-bottom: 22px;
box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.wc-otp-card h2 {
margin-top: 0;
font-size: 1.1em;
color: #1d2327;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}:root {
--wdp-blue: #1270c2;
--wdp-blue-dark: #075aa3;
--wdp-text: #2d2d2d;
--wdp-muted: #707070;
--wdp-border: #d3d3d3;
--wdp-danger: #c62828;
--wdp-font: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}
#wdp-overlay {
position: fixed;
inset: 0;
z-index: 999999;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
box-sizing: border-box;
background: rgba(14, 20, 27, .72);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
#wdp-modal {
position: relative;
width: min(560px, 90vw);
max-height: 92vh;
overflow: hidden;
direction: rtl;
border-radius: 24px;
background:
linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .95)),
#fff;
border: 1px solid rgba(0, 0, 0, .12);
box-shadow: 0 28px 74px rgba(0, 0, 0, .32);
font-family: var(--wdp-font);
animation: wdpModalIn .34s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes wdpModalIn {
from { opacity: 0; transform: translateY(16px) scale(.96); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
#wdp-close {
position: absolute;
top: 20px;
right: 20px;
z-index: 5;
width: 30px;
height: 30px;
border: 0;
padding: 0;
background: transparent;
color: #8b8b8b;
cursor: pointer;
}
#wdp-close span,
#wdp-close span::before,
#wdp-close span::after {
position: absolute;
display: block;
width: 26px;
height: 3px;
border-radius: 999px;
background: currentColor;
content: "";
}
#wdp-close span {
top: 50%;
left: 50%;
width: 0;
height: 0;
}
#wdp-close span::before {
transform: translate(-50%, -50%) rotate(45deg);
}
#wdp-close span::after {
transform: translate(-50%, -50%) rotate(-45deg);
}
#wdp-close:hover {
color: var(--wdp-blue);
}
#wdp-rp {
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
}
#wdp-rp-inner {
width: min(400px, calc(100% - 64px));
padding: 24px 0 26px;
text-align: center;
box-sizing: border-box;
}
#wdp-brand-logo {
width: 86px;
max-width: 42%;
height: auto;
display: block;
margin: 0 auto 9px;
}
#wdp-offer {
margin: 0 0 11px;
}
#wdp-ttl {
margin: 0;
color: var(--wdp-text);
font-size: 25px;
line-height: 1.12;
font-weight: 900;
letter-spacing: 0;
}
#wdp-offer-line {
margin: 5px 0 0;
color: #656565;
font-size: 18px;
line-height: 1.2;
font-weight: 500;
letter-spacing: 0;
}
#wdp-ticket {
position: relative;
width: min(330px, 82%);
min-height: 94px;
margin: 0 auto 12px;
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
overflow: hidden;
direction: ltr;
border-radius: 14px;
color: #fff;
background: linear-gradient(135deg, #0058bb 0%, #1270c2 54%, #0058bb 100%);
box-shadow: 0 16px 34px rgba(18, 112, 194, .34);
}
#wdp-ticket::before,
#wdp-ticket::after {
position: absolute;
top: 50%;
width: 32px;
height: 32px;
border-radius: 50%;
background: #fff;
content: "";
}
#wdp-ticket::before {
left: -16px;
transform: translateY(-50%);
}
#wdp-ticket::after {
right: -16px;
transform: translateY(-50%);
}
.wdp-ticket-dash {
position: absolute;
top: 10px;
bottom: 10px;
left: 67px;
width: 2px;
background: repeating-linear-gradient(
to bottom,
rgba(255, 255, 255, .78) 0,
rgba(255, 255, 255, .78) 12px,
transparent 12px,
transparent 23px
);
}
.wdp-ticket-value {
display: block;
direction: ltr;
unicode-bidi: isolate;
font-size: 58px;
line-height: 1;
font-weight: 900;
letter-spacing: 0;
text-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.wdp-ticket-word {
display: block;
min-width: 50px;
direction: rtl;
font-size: 18px;
line-height: 1;
font-weight: 900;
letter-spacing: 0;
}
#wdp-ticket::marker {
content: "";
}
#wdp-ticket .wdp-ticket-word::before,
#wdp-ticket .wdp-ticket-word::after {
position: absolute;
top: 50%;
width: 30px;
height: 6px;
border-radius: 999px;
background: var(--wdp-blue);
content: "";
}
#wdp-ticket .wdp-ticket-word::before {
left: -55px;
transform: translateY(-50%) rotate(28deg);
}
#wdp-ticket .wdp-ticket-word::after {
right: -55px;
transform: translateY(-50%) rotate(-28deg);
}
.wdp-ticket-img-wrap {
min-height: 0 !important;
background: transparent !important;
box-shadow: none !important;
overflow: visible !important;
}
.wdp-ticket-img-wrap::before,
.wdp-ticket-img-wrap::after {
display: none !important;
}
#wdp-badge-img {
display: block;
width: min(330px, 100%);
max-height: 112px;
height: auto;
object-fit: contain;
margin: 0 auto;
filter: drop-shadow(0 15px 26px rgba(18, 112, 194, .22));
}
#wdp-sub {
margin: 0 auto 12px;
max-width: 360px;
color: #5f5f5f;
font-size: 15px;
line-height: 1.38;
font-weight: 500;
}
#wdp-form {
display: grid;
gap: 9px;
}
.wdp-field {
position: relative;
height: 44px;
border: 1.5px solid var(--wdp-border);
border-radius: 10px;
background: #fff;
box-sizing: border-box;
transition: border-color .18s, box-shadow .18s;
}
.wdp-field:focus-within {
border-color: rgba(18, 112, 194, .68);
box-shadow: 0 0 0 4px rgba(18, 112, 194, .1);
}
#wdp-form .wdp-field input {
width: 100%;
height: 100% !important;
min-height: 0 !important;
border: 0 !important;
outline: 0 !important;
padding: 0 16px 0 50px !important;
box-sizing: border-box;
background: transparent !important;
color: #222;
font-family: var(--wdp-font);
font-size: 15px !important;
line-height: 44px !important;
font-weight: 600;
text-align: right !important;
direction: rtl !important;
box-shadow: none !important;
appearance: none;
-webkit-appearance: none;
}
#wdp-form .wdp-field input::placeholder {
color: #9a9a9a;
opacity: 1;
}
.wdp-field-ico {
position: absolute;
top: 50%;
left: 18px;
width: 20px;
height: 20px;
color: #686868;
transform: translateY(-50%);
pointer-events: none;
}
.wdp-field-ico svg {
display: block;
width: 100%;
height: 100%;
}
#wdp-btn {
width: 100%;
min-height: 48px;
margin-top: 3px;
border: 0;
border-radius: 10px;
background: linear-gradient(180deg, #1378d5 0%, #0862b3 100%);
color: #fff;
font-family: var(--wdp-font);
font-size: 20px;
line-height: 1.15;
font-weight: 900;
cursor: pointer;
box-shadow: 0 14px 26px rgba(18, 112, 194, .26);
transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
#wdp-btn:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 17px 30px rgba(18, 112, 194, .33);
}
#wdp-btn:disabled {
cursor: wait;
opacity: .72;
}
.wdp-spin {
display: inline-block;
width: 20px;
height: 20px;
margin-inline-end: 10px;
vertical-align: -3px;
border: 3px solid rgba(255, 255, 255, .34);
border-top-color: #fff;
border-radius: 50%;
animation: wdpSpin .7s linear infinite;
}
@keyframes wdpSpin {
to { transform: rotate(360deg); }
}
#wdp-msg {
display: none;
width: 100%;
margin: 14px 0 0;
padding: 13px 16px;
border-radius: 14px;
box-sizing: border-box;
font-size: 15px;
line-height: 1.55;
font-weight: 700;
text-align: center;
}
.wdp-ok {
display: block !important;
color: #166534;
background: #ecfdf3;
border: 1px solid #a7f3d0;
}
.wdp-err {
display: block !important;
color: #991b1b;
background: #fff1f2;
border: 1px solid #fecdd3;
}
#wdp-prv {
display: flex;
align-items: center;
justify-content: center;
gap: 9px;
margin: 12px 0 0;
color: #777;
font-size: 12px;
line-height: 1.5;
font-weight: 600;
}
#wdp-prv span {
width: 16px;
height: 16px;
color: #777;
flex: 0 0 auto;
}
#wdp-prv svg {
display: block;
width: 100%;
height: 100%;
}
@media (max-width: 760px) {
#wdp-overlay {
padding: 8px;
}
#wdp-modal {
width: min(94vw, 520px);
max-height: 94vh;
border-radius: 24px;
overflow: hidden;
}
#wdp-close {
top: 15px;
right: 15px;
width: 28px;
height: 28px;
}
#wdp-close span::before,
#wdp-close span::after {
width: 25px;
height: 3px;
}
#wdp-rp-inner {
width: min(360px, calc(100% - 34px));
padding: 22px 0 22px;
}
#wdp-brand-logo {
width: 80px;
margin-bottom: 9px;
}
#wdp-offer {
margin-bottom: 11px;
}
#wdp-ttl {
font-size: 22px;
}
#wdp-offer-line {
margin-top: 4px;
font-size: 16px;
}
#wdp-ticket {
width: min(292px, 84%);
min-height: 84px;
margin-bottom: 11px;
border-radius: 13px;
gap: 12px;
}
#wdp-ticket::before,
#wdp-ticket::after {
width: 28px;
height: 28px;
}
#wdp-ticket::before {
left: -14px;
}
#wdp-ticket::after {
right: -14px;
}
.wdp-ticket-dash {
top: 10px;
bottom: 10px;
left: 58px;
}
.wdp-ticket-value {
font-size: 50px;
}
.wdp-ticket-word {
min-width: 42px;
font-size: 17px;
}
#wdp-ticket .wdp-ticket-word::before,
#wdp-ticket .wdp-ticket-word::after {
width: 26px;
height: 6px;
}
#wdp-ticket .wdp-ticket-word::before {
left: -45px;
}
#wdp-ticket .wdp-ticket-word::after {
right: -45px;
}
#wdp-badge-img {
width: min(292px, 100%);
max-height: 84px;
}
#wdp-sub {
margin-bottom: 10px;
font-size: 13px;
line-height: 1.35;
}
#wdp-form {
gap: 8px;
}
.wdp-field {
height: 42px;
border-radius: 10px;
}
#wdp-form .wdp-field input {
padding: 0 14px 0 46px !important;
font-size: 14px !important;
line-height: 42px !important;
}
.wdp-field-ico {
left: 16px;
width: 19px;
height: 19px;
}
#wdp-btn {
min-height: 45px;
margin-top: 3px;
font-size: 18px;
border-radius: 10px;
}
#wdp-msg {
margin-top: 11px;
padding: 10px 12px;
border-radius: 12px;
font-size: 13px !important;
line-height: 1.42;
font-weight: 800;
}
#wdp-prv {
margin-top: 10px;
font-size: 11px;
line-height: 1.35;
}
#wdp-prv span {
width: 15px;
height: 15px;
}
}
@media (max-width: 420px) {
#wdp-overlay {
padding: 8px;
}
#wdp-modal {
width: 94vw;
border-radius: 22px;
}
#wdp-rp-inner {
width: calc(100% - 28px);
padding: 20px 0 20px;
}
#wdp-brand-logo {
width: 72px;
margin-bottom: 8px;
}
#wdp-ttl {
font-size: 20px;
}
#wdp-offer-line {
font-size: 15px;
}
#wdp-ticket {
width: min(270px, 90%);
min-height: 78px;
gap: 10px;
}
.wdp-ticket-dash {
left: 52px;
}
.wdp-ticket-value {
font-size: 45px;
}
.wdp-ticket-word {
min-width: 38px;
font-size: 16px;
}
#wdp-ticket .wdp-ticket-word::before,
#wdp-ticket .wdp-ticket-word::after {
display: none;
}
#wdp-badge-img {
width: min(270px, 100%);
max-height: 78px;
}
#wdp-sub {
font-size: 12.5px;
line-height: 1.32;
}
.wdp-field {
height: 40px;
}
#wdp-form .wdp-field input {
padding: 0 13px 0 43px !important;
font-size: 13.5px !important;
line-height: 40px !important;
}
.wdp-field-ico {
left: 15px;
width: 18px;
height: 18px;
}
#wdp-btn {
min-height: 43px;
font-size: 17px;
}
#wdp-msg {
max-height: 90px;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
#wdp-prv {
font-size: 10.5px;
}
}
@media (max-width: 420px) and (max-height: 720px) {
#wdp-rp-inner {
padding: 16px 0 16px;
}
#wdp-brand-logo {
width: 62px;
margin-bottom: 6px;
}
#wdp-offer {
margin-bottom: 8px;
}
#wdp-ttl {
font-size: 18px;
}
#wdp-offer-line {
font-size: 14px;
}
#wdp-ticket {
min-height: 68px;
margin-bottom: 8px;
}
.wdp-ticket-value {
font-size: 38px;
}
.wdp-ticket-word {
font-size: 14px;
}
#wdp-badge-img {
max-height: 68px;
}
#wdp-sub {
margin-bottom: 8px;
font-size: 11.5px;
}
#wdp-form {
gap: 7px;
}
.wdp-field {
height: 36px;
}
#wdp-form .wdp-field input {
line-height: 36px !important;
font-size: 12.5px !important;
}
#wdp-btn {
min-height: 39px;
font-size: 16px;
}
#wdp-prv {
margin-top: 7px;
font-size: 9.8px;
}
}.woocommerce ul.products li.product,
.woocommerce ul.product_list_widget li,
.wc-block-grid__product,
.wc-block-product {
position: relative;
}
.wscb-badge {
position: absolute;
z-index: 9;
top: 0;
right: 0;
left: auto;
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 25px;
max-width: calc(100% - 8px);
box-sizing: border-box;
padding: 4px 9px;
border-radius: 0 0 0 8px;
color: #fff;
font-family: inherit;
font-size: 12px;
font-weight: 700;
line-height: 1.35;
text-align: center;
white-space: nowrap;
direction: rtl;
pointer-events: none;
box-shadow: 0 1px 2px rgb(0 0 0 / 16%);
}
.wscb-badge--new {
background-color: #1270c2;
}
.wscb-badge--one-plus-one {
background-color: #7a2cbf;
}
.wscb-badge--best-seller {
background-color: #f59e0b;
color: #111827;
}
.wscb-badge--saving {
background-color: #d92323;
}
.wscb-badge .woocommerce-Price-amount,
.wscb-badge .woocommerce-Price-currencySymbol {
color: inherit;
font: inherit;
}
@media (max-width: 480px) {
.wscb-badge {
min-height: 22px;
padding: 3px 7px;
border-radius: 0 0 0 7px;
font-size: 10px;
}
}