.cdp-wrapper {
    /* Background / overlay color from the admin, as an "r, g, b" triplet. */
    --cdp-bg-rgb: 5, 5, 7;
    --cdp-overlay: 0.78;

    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    direction: rtl;
    font-family: "Google Sans", system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    background: rgb(var(--cdp-bg-rgb));
    color: #ffffff;
    overflow-x: hidden;
    touch-action: pan-x pan-y;
}
/* One font everywhere, including buttons and inputs the theme styles on its own. */
.cdp-wrapper,
.cdp-wrapper *,
.cdp-toast-modal,
.cdp-toast-modal * {
    font-family: "Google Sans", system-ui, -apple-system, sans-serif !important;
}
.cdp-wrapper * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.cdp-viewport {
    position: fixed;
    inset: 0;
    display: flex;
    gap: 14px;
    justify-content: center;
    transform: rotate(-10deg) scale(1.3);
    pointer-events: none;
    z-index: 1;
}
.cdp-col {
    display: flex;
    flex-direction: column;
    /* Columns share the screen width, so any column count covers it edge to edge.
       On narrow screens min-width wins and the (centered) columns overflow. */
    flex: 1 0 0;
    min-width: 120px;
}
.cdp-track {
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* Own GPU layer per strip; mobile Safari stalls the animation without it. */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.cdp-col.direction-up .cdp-track {
    animation: cdpScrollUp var(--cdp-speed, 85s) linear infinite;
}
.cdp-col.direction-down .cdp-track {
    animation: cdpScrollDown var(--cdp-speed, 85s) linear infinite;
}
@keyframes cdpScrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
@keyframes cdpScrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}
.cdp-box-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 13 / 18;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
    display: block;
}
.cdp-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* --cdp-overlay is the center darkness from the admin (0.78 = the original look); the edges scale with it.
       --cdp-sides darkens the left and right edges on top of that. */
    background:
        linear-gradient(
            to right,
            rgba(var(--cdp-bg-rgb), var(--cdp-sides, 0)) 0%,
            rgba(var(--cdp-bg-rgb), 0) 35%,
            rgba(var(--cdp-bg-rgb), 0) 65%,
            rgba(var(--cdp-bg-rgb), var(--cdp-sides, 0)) 100%
        ),
        radial-gradient(
        circle at 50% 30%,
        rgba(var(--cdp-bg-rgb), var(--cdp-overlay)) 0%,
        rgba(var(--cdp-bg-rgb), min(1, calc(var(--cdp-overlay) * 1.23))) 65%,
        rgba(var(--cdp-bg-rgb), min(1, calc(var(--cdp-overlay) * 1.28))) 100%
    );
}
.cdp-content-layer {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.cdp-main-screen {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 80px 16px;
}
.cdp-center-block {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto;
}
.cdp-logo-link {
    display: inline-block !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    text-decoration: none !important;
    text-align: center !important;
    border: none !important;
    outline: none !important;
    touch-action: manipulation;
}
.cdp-logo-img {
    width: 200px !important;
    max-width: 200px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.7));
}
.cdp-hero-title {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 0 12px !important;
    text-align: center !important;
    line-height: 1.25 !important;
    text-shadow: 0 2px 14px rgba(0,0,0,0.8);
}
.cdp-hero-subtitle {
    font-size: 15.5px !important;
    color: #cbd5e1 !important;
    text-align: center !important;
    margin: 0 0 28px !important;
    line-height: 1.5 !important;
}
.cdp-steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 30px;
}
.cdp-step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 16px 8px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    /* Clicking a card starts the journey, like the main button. No hover change. */
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    outline: none;
}
.cdp-step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.cdp-step-text-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.2;
}
.cdp-step-text-sub {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.35;
}
.cdp-btn-solid-red {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 18px 24px !important;
    background: #e11d48 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-radius: 18px !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    touch-action: manipulation;
    user-select: none;
    transition: transform 0.12s ease, background-color 0.12s ease !important;
}
.cdp-btn-solid-red:hover {
    background: #f43f5e !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}
.cdp-btn-solid-red svg {
    transition: transform 0.2s ease;
}
.cdp-btn-solid-red:hover svg {
    transform: translateX(-5px);
}
.cdp-btn-solid-red:active {
    transform: scale(0.98) !important;
}
.cdp-bottom-disclaimer {
    margin-top: 18px;
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.55;
    text-align: center;
}
.cdp-wizard-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cdp-wizard-card {
    width: 100%;
    /* Same frosted glass as the intro step cards. */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    padding: 24px 20px 22px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    text-align: right;
    overflow: hidden;
}
.cdp-progress-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
}
.cdp-progress-segment {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.3s ease;
}
.cdp-progress-segment.active {
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
.cdp-step-viewport {
    position: relative;
    width: 100%;
    min-height: 250px;
    overflow: hidden;
}
.cdp-wizard-step {
    display: none;
    flex-direction: column;
    width: 100%;
}
.cdp-wizard-step.current {
    display: flex;
}
.cdp-wizard-step.slide-in-right {
    animation: cdpSlideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cdp-wizard-step.slide-in-left {
    animation: cdpSlideInLeft 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cdpSlideInRight {
    from {
        opacity: 0;
        transform: translateX(45px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes cdpSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-45px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.cdp-q-title {
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    text-align: center;
}
.cdp-q-desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 20px;
    line-height: 1.45;
    text-align: center;
}
.cdp-input {
    width: 100% !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
    touch-action: manipulation;
    transition: border-color 0.2s ease, background 0.2s ease !important;
}
.cdp-input::placeholder {
    color: #64748b;
    text-align: center;
}
.cdp-input:focus,
.cdp-input:hover {
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    outline: none !important;
}
.cdp-dropzone {
    border: 1px dashed rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px !important;
    padding: 28px 16px !important;
    text-align: center !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    touch-action: manipulation;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
}
.cdp-dropzone:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: none !important;
}
.cdp-dropzone-thumb {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}
.cdp-dropzone-text {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}
.cdp-dropzone-subtext {
    font-size: 12.5px;
    color: #94a3b8;
}
.cdp-age-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 12px 20px;
    touch-action: manipulation;
    user-select: none;
}
.cdp-age-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: manipulation;
    outline: none !important;
    box-shadow: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.cdp-age-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: none !important;
}
.cdp-age-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.25) !important;
}
.cdp-age-value {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    min-width: 50px;
    text-align: center;
    user-select: none;
}
.cdp-chips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.cdp-chip-btn {
    padding: 14px 10px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
    touch-action: manipulation;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}
.cdp-chip-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
.cdp-chip-btn.selected {
    border: 1px solid #ffffff !important;
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
.cdp-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 0;
}
.cdp-btn-next {
    flex: 1;
    padding: 16px !important;
    background: #e11d48 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 16px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    touch-action: manipulation;
    user-select: none;
    transition: background-color 0.12s ease;
}
.cdp-btn-next:hover {
    background: #f43f5e !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}
.cdp-btn-back-outside {
    display: none;
    margin-top: 14px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    padding: 6px 16px !important;
    touch-action: manipulation;
    user-select: none;
}
.cdp-btn-back-outside:hover,
.cdp-btn-back-outside:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
    background: transparent !important;
}
.cdp-loader-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 10px;
}
.cdp-custom-loader {
    --color-1: #ffffff;
    --color-2: #e11d48;
    --size: 1.4px;
    position: relative;
    height: calc(40 * var(--size));
    width: calc(6 * var(--size));
    color: var(--color-1);
    animation: paddles 0.75s ease-out infinite;
    margin: 20px auto 35px auto;
}
.cdp-custom-loader:before {
    content: '';
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: calc(15 * var(--size));
    width: calc(12 * var(--size));
    height: calc(12 * var(--size));
    background-color: var(--color-2);
    border-radius: 50%;
    animation: ballbounce 0.6s ease-out infinite;
}
@keyframes paddles {
    0% {
        box-shadow:
            calc(-25 * var(--size)) calc(-10 * var(--size)),
            calc(25 * var(--size)) calc(10 * var(--size));
    }
    50% {
        box-shadow:
            calc(-25 * var(--size)) calc(8 * var(--size)),
            calc(25 * var(--size)) calc(-10 * var(--size));
    }
    100% {
        box-shadow:
            calc(-25 * var(--size)) calc(-10 * var(--size)),
            calc(25 * var(--size)) calc(10 * var(--size));
    }
}
@keyframes ballbounce {
    0% {
        transform: translateX(calc(-20 * var(--size))) scale(1, 1.2);
    }
    25% {
        transform: scale(1.2, 1);
    }
    50% {
        transform: translateX(calc(15 * var(--size))) scale(1, 1.2);
    }
    75% {
        transform: scale(1.2, 1);
    }
    100% {
        transform: translateX(calc(-20 * var(--size)));
    }
}
.cdp-result-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.cdp-result-img {
    /* !important: the theme's img rules otherwise win (size and corners). */
    display: block !important;
    width: 100% !important;
    max-width: 220px !important;
    height: auto !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
    user-select: none;
    -webkit-user-drag: none;
}

.cdp-btn-retry-text {
    display: inline-block !important;
    margin-top: 16px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    touch-action: manipulation;
    user-select: none;
    transition: color 0.2s ease !important;
    padding: 4px 8px !important;
}
.cdp-btn-retry-text:hover {
    color: #ffffff !important;
    background: transparent !important;
}
.cdp-site-footer {
    width: 100%;
    padding: 60px 20px 45px 20px;
    text-align: center;
    background: rgba(var(--cdp-bg-rgb), 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 4;
    box-sizing: border-box;
}
.cdp-footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.cdp-footer-social a {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}
.cdp-footer-social a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}
.cdp-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    flex-wrap: wrap;
}
.cdp-footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cdp-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.cdp-sep {
    color: #475569;
}
.cdp-footer-disclaimer {
    max-width: 650px;
    margin: 0 auto 18px;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.65;
}
.cdp-footer-copy {
    font-size: 12px;
    color: #94a3b8;
}
.cdp-toast-modal {
    direction: rtl;
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.cdp-toast-card {
    background: #141419;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    padding: 34px 26px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9);
    color: #ffffff;
}
.cdp-toast-title {
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}
.cdp-toast-desc {
    font-size: 14.5px;
    color: #94a3b8;
    margin: 0 0 20px;
    line-height: 1.5;
}
.cdp-toast-card .cdp-btn-row {
    flex-direction: column;
    align-items: center;
}
.cdp-toast-card .cdp-btn-next {
    width: 100%;
}
.cdp-toast-card .cdp-btn-back-outside {
    display: inline-block;
    margin-top: 4px !important;
}
@media (max-width: 640px) {
    .cdp-result-img {
        max-width: 190px !important;
        border-radius: 14px !important;
    }
    .cdp-main-screen {
        justify-content: flex-start !important;
        padding: 32px 16px 110px 16px !important;
        min-height: auto !important;
    }
    .cdp-center-block {
        margin: 0 auto !important;
    }
    .cdp-logo-link {
        margin-top: 8px !important;
        margin-bottom: 26px !important;
    }
    .cdp-logo-img {
        width: 145px !important;
        max-width: 145px !important;
    }
    .cdp-hero-title {
        font-size: 23px !important;
        margin-bottom: 8px !important;
    }
    .cdp-hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 22px !important;
    }
    .cdp-steps-row {
        margin-bottom: 22px !important;
        gap: 6px !important;
    }
    .cdp-step-card {
        padding: 12px 6px !important;
        border-radius: 14px !important;
    }
    .cdp-step-badge {
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }
    .cdp-step-text-title {
        font-size: 12.5px !important;
    }
    .cdp-step-text-sub {
        font-size: 10.5px !important;
    }
    .cdp-bottom-disclaimer {
        margin-top: 20px !important;
        font-size: 12.5px !important;
        line-height: 1.55 !important;
    }
    .cdp-wizard-card {
        padding: 20px 16px 18px 16px !important;
        border-radius: 22px !important;
    }
    .cdp-progress-bar {
        margin-bottom: 18px !important;
    }
    .cdp-q-title {
        font-size: 19px !important;
    }
    .cdp-q-desc {
        font-size: 13.5px !important;
        margin-bottom: 16px !important;
    }
    .cdp-input {
        padding: 14px !important;
        font-size: 16px !important;
    }
    .cdp-btn-solid-red {
        padding: 16px 20px !important;
        font-size: 18px !important;
        border-radius: 16px !important;
    }
    .cdp-site-footer {
        padding: 50px 16px 36px 16px !important;
    }
}

/* Error message inside the wizard card. */
.cdp-alert {
    display: none;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(225, 29, 72, 0.14);
    border: 1px solid rgba(225, 29, 72, 0.45);
    color: #fecdd3;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}
.cdp-alert.visible {
    display: block;
}

/* Access code dialog: reuses the toast card. */
.cdp-toast-modal.visible {
    display: flex;
}
.cdp-code-input {
    margin-bottom: 12px;
    letter-spacing: 4px;
}
.cdp-code-error {
    display: none;
    margin: 0 0 12px;
    color: #fda4af;
    font-size: 13.5px;
    font-weight: 600;
}
.cdp-code-error.visible {
    display: block;
}

/* Text that differs between mobile and desktop (intro). */
.cdp-mobile-only {
    display: none !important;
}
@media (max-width: 640px) {
    .cdp-mobile-only {
        display: inline !important;
    }
    .cdp-desktop-only {
        display: none !important;
    }
}

/* Mobile: fewer moving strips (only ~4 are on screen anyway); 10 is too heavy for phones. */
@media (max-width: 900px) {
    .cdp-col:nth-child(n+8) {
        display: none;
    }
}
@media (max-width: 640px) {
    .cdp-col:nth-child(n+6) {
        display: none;
    }
}

/* Mobile has its own overlay darkness setting. */
@media (max-width: 640px) {
    .cdp-overlay {
        --cdp-overlay: var(--cdp-overlay-mobile);
    }
}

/* Footer pop-ups (contact, privacy, accessibility): scrollable text in the toast card. */
html.cdp-modal-open,
html.cdp-modal-open body {
    overflow: hidden;
}
.cdp-legal-card {
    position: relative;
    max-width: 560px;
    max-height: 85vh;
    max-height: 85dvh;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    text-align: right;
}
.cdp-legal-card .cdp-toast-title {
    text-align: center;
    margin: 0 40px 16px;
}
.cdp-legal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    color: #cbd5e1;
    font-size: 14.5px;
    line-height: 1.7;
    padding-left: 6px;
}
.cdp-legal-body h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 18px 0 6px;
}
.cdp-legal-body p,
.cdp-legal-body ul {
    margin: 0 0 12px;
}
.cdp-legal-body ul {
    padding-right: 20px;
    padding-left: 0;
}
/* White and underlined in every state; the theme's own link hover color was winning. */
.cdp-legal-body a,
.cdp-legal-body a:hover,
.cdp-legal-body a:focus,
.cdp-legal-body a:active,
.cdp-legal-body a:visited {
    color: #ffffff !important;
    text-decoration: underline !important;
}
.cdp-legal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cdp-legal-close:hover {
    background: rgba(255, 255, 255, 0.16) !important;
}
@media (max-width: 640px) {
    .cdp-legal-card {
        padding: 24px 18px 20px;
    }
}

/* Scrollbars: thin and translucent over the dark background (page + pop-ups). */
html {
    background: #050507;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.cdp-legal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
html::-webkit-scrollbar,
.cdp-legal-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
html::-webkit-scrollbar-track,
.cdp-legal-body::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb,
.cdp-legal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover,
.cdp-legal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
    background-clip: padding-box;
}

/* Result image with download / WhatsApp buttons on its bottom corner. */
.cdp-result-media {
    position: relative;
    width: fit-content;
    margin: 0 auto 24px;
}
.cdp-result-actions {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
}
.cdp-icon-btn {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(10, 10, 14, 0.62) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    touch-action: manipulation;
    transition: background 0.15s ease, transform 0.15s ease;
}
.cdp-icon-btn:hover {
    background: rgba(10, 10, 14, 0.8) !important;
}
.cdp-icon-btn:active {
    transform: scale(0.94);
}
.cdp-icon-btn-wa {
    background: rgba(37, 211, 102, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}
.cdp-icon-btn-wa:hover {
    background: rgba(37, 211, 102, 1) !important;
}
.cdp-icon-btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}
