.rdqa-modal, .rdqa-toast {
    --rdqa-surface: #ffffff; --rdqa-ink: #242424; --rdqa-muted: #656565;
    --rdqa-border: #dedbd7; --rdqa-accent: #8bc53f;
    font-family: "KalamehFaNum", Tahoma, sans-serif;
    font-size: 15px; line-height: 1.7; color: var(--rdqa-ink); direction: rtl;
    box-sizing: border-box;
}
.rdqa-modal *, .rdqa-toast * { box-sizing: border-box; }
body.rdqa-modal-open { overflow: hidden; }
.rdqa-modal[hidden], .rdqa-toast[hidden], .rdqa-modal [hidden] { display: none !important; }
dialog.rdqa-modal, div.rdqa-modal {
    position: fixed; inset: 0; z-index: 2147483000; width: 100%; max-width: none;
    height: 100%; height: 100dvh; max-height: none; margin: 0; border: 0;
    padding: 24px; background: transparent; overflow: hidden;
}
.rdqa-modal[open] { display: grid; place-items: center; }
.rdqa-modal::backdrop { background: rgba(10, 6, 6, .72); }
div.rdqa-modal { background: rgba(10, 6, 6, .72); }
.rdqa-panel {
    width: min(600px, 100%); max-height: 100%; min-height: 0;
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--rdqa-surface); border: 1px solid var(--rdqa-border);
    border-radius: 24px; box-shadow: 0 30px 100px #0008;
    animation: rdqa-enter .16s ease-out;
}
.rdqa-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--rdqa-border); }
.rdqa-header small { display: block; color: #4e781d; font-size: 12px; }
.rdqa-modal .rdqa-header h2 { margin: 2px 0 0; font: inherit; font-size: 20px; font-weight: 700; color: var(--rdqa-ink); }
.rdqa-modal button.rdqa-close { display: grid; place-items: center; flex: 0 0 44px; height: 44px; width: 44px; margin: 0; padding: 0; color: var(--rdqa-ink); background: #f8f7f5; border: 1px solid var(--rdqa-border); border-radius: 50%; cursor: pointer; }
.rdqa-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rdqa-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px; scrollbar-width: thin; scrollbar-color: #aaa29b transparent; }
.rdqa-summary { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 24px; }
.rdqa-modal img.rdqa-image { width: 96px; height: 112px; object-fit: contain; background: #fff; border-radius: 14px; }
.rdqa-modal .rdqa-name { margin: 0 0 8px; color: var(--rdqa-ink); font: inherit; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.rdqa-price, .rdqa-price .price { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 9px; direction: ltr; text-align: right; font-size: 17px; font-weight: 700; color: var(--rdqa-ink); }
.rdqa-price .price { width: 100%; }
.rdqa-price ins { background: transparent; text-decoration: none; }
.rdqa-price del { color: var(--rdqa-muted); font-size: 14px; font-weight: 400; }
.rdqa-price .amount { white-space: nowrap; }
.rdqa-price .screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.rdqa-stock { margin: 7px 0 0; font-size: 13px; color: #297140; }
.rdqa-stock.is-out { color: #a52323; }
.rdqa-field { min-width: 0; padding: 0; border: 0; margin: 0 0 22px; }
.rdqa-field:last-child { margin-bottom: 0; }
.rdqa-field legend { display: block; float: none; padding: 0; margin: 0 0 10px; color: var(--rdqa-ink); font: inherit; font-size: 16px; font-weight: 700; }
.rdqa-options { display: flex; flex-wrap: wrap; gap: 8px; }
.rdqa-field .rdqa-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
.rdqa-modal button.rdqa-option { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 15px; margin: 0; color: var(--rdqa-ink); background: #fff; border: 1px solid #c8c3bd; border-radius: 11px; font: inherit; font-size: 14px; line-height: 1.55; text-align: center; cursor: pointer; transition: background .12s, border-color .12s; }
.rdqa-modal button.rdqa-option:hover:not(:disabled) { background: #f5faed; border-color: #669c28; }
.rdqa-modal button.rdqa-option[aria-pressed="true"] { color: var(--rdqa-ink); background: #eef7e3; border-color: #5a8c21; box-shadow: inset 0 0 0 1px #5a8c21; }
.rdqa-modal button.rdqa-option:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.rdqa-modal button.rdqa-option[aria-pressed="true"]:disabled { text-decoration: none; }
.rdqa-hint, .rdqa-help { color: var(--rdqa-muted); font-size: 13px; margin: 0 0 12px; }
.rdqa-footer { flex-shrink: 0; padding: 14px 22px 20px; border-top: 1px solid var(--rdqa-border); background: var(--rdqa-surface); }
.rdqa-error { color: #a52323; font-size: 14px; margin: 0 0 12px; }
.rdqa-error:empty { display: none; }
.rdqa-quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.rdqa-quantity-row label { color: var(--rdqa-ink); font: inherit; font-weight: 700; }
.rdqa-quantity-controls { display: inline-flex; align-items: center; gap: 6px; }
.rdqa-modal .rdqa-quantity-controls button { width: 44px; height: 44px; min-width: 44px; padding: 0; margin: 0; border: 1px solid #c8c3bd; border-radius: 10px; background: #f5faed; color: var(--rdqa-ink); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.rdqa-modal input.rdqa-quantity { width: 66px; height: 44px; min-width: 0; margin: 0; padding: 4px; border: 1px solid #c8c3bd; border-radius: 10px; background: #fff; color: var(--rdqa-ink); font: inherit; font-size: 18px; text-align: center; direction: ltr; appearance: textfield; }
.rdqa-quantity::-webkit-inner-spin-button, .rdqa-quantity::-webkit-outer-spin-button { appearance: none; margin: 0; }
.rdqa-modal .rdqa-quantity-controls button:disabled, .rdqa-modal input.rdqa-quantity:disabled { opacity: .5; cursor: not-allowed; }
.rdqa-modal input.rdqa-quantity:focus-visible { outline: 3px solid #4f7e1d; outline-offset: 2px; }
.rdqa-modal input.rdqa-quantity[aria-invalid="true"] { border-color: #a52323; }
.rdqa-unit-note { margin: 0 0 8px; color: var(--rdqa-muted); font-size: 12px; }
.rdqa-quantity-error { margin: 0 0 8px; color: #a52323; font-size: 13px; }
.rdqa-quantity-error:empty { display: none; }
.rdqa-modal button.rdqa-add { width: 100%; min-height: 50px; padding: 12px 18px; margin: 0; background: var(--rdqa-accent); color: #15200b; border: 1px solid #6ea72d; border-radius: 13px; font: inherit; font-weight: 700; cursor: pointer; }
.rdqa-modal button.rdqa-add:hover:not(:disabled) { background: #7ab533; }
.rdqa-modal button.rdqa-add:disabled { background: #dedbd7; border-color: #dedbd7; color: #67635f; cursor: not-allowed; }
.rdqa-modal button:focus-visible, .rdqa-toast a:focus-visible, .rdqa-toast button:focus-visible { outline: 3px solid #4f7e1d; outline-offset: 3px; }
.rdqa-loading { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--rdqa-muted); }
.rdqa-spinner { display: inline-block; width: 22px; height: 22px; flex: 0 0 22px; border: 2px solid var(--rdqa-border); border-top-color: #6fa62f; border-radius: 50%; animation: rdqa-spin .8s linear infinite; }
.rdqa-busy { opacity: .55; cursor: wait; }
.rdqa-toast { position: fixed; z-index: 2147483001; right: 20px; bottom: 24px; width: min(400px, calc(100vw - 32px)); padding: 17px; background: #1f241c; border: 1px solid #8bc53f; border-radius: 16px; box-shadow: 0 12px 50px #0005; }
.rdqa-toast.is-error { background: #492529; border-color: #b6757c; }
.rdqa-toast p { margin: 0 0 12px; color: #fff; }
.rdqa-toast > div { display: flex; flex-wrap: wrap; gap: 10px; }
.rdqa-toast a, .rdqa-toast button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 7px 14px; color: #fff; background: #ffffff08; border: 1px solid #b5c3b9; border-radius: 9px; text-decoration: none; font: inherit; font-size: 13px; cursor: pointer; }
@keyframes rdqa-spin { to { transform: rotate(360deg); } }
@keyframes rdqa-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 767px) {
    dialog.rdqa-modal, div.rdqa-modal { padding: 0; }
    .rdqa-modal[open] { place-items: end stretch; }
    .rdqa-panel { width: 100%; max-height: 92%; max-height: 92dvh; border-radius: 22px 22px 0 0; border-bottom: 0; }
    .rdqa-header { position: relative; padding: 20px 16px 12px; }
    .rdqa-header::before { content: ''; position: absolute; width: 42px; height: 4px; background: #bfb7b0; border-radius: 99px; top: 7px; left: calc(50% - 21px); }
    .rdqa-modal .rdqa-header h2 { font-size: 18px; }
    .rdqa-content { padding: 18px 16px; }
    .rdqa-modal .rdqa-field button.rdqa-option { padding-inline: 8px; }
    .rdqa-summary { grid-template-columns: 78px minmax(0, 1fr); gap: 13px; margin-bottom: 20px; }
    .rdqa-modal img.rdqa-image { width: 78px; height: 92px; }
    .rdqa-modal .rdqa-name { font-size: 16px; }
    .rdqa-price, .rdqa-price .price { font-size: 15px; }
    .rdqa-footer { padding: 12px 16px max(16px, env(safe-area-inset-bottom)); }
    .rdqa-toast { right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .rdqa-panel, .rdqa-spinner { animation: none; } .rdqa-modal button.rdqa-option { transition: none; } }
.rdqa-actions { display: flex; gap: 10px; align-items: stretch; }
.rdqa-modal .rdqa-actions .rdqa-add { flex: 1 1 auto; min-width: 0; }
.rdqa-modal .rdqa-options { display: flex; flex-wrap: wrap; }
.rdqa-modal button.rdqa-option { gap: 8px; min-width: 54px; }
.rdqa-modal .rdqa-swatch { display: block; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #b6b1ac; box-shadow: inset 0 0 0 2px #fff; object-fit: cover; }
.rdqa-modal button.rdqa-option:disabled .rdqa-swatch { filter: grayscale(1); }
.elementor-element-f3774dd .elementor-icon,
.elementor-element-1c0cb3c .elementor-icon,
[data-rdqa-trigger] { cursor: pointer; }
.elementor-element-f3774dd .elementor-icon:focus-visible,
.elementor-element-1c0cb3c .elementor-icon:focus-visible,
[data-rdqa-trigger]:focus-visible { outline: 3px solid #4f7e1d; outline-offset: 3px; }

