/* NORMALIZE css starts here */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html,
:host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family:
        ui-sans-serif,
        system-ui,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Color Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    line-height: inherit;
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

abbr:where([title]) {
    text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp,
pre {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button,
select {
    text-transform: none;
}

button,
input:where([type=button]),
input:where([type=reset]),
input:where([type=submit]) {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

:-moz-focusring {
    outline: auto;
}

:-moz-ui-invalid {
    box-shadow: none;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

summary {
    display: list-item;
}

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

ol,
ul,
menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

dialog {
    padding: 0;
}

textarea {
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    opacity: 1;
    color: #9ca3af;
}

button,
[role=button] {
    cursor: pointer;
}

:disabled {
    cursor: default;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    vertical-align: middle;
}

img,
video {
    max-width: 100%;
    height: auto;
}

html {
    background-color: #fff;
    font-family: "Cairo",
        ui-sans-serif,
        system-ui,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Color Emoji";
}

/* "Alexandria" */

body>div {
    height: 100dvh;
    display: flex;
}

.hidden {
    display: none;
}

.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* header css starts here */
.fatwa-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    /* box-shadow: 0 -14px 17px 14px #0000001c; */
}

.search-bar {
    padding: 12px 20px;

    .search-form {
        .search-form_label {
            position: relative;
            display: block;
            width: 100%;

            .search-form_icon {
                position: absolute;
                right: 12px;
                top: 13px;
                width: 20px;
                height: 20px;
            }
        }

        .search-form_input {
            width: 100%;
            padding: 11px 40px 11px 12px;
            border-radius: 8px;
            border: 1px solid #E5E5E5;

            &:focus {
                outline-color: #8A1739;
            }
        }
    }
}

.fatwa-nav {
    padding: 12px 24px;

    @media (width < 768px) {
        padding: 8px 20px;
    }

    .fatwa-nav_list {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .list-item_link {
            font-family: "Alexandria";
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .list-item_btn {
            padding: 8px;
            border-radius: 8px;
            background-color: #F9EBEF;

            .close {
                display: none;
            }

            &.active {
                background-color: #FAFAFA;

                .open {
                    display: none;
                }

                .close {
                    display: block;
                }
            }
        }

        .fatwa-nav_list-item.with-menu-btn {
            @media (width < 768px) {
                display: flex;
                align-items: center;
                gap: 16px;
            }

            &>.list-item_menu-btn {
                display: none;

                @media (width < 768px) {
                    display: block;
                }
            }
        }

        .fatwa-nav_list-item.mobile-btn {
            display: none;

            @media (width < 768px) {
                display: block;
            }
        }

        @media (width < 768px) {
            .fatwa-nav_list-item.desk-search {
                display: none;
            }
        }

        .search-form {
            display: flex;
            align-items: center;
            gap: 12px;

            .search-form_label {
                position: relative;
                display: block;
                min-width: 280px;

                .search-form_icon {
                    position: absolute;
                    right: 12px;
                    top: 13px;
                    width: 20px;
                    height: 20px;
                }
            }

            .search-form_input {
                width: 100%;
                padding: 11px 40px 11px 12px;
                border-radius: 8px;
                border: 1px solid #E5E5E5;

                &:focus {
                    outline-color: #8A1739;
                }
            }

            .search-form_btn {
                padding: 13px;
                border-radius: 8px;
                background: #8A1739;
            }
        }
    }
}

/* aside css starts here */
.aside {
    border-left: 1px solid #E5E5E5;
    padding: 20px;
    width: 325px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;

    @media (width < 768px) {
        position: fixed;
        top: 0;
        right: -280px;
        z-index: 1000;
        border-left: none;
        border-right: 1px solid #E5E5E5;
    }

    .aside-top_wrapper {
        margin-bottom: 40px;

        @media (width < 768px) {
            display: flex;
            align-items: center;
            justify-content: space-between;

        }

        .wrapper-close-btn {
            display: none;

            @media (width < 768px) {
                display: block;
            }
        }
    }

    &.aside-open {
        width: 100%;

        @media (width < 768px) {
            right: 0;
        }
    }
}

.aside-top-logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.aside-nav_list {
    .list-item {
        padding: 8px 12px;
        color: #171717;
        background-color: transparent;
        transition: all .2s;
        border-radius: 8px;

        &:hover {
            color: #8A1739;
            background-color: #F9EBEF;
        }

        &:not(:last-child) {
            margin-bottom: 8px;
        }
    }

    .list-item_link {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

.aside-note {
    padding: 12px 16px;
    border-radius: 10px;
    border: 0.5px solid #F5A623;
    background: #FCF5E9;

    p:first-child {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #171717;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    p:last-child {
        color: #525252;
        font-size: 12px;
        font-weight: 400;
    }
}

.aside-app-by {
    margin-top: 20px;

    p {
        color: #737373;
        font-size: 14px;
        font-weight: 600;
    }

    .aside-top-logo {
        margin-bottom: 0;
        margin-top: 8px;
    }
}

/* Share Dialog Styles */
.share-dialog {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 520px;
    width: 90%;
    border-radius: 16px;

    &::backdrop {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
    }

    @media (width < 768px) {
        max-width: 100%;
        width: 100%;
        margin: 0;
        bottom: 0;
        top: auto;
        border-radius: 24px 24px 0 0;
    }

    .share-dialog_wrapper {
        background: white;
        padding: 32px 20px;
        border-radius: 16px;
        position: relative;

        @media (width < 768px) {
            border-radius: 24px 24px 0 0;
        }
    }

    .share-dialog_close {
        margin-right: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
    }

    .share-dialog_title {
        color: #171717;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 36px;
        margin-top: 16px;
    }

    .share-dialog_options {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;

        @media (width < 768px) {
            gap: 16px;
        }
    }

    .share-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        background: transparent;
        transition: transform 0.2s;

        &:hover {
            transform: translateY(-4px);
        }

        @media (width < 768px) {
            gap: 8px;
        }

        .share-option_icon {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 11px;
            border-radius: 50%;
            background: #E5E5E5;
        }

        &:last-child {
            .share-option_icon {
                background-color: #F9EBEF;
            }
        }
    }


    .share-option_label {
        color: #171717;
        font-size: 14px;
        font-weight: 500;
        text-align: center;

        @media (width < 768px) {
            font-size: 13px;
        }
    }
}

/* main cards container css starts here */
main.main {
    height: 100dvh;
    width: 100%;
    position: relative;

    .bg-calligraphy {
        position: absolute;
        top: 50%;
        z-index: -1;

        &.right {
            right: 0;
        }

        &.left {
            left: 0;
        }
    }
}

.container {
    max-width: 648px;
    /* height: calc(100dvh - 72px); */
    margin: 0 auto;
    position: relative;
    box-shadow: 0 120px 200px 20px rgba(2, 3, 3, 0.10);
}

.cards-wrapper {
    max-width: 648px;
    height: calc(100dvh - 72px);
    margin: 0 auto;
    /* z-index: -1; */
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */

    &::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    @media (width < 768px) {
        height: calc(100dvh - 56px);
    }
}

.cards-wrapper_card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    max-width: 648px;
    height: calc(100dvh - 56px);
    overflow-y: auto;
    margin: 0 auto;
    padding: 32px 40px;
    background: #FFF;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
        display: none;
    }

    @media (width < 768px) {
        padding: 20px 20px 24px;
    }

    .card-title {
        color: #8A1739;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .card-desc {
        color: #262626;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .card-answer {
        margin-bottom: 20px;
        position: relative;
        padding: 16px;
        border-radius: 12px;
        background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 0.10) 100%);

        &::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 12px;
            padding: 1px;
            background: linear-gradient(to bottom, rgb(138 23 58 / 36%) 0%, #F5E8EC 100%);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

        .card-answer_head {
            color: #8A1739;
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .card-answer_content {
            color: #404040;
            font-size: 18px;
            font-weight: 400;
        }

        .card-answer_content * {
            font-size: 18px;
            line-height: 28px;
            font-weight: 400;
            font-family: 'Cairo';
        }
    }

    .card-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;

        .card-actions_btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;

            &.liked svg path {
                fill: #8A1739;
                stroke: #8A1739;
            }

            &.saved svg path {
                fill: #1551A5;
                stroke: #1551A5;
            }
        }
    }
}

.cards-wrapper_controls {
    position: absolute;
    left: -80px;
    bottom: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    @media (width < 768px) {
        display: none;
    }

    .controls_btn {
        background-color: #fff;
        padding: 12px;
        border-radius: 50%;
        border: 1px solid #E5E5E5;
        aspect-ratio: 1/1;
        transition: all .2s;

        &:hover {
            border-color: #8A1739;
        }
    }
}

.loader-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex-shrink: 0;

    .loader {
        width: 48px;
        height: 48px;
        border: 4px solid #F9EBEF;
        border-top-color: #8A1739;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* search pgae starts here */
.container.search-page {
    max-width: 648px;
    height: calc(100dvh - 72px);
    margin: 0 auto;
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */

    &::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    @media (width < 768px) {
        height: calc(100dvh - 56px);
    }
}

.results-found {
    margin-top: 24px;
    color: #737373;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 16px;

    @media (width < 768px) {
        padding-inline: 20px;
    }
}

.search-cards-wrapper_card {
    background-color: #fff;
    padding: 20px;
    border-bottom: 8px solid #E5E5E5;

    .card-title {
        color: #8A1739;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .card-desc {
        color: #262626;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .card-answer {
        margin-bottom: 12px;
        color: #404040;
        font-size: 14px;
        font-weight: 400;
        padding: 16px;
        border-radius: 10px;
        border: 0.5px solid #E5E5E5;
        background: #FAFAFA;

        .card-answer_content {

            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
        }
    }

    .card-view-more {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        color: #8A1739;
        font-size: 14px;
        font-weight: 600;
    }
}

/* Search Details Overlay Styles */
.search-details-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    padding-top: 80px;

    &.active {
        display: block;
    }

    .details-modal {
        position: relative;
        width: 100%;
        height: calc(100vh - 100px);
        background: white;
        border-radius: 24px 24px 0 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;

        @media (width < 768px) {
            height: calc(100vh - 50px);
        }

        .details-overlay_close {
            position: absolute;
            top: 16px;
            left: 16px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            cursor: pointer;
            z-index: 10;
            background-color: #fff;

            @media (width < 768px) {
                width: 36px;
                height: 36px;
            }
        }

        .details-overlay_wrapper {
            flex: 1;
            overflow-y: auto;
            scroll-snap-type: y mandatory;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;

            &::-webkit-scrollbar {
                display: none;
            }
        }

        .details-card {
            min-height: 100%;
            display: flex;
            flex-direction: column;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            padding: 60px 20px 24px;

            @media (width >=768px) {
                padding: 80px 40px 40px;
            }

            .details-card_inner {
                max-width: 648px;
                margin: 0 auto;
                width: 100%;
                flex: 1;
                display: flex;
                flex-direction: column;
            }

            &>.details-card_inner>div:first-child {
                flex: 1;
                margin-bottom: 20px;
            }

            .card-title {
                color: #8A1739;
                font-size: 20px;
                font-weight: 700;
                margin-bottom: 12px;

                @media (width < 768px) {
                    font-size: 18px;
                }
            }

            .card-desc {
                color: #262626;
                font-size: 18px;
                font-weight: 600;
                margin-bottom: 20px;

                @media (width < 768px) {
                    font-size: 16px;
                }
            }

            .card-answer {
                background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 0.10) 100%);
                border-radius: 12px;
                padding: 20px;
                position: relative;
                margin-bottom: 20px;

                &::before {
                    content: '';
                    position: absolute;
                    inset: 0;
                    border-radius: 12px;
                    padding: 1px;
                    background: linear-gradient(to bottom, rgb(138 23 58 / 36%) 0%, #F5E8EC 100%);
                    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
                    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
                    -webkit-mask-composite: xor;
                    mask-composite: exclude;
                    pointer-events: none;
                }

                .card-answer_head {
                    color: #8A1739;
                    font-size: 18px;
                    font-weight: 700;
                    margin-bottom: 8px;

                    @media (width < 768px) {
                        font-size: 16px;
                    }
                }

                .card-answer_content {
                    color: #404040;
                    font-size: 16px;
                    font-weight: 400;

                    @media (width < 768px) {
                        font-size: 14px;
                    }
                }
            }

            .card-actions {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 24px;
                padding: 16px 0;

                .card-actions_btn {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    gap: 4px;
                    color: #737373;
                    font-size: 14px;
                    font-weight: 400;
                    cursor: pointer;
                    transition: color 0.2s;

                    &:hover {
                        color: #8A1739;

                        svg path {
                            stroke: #8A1739;
                        }
                    }

                    @media (width < 768px) {
                        font-size: 12px;
                    }
                }
            }
        }
    }
}

/* Privacy Policy Page Styles */
.container.privacy-page {
    background-color: #fff;
    padding: 20px;
    height: calc(100dvh - 72px);

    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */

    &::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    @media (width < 768px) {
        height: calc(100dvh - 56px);
    }
}

.policy-header {
    margin-bottom: 32px;
    text-align: right;

    .policy-title {
        color: #8A1739;
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 8px;

        @media (width < 768px) {
            font-size: 20px;
        }
    }

    .policy-date {
        color: #737373;
        font-size: 14px;
        font-weight: 400;
    }
}

.policy-content {
    .policy-intro {
        color: #262626;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.8;
        margin-bottom: 32px;
        text-align: right;
    }

    .policy-section {
        margin-bottom: 32px;

        .section-title {
            color: #262626;
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 16px;
            text-align: right;

            @media (width < 768px) {
                font-size: 16px;
            }
        }

        .section-list {
            list-style: none;
            padding: 0;
            margin: 0;

            li {
                color: #404040;
                font-size: 16px;
                font-weight: 400;
                line-height: 1.8;
                margin-bottom: 12px;
                padding-right: 24px;
                position: relative;
                text-align: right;

                &::before {
                    content: "•";
                    position: absolute;
                    right: 8px;
                    color: #8A1739;
                    font-weight: 700;
                }

                @media (width < 768px) {
                    font-size: 14px;
                }
            }
        }

        .section-text {
            color: #404040;
            font-size: 16px;
            font-weight: 400;
            line-height: 1.8;
            text-align: right;

            @media (width < 768px) {
                font-size: 14px;
            }
        }
    }
}

/* saved css starts here */
.saved-wrapper {
    background-color: #fff;
    padding: 20px;
    height: calc(100dvh - 72px);

    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */

    &::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    @media (width < 768px) {
        height: calc(100dvh - 56px);
        padding: 20px 0;
    }
}

.saved-wrapper_title {
    color: #8A1739;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    gap: 12px;

    @media (width < 768px) {
        padding-inline: 20px;
    }
}

.saved-wrapper_cards {
    .saved-card {
        padding: 20px;
        border: 1px solid #E5E5E5;
        border-radius: 10px;

        &:not(:last-child) {
            margin-bottom: 20px;
        }

        @media (width < 768px) {
            border: unset;
            border-radius: unset;
            border-bottom: 8px solid #F5F5F5;

            &:not(:last-child) {
                margin-bottom: 0;
            }
        }
    }

    .saved-card_title {
        color: #0A0A0A;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .saved-card_desc {
        color: #404040;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .saved-card_card-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .card-actions {
            display: flex;
            align-items: center;
            gap: 12px;

            .card-actions_btn {
                padding: 6px 8px;
                border-radius: 8px;
                background-color: #F5F5F5;

                &:nth-child(2) {
                    background-color: #EAF1FB;
                }

                &.liked {
                    background-color: #F9EBEF;

                    svg {
                        fill: #8A1739;
                    }

                    svg path {
                        stroke: #8A1739;
                    }
                }
            }
        }

        .card-actions_view-more {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #8A1739;
            font-size: 14px;
            font-weight: 500;
        }
    }
}

.saved-detail-wrapper {
    padding: 32px 40px;
    background-color: #fff;
    height: calc(100dvh - 72px);
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */

    &::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    @media (width < 768px) {
        height: calc(100dvh - 56px);
    }

    .saved-wrapper_title {
        @media (width < 768px) {
            padding-inline: 0;
        }
    }

    .cards-wrapper_card {
        padding: 0;
        height: 92%;
        overflow: unset;
        scroll-snap-align: unset;
        scroll-snap-stop: unset;
    }
}

.saved-wrapper_empty {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    .empty-save {
        background-color: #F5F5F5;
        border-radius: 50%;
        padding: 18px;
    }

    .empty-title {
        color: #0A0A0A;
        font-weight: 700;
    }

    .empty-desc {
        color: #262626;
        font-size: 14px;
        font-weight: 400;
    }

    .empty-browse {
        border-radius: 8px;
        background-color: #8A1739;
        padding: 10px 16px;
        color: #fff;
        font-weight: 600;
    }
}