.pweb-form,
.pweb-room,
.pweb-message {
    direction: rtl;
    font-family: "futura-100-hebrew-book", Sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    max-width: 720px;
    margin: 0 auto;
}

.pweb-form {
    display: grid;
    gap: 16px;
}

.pweb-field {
    display: grid;
    gap: 7px;
}

.pweb-field label,
.pweb-slots-title {
    font-weight: 700;
}

.pweb-field input,
.pweb-form input[type="text"],
.pweb-form input[type="email"],
.pweb-form input[type="tel"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 16px;
    background: #fff;
}

.pweb-hp {
    position: absolute;
    inset-inline-start: -9999px;
    height: 0;
    overflow: hidden;
}

.pweb-slots {
    display: grid;
    gap: 8px;
}

.pweb-slot {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    background: #fff;
    direction: rtl;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.pweb-slot:hover {
    background: #fafafa;
}

.pweb-slot:has(input:checked) {
    border-color: transparent;
    background: #f6f7f8;
    box-shadow: none;
}

.pweb-slot input[type="radio"] {
    appearance: none;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 2px solid #a6adb8;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-content: center;
}

.pweb-slot input[type="radio"]::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ed5475;
    transform: scale(0);
    transition: transform .12s ease;
}

.pweb-slot input[type="radio"]:checked {
    border-color: #9aa2ad;
}

.pweb-slot input[type="radio"]:checked::before {
    transform: scale(1);
}

.pweb-slot-content {
    display: grid;
    gap: 5px;
    flex: 1;
    text-align: right;
}

.pweb-slot-content strong {
    color: #101828;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.pweb-slot-content small {
    color: #667085;
    font-size: 12px;
    line-height: 1.25;
}

.pweb-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 20px;
}

.pweb-submit,
.pweb-buy-btn,
.pweb-popup-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    padding: 12px 22px;
    background: #D12878 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 1rem;
    font-family: "futura-100-hebrew";
}

.pweb-submit {
    width: 100%;
    font-size: 22px;
}

.pweb-submit:disabled {
    opacity: .78;
    cursor: wait;
}

.pweb-submit-spinner {
    width: 20px;
    height: 20px;
    margin-inline-end: 10px;
    border: 3px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pweb-spin .7s linear infinite;
}

@keyframes pweb-spin {
    to { transform: rotate(360deg); }
}

.pweb-message {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    background: #fff;
}

.pweb-form-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .58);
}

.pweb-form-popup[hidden] {
    display: none !important;
}

.pweb-form-popup-inner {
    position: relative;
    width: min(430px, 100%);
    border-radius: 18px;
    padding: 30px 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.pweb-form-popup-inner h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.pweb-form-popup-inner p {
    margin: 0 0 16px;
}

.pweb-form-popup-close {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.pweb-form-refresh {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    padding: 12px 22px;
    background: #D12878;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.pweb-room {
    text-align: center;
}

.pweb-room-waiting {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 20px;
    background: #fff;
}

.pweb-timer {
    margin-top: 14px;
    font-size: clamp(34px, 7vw, 64px);
    font-weight: 900;
    line-height: 1;
    color: #111827;
}

.pweb-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
}

.pweb-video-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.pweb-video-click-target {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    cursor: pointer;
    box-shadow: none !important;
}

.pweb-video-click-target:hover,
.pweb-video-click-target:focus,
.pweb-video-click-target:active {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
}

.pweb-video-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 6;
    display: flex;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.pweb-video-wrap.is-controls-visible .pweb-video-controls,
.pweb-video-controls:focus-within {
    opacity: 1;
    visibility: visible;
}

.pweb-video-controls button,
.pweb-video-controls button:hover,
.pweb-video-controls button:focus,
.pweb-video-controls button:active {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.8) !important;
    color: #fff !important;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
    outline: none;
}

.pweb-video-controls button:hover {
    background: rgba(17, 24, 39, 0.95) !important;
}

.pweb-volume-control {
    position: relative;
    width: 40px;
    height: 40px;
}

.pweb-volume-control::before {
    position: absolute;
    right: 0;
    bottom: 34px;
    left: 0;
    height: 58px;
    content: "";
}

.pweb-volume-control input[type="range"] {
    position: absolute;
    left: 50%;
    bottom: 86px;
    z-index: 2;
    width: 104px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    direction: ltr;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center;
    appearance: none;
    cursor: pointer;
    transition: opacity .15s ease, visibility .15s ease;
}

.pweb-volume-control input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, #fff 0 var(--pweb-volume, 0%), rgba(255, 255, 255, 0.4) var(--pweb-volume, 0%) 100%);
}

.pweb-volume-control input[type="range"]::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    appearance: none;
}

.pweb-volume-control input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
}

.pweb-volume-control input[type="range"]::-moz-range-progress {
    height: 4px;
    border-radius: 4px;
    background: #fff;
}

.pweb-volume-control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: #fff;
}

.pweb-volume-control:hover input[type="range"],
.pweb-volume-control:focus-within input[type="range"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pweb-video-overlay {
    position: absolute;
    top: auto;
    bottom: 55px;
    left: 18px;
    z-index: 5;
    max-width: min(3000px, 45%);
    line-height: 0;
}

.pweb-video-overlay[hidden] {
    display: none !important;
}

.pweb-video-overlay img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    border-radius: 10px;
}

.pweb-video-overlay a {
    display: block;
}

.pweb-video-overlay-close {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    display:flex;
    justify-content: center;
    align-items: center;
}



.pweb-purchase-wrap {
    margin-top: 20px;
    text-align: center;
}

.pweb-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .58);
}

.pweb-popup[hidden],
.pweb-purchase-wrap[hidden] {
    display: none !important;
}

.pweb-popup-inner {
    position: relative;
    width: min(430px, 100%);
    border-radius: 18px;
    padding: 30px 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.pweb-popup-inner h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.pweb-popup-inner p {
    margin: 0 0 16px;
}

.pweb-popup-close {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

/* Admin settings */
.pweb-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

.pweb-admin-nav-link {
    padding: 9px 14px;
    border: 1px solid #dcdcde;
    border-radius: 7px;
    background: #fff;
    color: #1d2327;
    text-decoration: none;
}

.pweb-admin-nav-link:hover,
.pweb-admin-nav-link:focus {
    border-color: #2271b1;
    color: #135e96;
}

.pweb-admin-form {
    max-width: 920px;
}

.pweb-admin-intro,
.pweb-placeholder-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 920px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dcdcde;
}

.pweb-admin-intro {
    align-items: flex-start;
    flex-direction: column;
    background: #f0f6fc;
    border-color: #c5d9ed;
}

.pweb-placeholder-box code,
.pweb-template-card-heading code {
    padding: 4px 7px;
    border-radius: 4px;
    background: #f0f0f1;
}

.pweb-template-card {
    margin: 0 0 18px;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.pweb-template-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pweb-template-card-heading h2 {
    margin: 0;
}

.pweb-template-card textarea {
    direction: rtl;
    min-height: 130px;
    font-size: 14px;
    line-height: 1.7;
}

.pweb-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1100px;
}

.pweb-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 18px 0 24px;
}

.pweb-stat-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.pweb-stat-card span {
    color: #50575e;
    font-size: 13px;
}

.pweb-stat-card strong {
    color: #1d2327;
    font-size: 24px;
}

@media (max-width: 782px) {
    .pweb-stats-grid {
        grid-template-columns: 1fr;
    }

    .pweb-admin-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .pweb-form,
    .pweb-room,
    .pweb-message {
        max-width: 100%;
    }

    .pweb-video-wrap {
        border-radius: 10px;
        aspect-ratio: auto;
        height: 300px;
    }
}
