.clabiana-quiz-widget-wrapper {
    display: inline-block;
    width: 100%;
}
.clabiana-quiz-open-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #C09B54;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(192, 155, 84, 0.25);
}
.clabiana-quiz-open-trigger-btn:hover {
    background: #a88442;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 155, 84, 0.35);
}
.clabiana-quiz-open-trigger-btn .quiz-trigger-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
    transition: transform 0.25s ease;
}
.clabiana-quiz-open-trigger-btn:hover .quiz-trigger-icon {
    transform: translateX(-3px);
}
.clabiana-quiz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.clabiana-quiz-modal-card {
    background: #FDFBF7;
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    border: 1px solid #F0E9DC;
    position: relative;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    animation: quizModalPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes quizModalPopIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.clabiana-quiz-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
        padding: 0px 10px 18px 10px;
    border-bottom: 1px solid #E2DDD4;
}

.clabiana-quiz-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.clabiana-quiz-close-btn img {
    width: 12px;
    height: 12px;   
    object-fit: contain;
    display: block;
}

.clabiana-quiz-close-btn:hover {
    opacity: 0.75;
    transform: scale(1.05);
    background: #faebd700;
}

.clabiana-quiz-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #C09B54;
}

.clabiana-quiz-header-title .quiz-timer-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
}

.clabiana-quiz-progress-wrapper {
    margin-bottom: 24px;
}

.clabiana-quiz-progress-bar {
    display: flex;
    gap: 8px;
    width: 488px;
    max-width: 100%;
    margin: 0 auto;
}

.clabiana-quiz-progress-segment {
    flex: 1;
    height: 4px;
    background-color: #EFE8DB;
    border-radius: 18px;
    transition: background-color 0.4s ease;
}

.clabiana-quiz-progress-segment.active {
    background-color: #C09B54;
}

.clabiana-quiz-step-num-badge {
    font-size: 16px;
    color: #717171;
    font-weight: 700;   
    margin-bottom: 8px;
}

.clabiana-quiz-question-title {
    font-size: 17px;
    font-weight: 700;
    color: #717171;
    margin: 0 0 16px 0;
    line-height: 1.35;
}

.clabiana-quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clabiana-quiz-opt-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 1px solid #CECECE;
    padding: 16px 20px;
    border-radius: 17px;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: right;
    box-sizing: border-box;
    height: 62px;
}

.clabiana-quiz-opt-btn:hover {
    background: #ffffff;
    border-color: #C09B54;
    color: #C09B54;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(192, 155, 84, 0.12);
}

.quiz-arrow-icon {
    width: 11px;
    height: 11px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.clabiana-quiz-opt-btn:hover .quiz-arrow-icon {
    transform: translateX(-4px);
}
.clabiana-quiz-result-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.clabiana-quiz-result-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #9B7E47; 
}

.clabiana-quiz-result-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000; 
}

.clabiana-quiz-result-desc {
    font-size: 13.5px;
    color: #666666;
    margin: 0 0 20px 0;
}

.clabiana-quiz-products-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.clabiana-quiz-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.clabiana-quiz-product-img-wrap {
    width: 98px;
    height: 162px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.clabiana-quiz-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clabiana-quiz-product-badge {
    font-size: 16px;
    font-family: 'Tajawal';
    font-weight: 700;
    color: #5B5B5B;
}

.clabiana-quiz-result-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.clabiana-quiz-original-price {
    font-size: 18px;
    color: #B7B1A9;
    font-family: 'Tajawal';
}

.clabiana-quiz-final-price {
    font-size: 24px;
    font-weight: 800;
    color: #5B5B5B;
    font-family: 'Tajawal';
}

.clabiana-quiz-savings-badge {
    background: #369B3A;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

.clabiana-quiz-add-routine-btn {
    width: 436px;
    max-width: 100%;
    height: 56px;
    background: #B99256;
    color: #ffffff;
    border: none;
    padding: 16px 20px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(192, 155, 84, 0.3);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.clabiana-quiz-add-routine-btn:hover {
    background: #a88442;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192, 155, 84, 0.4);
}

.clabiana-quiz-add-routine-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.clabiana-quiz-products-dots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px 0 10px 0;
}

.clabiana-quiz-products-dots .quiz-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D5C8B4;
    transition: all 0.3s ease;
    cursor: pointer;
}

.clabiana-quiz-products-dots .quiz-dot.active {
    width: 20px;
    border-radius: 10px;
    background: #B99256;
}

.clabiana-quiz-restart-btn {
    background: transparent;
    border: none;
    padding: 0px;
    color: #767068;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease;
}

.quiz-restart-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
}

.clabiana-quiz-restart-btn:hover {
    background: #00000000;
    color: #767068;
}

@media (max-width: 600px) {
    .clabiana-quiz-modal-overlay {
        padding: 10px;
    }

    .clabiana-quiz-modal-card {
        padding: 20px 14px;
        max-width: 100%;
        border-radius: 20px;
    }

    .clabiana-quiz-products-grid {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .clabiana-quiz-products-grid::-webkit-scrollbar {
        display: none;
    }

    .clabiana-quiz-product-card {
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .clabiana-quiz-products-dots {
        display: flex;
    }

    .clabiana-quiz-add-routine-btn {
        width: 100% !important;
        font-size: 20px;
        height: 52px;
    }
}
