.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hide the drawer initially */
    width: min(90vw, 393px);
    height: 100%;
    background-color: var(--white);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    padding-bottom: 8px;

    .close-btn {
        position: absolute;
        top: 0;
        right: 0;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }
}

.drawer.open {
    right: 0;
}

@media screen and (max-width: 768px) {
    .drawer {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 0;
        /* Initially closed */
        transition: height 0.3s ease-in-out;
        border-radius: 10px 10px 0 0;
        /* Rounded top corners */

        .close-btn {
            top: unset;
            position: fixed;
            padding-right: 9px;
        }
    }

    .drawer.open {
        height: calc(100vh - 160px);
        -ms-overflow-style: none;
        scrollbar-width: none;
        overflow: hidden;
        overflow-y: scroll;
    }

    .accordion {
        padding-top: 50px;
    }

    .sticky {
        position: fixed;
    }

    .header-size-container .close-btn {
        margin-top: -9px;
    }

    .drawer .d-flex.sticky {
        border-radius: 10px 10px 0 0;
    }

    #wishlist-form {
        display: none;
    }

    .additional-info .actions.wishlist-forms {
        display: none;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    z-index: 999;
    /* Should be less than the drawer's z-index */
}

.overlay.visible {
    visibility: visible;
    opacity: 1;
}

.accordion-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: unset;
    background: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
    padding: 10px;
    transition: none;
    height: 60px;

    .title {
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: 18.85px !important;
        letter-spacing: 0.04em !important;
        text-align: left;
        color: var(--black);
        text-transform: uppercase;
    }

    &::after {
        display: none !important;
    }

    &:focus {
        outline: none;
    }
}

.accordion-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-body {
    padding: 10px;
    padding-left: 20px;

    p {
        font-size: 13px;
        font-weight: 400;
        line-height: 18.85px;
        letter-spacing: 0.02em;
        text-align: left;
        color: var(--black);
    }

    th,
    td {
        font-size: 12px;
        font-weight: 400;
        line-height: 17.4px;
        letter-spacing: 0.03em;
        text-align: left;
        color: var(--black);
    }

    th {
        width: 40%;
    }
}

.accordion-button:focus {
    outline: none;
}

.accordion-button:hover {
    background: none !important;
}

.accordion-collapse {
    display: none;
}

.accordion-collapse.show {
    display: block;
}

.accordion {
    &.row-3 {
        .collapse {
            &.show {
                .accordion-body {
                    min-height: 70vh;
                }
            }
        }
    }

    &.row-5 {
        .collapse {
            &.show {
                .accordion-body {
                    min-height: 35vh;
                }
            }
        }
    }
}

.delivery-information {
    padding: 0px 8px;

    h6 {
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0.04em;
        text-align: left;
        color: var(--black);
    }

    small {
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0.01em;
        text-align: left;
        color: var(--black);
    }

    span {
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0.03em;
        text-align: right;
        color: var(--black);
    }

    .delivery-info-box {
        border: 0.5px solid #08080826;
        padding: 10px 15px 10px 15px;
    }
}

/* size */
#sizeDrawer {
    width: min(90vw, 393px) !important;

    .size-guide-container {
        display: none;
    }

    &.size-guide-drawer {
        width: auto !important;
        overflow-y: auto;
        overflow-x: auto;

        .size-guide-container {
            display: block;
            width: max-content;
            padding-left: 20px;
            padding-right: 20px;
        }

        .size-guide-button-container {
            span {
                display: flex;
                align-items: center;

                .minus-icon {
                    opacity: 1 !important;
                    display: block !important;
                }

                .plus-icon {
                    opacity: 0 !important;
                }
            }
        }

        @media (min-width: 1025px) {
            .box-size {
                display: flex;
                flex-direction: row;
                justify-content: end;
            }
        }

        @media (max-width: 1024px) {
            .box-size {
                display: flex;
                flex-direction: row;
            }

            .type-size {
                flex-direction: row;
            }
        }

        @media (min-width: 768px) {

            .size-guide-drawer {
                width: fit-content !important;
            }
        }

        @media (max-width: 768px) {
            .box-size {
                display: flex;
                flex-direction: column;
            }

            .size-guide-container {
                width: 100%;
            }

            .type-size {
                flex-direction: row-reverse;
            }

            .size-guide-drawer {
                width: 100% !important;
            }

            .header-size-container {
                position: fixed;
                width: 100%;
                background-color: white;
                border-radius: 10px 10px 0 0;
            }

            .accordion {
                margin-top: unset;
            }


        }

        @media (max-width: 425px) {
            .box-size {
                display: flex;
                flex-direction: column;
            }

            .size-guide-container {
                width: 100%;
            }
        }
    }

    #table-inches {
        display: none;
    }

    .container-table .table th,
    .container-table .table td {
        padding: 12px;
        border: 1px solid #08080826;
    }

    .container-table .table th {
        background-color: #f4f4f4;
    }

    .container-table .table td {
        vertical-align: middle;
    }

    .content-box .table th,
    .content-box .table td {
        padding: 12px;
        border: 0;
    }

    .row-hover:hover {
        background-color: #fafafa;
        border: 2px solid #5a5555;
    }

    .size-chart {
        width: 100%;
        overflow-x: auto;
        overflow: hidden;
        padding-top: 20px;
    }

    .title {
        font-size: 13px;
        font-weight: 600;
        line-height: 18.85px;
        letter-spacing: 0.03em;
        text-align: left;
        color: var(--black);
        padding: 0px 8px;
        text-transform: uppercase;
    }

    .text {
        font-size: 12px;
        font-weight: 400;
    }

    .sub-title {
        font-size: 13px;
        font-weight: 400;
        line-height: 18.85px;
        letter-spacing: 0.03em;
        text-align: left;
        color: var(--black);
        text-transform: uppercase;
        padding: 0px 8px;
        padding-top: 15px;
        padding-bottom: 30px;
    }

    .size-selection-container {
        margin-top: 34px;
        padding: 0px 8px;

        .select-box {
            border: 0.5px solid var(--grey03);
            width: 88px;
            min-width: 88px;
            height: 88px;
            cursor: pointer;
            position: relative;

            .bell-icon {
                position: absolute;
                right: 4px;
                bottom: 4px;
            }

            span {
                position: absolute;
                top: 10px;
                left: 10px;
                font-size: 13px;
                font-weight: 600;
                line-height: 18.85px;
                letter-spacing: 0.03em;
                text-align: left;
                color: var(--black);
            }

            &.strike {
                &::before {
                    content: "";
                    position: absolute;
                    width: 0;
                    border-right: 0.5px solid #08080826;
                    height: 120px;
                    right: 0px;
                    transform: rotate(45deg);
                    transform-origin: top left;
                }
            }

            &.active {
                border: 0.5px solid var(--black);
            }
        }
    }

    .size-guide-button-container {
        padding: 0px 8px;

        span {
            text-transform: uppercase;
            font-size: 13px;
            font-weight: 400;
            line-height: 18.85px;
            cursor: pointer;
            letter-spacing: 0.04em;
            text-align: left;
            color: var(--black);

            .plus-icon,
            .minus-icon {
                margin: 0px !important;
                padding: px !important;
            }

            .minus-icon {
                opacity: 0 !important;
            }

            .plus-icon {
                opacity: 1 !important;
            }
        }
    }

    .size-information-container {
        margin-top: 24px;
        padding-top: 8px;
        border-top: 0.5px solid #08080826;

        h5 {
            padding: 0px 8px;
            font-size: 13px;
            font-weight: 400;
            line-height: 18.85px;
            letter-spacing: 0.04em;
            text-align: left;
            color: var(--black);
        }

        ul {
            padding: 0px 8px;
            margin-top: 12px;

            li {
                font-size: 13px;
                font-weight: 400;
                line-height: 18.85px;
                letter-spacing: 0.02em;
                text-align: left;
                color: var(--black);
            }
        }
    }

    .type-size {
        display: flex;
        justify-content: space-between;
    }

    .list-type {
        display: flex;
        gap: 10px;
    }

    .type-size .list-type span {
        cursor: pointer;
        position: relative;
        font-size: 13px;
        font-weight: 400;
        line-height: 18.85px;
        letter-spacing: 0.02em;
        text-align: left;
        color: #757575;
    }

    .type-size .list-type span.selected::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 2px;
        background-color: #000;
    }

    .type-size .list-type span.selected {
        color: #000000;
    }

    .accordion {
        border: 0;
        border-radius: 0;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .accordion-item {
        border-top: 1px solid #ccc;
        border-bottom: 0;
        border-left: 0;
        border-right: 0;
    }

    .accordion-header {
        padding-top: 15px;
        padding-bottom: 15px;
        font-size: 12px;
        text-transform: uppercase;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        pointer-events: none;
    }

    .accordion-content {
        display: none;
    }

    .accordion-content.active {
        display: block;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .accordion-header .icon {
        width: 10px;
        height: 10px;
        display: none;
        position: relative;
    }

    .accordion-header .icon::before,
    .accordion-header .icon::after {
        content: "";
        position: absolute;
        background-color: #000;
    }

    .accordion-header .icon::before {
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        transform: translateY(-50%);
    }

    .accordion-header .icon::after {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
        transform: translateX(-50%);
    }

    .accordion-header .icon.minus::after {
        display: none;
    }
}

#sizeDrawerStyleWith {
    width: min(90vw, 393px) !important;

    .size-guide-container {
        display: none;
    }

    &.size-guide-drawer {
        width: auto !important;
        overflow-y: auto;
        overflow-x: auto;

        .size-guide-container {
            display: block;
            width: max-content;
            padding-left: 20px;
            padding-right: 20px;
            height: 100%;
            overflow-y: auto;
            scrollbar-width: none;
        }

        .size-guide-button-container {
            span {
                .minus-icon {
                    opacity: 1 !important;
                    display: block !important;
                }

                .plus-icon {
                    display: none;
                }
            }
        }

        @media (min-width: 1025px) {
            .box-size {
                display: flex;
                flex-direction: row;
                justify-content: end;
            }
        }

        @media (max-width: 1024px) {
            .box-size {
                display: flex;
                flex-direction: row;
            }

            .type-size {
                flex-direction: row;
            }
        }

        @media (min-width: 768px) {

            .size-guide-drawer {
                width: fit-content !important;
            }
        }

        @media (max-width: 768px) {
            .box-size {
                display: flex;
                flex-direction: column;
            }

            .size-guide-container {
                width: 100%;
            }

            .type-size {
                flex-direction: row-reverse;
            }

            .size-guide-drawer {
                width: 100% !important;
            }

            .header-size-container {
                position: fixed;
                width: 100%;
                background-color: white;
            }

            .accordion {
                margin-top: unset;
            }
        }

        @media (max-width: 425px) {
            .box-size {
                display: flex;
                flex-direction: column;
            }

            .size-guide-container {
                width: 100%;
            }
        }
    }

    #table-inches {
        display: none;
    }

    .container-table .table th,
    .container-table .table td {
        padding: 12px;
        border: 1px solid #08080826;
    }

    .container-table .table th {
        background-color: #f4f4f4;
    }

    .container-table .table td {
        vertical-align: middle;
    }

    .content-box .table th,
    .content-box .table td {
        padding: 12px;
        border: 0;
    }

    .row-hover:hover {
        background-color: #fafafa;
        border: 2px solid #5a5555;
    }

    .size-chart {
        width: 100%;
        overflow-x: auto;
        overflow: hidden;
        padding-top: 20px;
    }

    .text {
        font-size: 12px;
        font-weight: 400;
    }

    .sub-title {
        font-size: 13px;
        font-weight: 400;
        line-height: 18.85px;
        letter-spacing: 0.03em;
        text-align: left;
        color: var(--black);
        text-transform: uppercase;
        padding: 0px 8px;
        padding-top: 15px;
        padding-bottom: 30px;
    }

    .size-selection-container {
        .select-box {
            border: 0.5px solid var(--grey03);
            width: 88px;
            min-width: 88px;
            height: 88px;
            cursor: pointer;
            position: relative;

            .bell-icon {
                position: absolute;
                right: 4px;
                bottom: 4px;
            }

            span {
                position: absolute;
                top: 10px;
                left: 10px;
                font-size: 13px;
                font-weight: 600;
                line-height: 18.85px;
                letter-spacing: 0.03em;
                text-align: left;
                color: var(--black);
            }

            &.strike {
                &::before {
                    content: "";
                    position: absolute;
                    width: 0;
                    border-right: 0.5px solid #08080826;
                    height: 120px;
                    right: 0px;
                    transform: rotate(45deg);
                    transform-origin: top left;
                }
            }

            &.active {
                border: 0.5px solid var(--black);
            }
        }
    }

    .size-information-container {
        margin-top: 24px;
        padding-top: 8px;
        border-top: 0.5px solid #08080826;

        h5 {
            padding: 0px 8px;
            font-size: 13px;
            font-weight: 400;
            line-height: 18.85px;
            letter-spacing: 0.04em;
            text-align: left;
            color: var(--black);
        }

        ul {
            padding: 0px 8px;
            margin-top: 12px;

            li {
                font-size: 13px;
                font-weight: 400;
                line-height: 18.85px;
                letter-spacing: 0.02em;
                text-align: left;
                color: var(--black);
            }
        }
    }

    .type-size {
        display: flex;
        justify-content: space-between;
    }

    .list-type {
        display: flex;
        gap: 10px;
    }

    .type-size .list-type span {
        cursor: pointer;
        position: relative;
        font-size: 13px;
        font-weight: 400;
        line-height: 18.85px;
        letter-spacing: 0.02em;
        text-align: left;
        color: #757575;
    }

    .type-size .list-type span.selected::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 2px;
        background-color: #000;
    }

    .type-size .list-type span.selected {
        color: #000000;
    }

    .accordion {
        border: 0;
        border-radius: 0;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .accordion-item {
        border-top: 1px solid #ccc;
        border-bottom: 0;
        border-left: 0;
        border-right: 0;
    }

    .accordion-header {
        padding-top: 15px;
        padding-bottom: 15px;
        font-size: 12px;
        text-transform: uppercase;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        pointer-events: none;
    }

    .accordion-content {
        display: none;
    }

    .accordion-content.active {
        display: block;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .accordion-header .icon {
        width: 10px;
        height: 10px;
        display: none;
        position: relative;
    }

    .accordion-header .icon::before,
    .accordion-header .icon::after {
        content: "";
        position: absolute;
        background-color: #000;
    }

    .accordion-header .icon::before {
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        transform: translateY(-50%);
    }

    .accordion-header .icon::after {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
        transform: translateX(-50%);
    }

    .accordion-header .icon.minus::after {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    #sizeDrawer {
        width: 100% !important;
    }

    #sizeFitDetail {
        width: 100% !important;
    }

    #sizeDrawerStyleWith {
        width: 100% !important;

        .size-chart-container {
            width: 100% !important;
        }
    }

    .hidden-mobile {
        display: none !important;
    }
}

#sizeFitDetail {
    width: 50%;

    .size-guide-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    #table-inches {
        display: none;
    }

    .container-table .table th,
    .container-table .table td {
        padding: 12px;
        border: 1px solid #08080826;
    }

    .container-table .table th {
        background-color: #f4f4f4;
    }

    .container-table .table td {
        vertical-align: middle;
    }

    .content-box .table th,
    .content-box .table td {
        padding: 12px;
        border: 0;
    }

    .row-hover:hover {
        background-color: #fafafa;
        border: 2px solid #5a5555;
    }

    .size-chart {
        width: 100%;
        overflow-x: auto;
        overflow: hidden;
        padding-top: 20px;
    }

    .title {
        font-size: 13px;
        font-weight: 600;
        line-height: 18.85px;
        letter-spacing: 0.03em;
        text-align: left;
        color: var(--black);
        padding: 0px 8px;
        text-transform: uppercase;
    }

    .text {
        font-size: 12px;
        font-weight: 400;
    }

    .sub-title {
        font-size: 13px;
        font-weight: 400;
        line-height: 18.85px;
        letter-spacing: 0.03em;
        text-align: left;
        color: var(--black);
        text-transform: uppercase;
        padding: 0px 8px;
        padding-top: 15px;
        padding-bottom: 30px;
    }

    .size-selection-container {
        margin-top: 34px;
        padding: 0px 8px;

        .select-box {
            border: 0.5px solid var(--grey03);
            width: 88px;
            min-width: 88px;
            height: 88px;
            cursor: pointer;
            position: relative;

            .bell-icon {
                position: absolute;
                right: 4px;
                bottom: 4px;
            }

            span {
                position: absolute;
                top: 10px;
                left: 10px;
                font-size: 13px;
                font-weight: 600;
                line-height: 18.85px;
                letter-spacing: 0.03em;
                text-align: left;
                color: var(--black);
            }

            &.strike {
                &::before {
                    content: "";
                    position: absolute;
                    width: 0;
                    border-right: 0.5px solid #08080826;
                    height: 120px;
                    right: 0px;
                    transform: rotate(45deg);
                    transform-origin: top left;
                }
            }

            &.active {
                border: 0.5px solid var(--black);
            }
        }
    }

    .size-guide-button-container {
        padding: 0px 8px;

        span {
            text-transform: uppercase;
            font-size: 13px;
            font-weight: 400;
            line-height: 18.85px;
            cursor: pointer;
            letter-spacing: 0.04em;
            text-align: left;
            color: var(--black);

            .plus-icon,
            .minus-icon {
                margin: 0px !important;
                padding: px !important;
            }

            .minus-icon {
                opacity: 0 !important;
            }

            .plus-icon {
                opacity: 1 !important;
            }
        }
    }

    .size-information-container {
        margin-top: 24px;
        padding-top: 8px;
        border-top: 0.5px solid #08080826;

        h5 {
            padding: 0px 8px;
            font-size: 13px;
            font-weight: 400;
            line-height: 18.85px;
            letter-spacing: 0.04em;
            text-align: left;
            color: var(--black);
        }

        ul {
            padding: 0px 8px;
            margin-top: 12px;

            li {
                font-size: 13px;
                font-weight: 400;
                line-height: 18.85px;
                letter-spacing: 0.02em;
                text-align: left;
                color: var(--black);
            }
        }
    }

    .type-size {
        display: flex;
        justify-content: space-between;
    }

    .list-type {
        display: flex;
        gap: 10px;
    }

    .type-size .list-type span {
        cursor: pointer;
        position: relative;
        font-size: 13px;
        font-weight: 400;
        line-height: 18.85px;
        letter-spacing: 0.02em;
        text-align: left;
        color: #757575;
    }

    .type-size .list-type span.selected::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 2px;
        background-color: #000;
    }

    .type-size .list-type span.selected {
        color: #000000;
    }

    .accordion {
        border: 0;
        border-radius: 0;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .accordion-item {
        border-top: 1px solid #ccc;
        border-bottom: 0;
        border-left: 0;
        border-right: 0;
    }

    .accordion-header {
        padding-top: 15px;
        padding-bottom: 15px;
        font-size: 12px;
        text-transform: uppercase;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        pointer-events: none;
    }

    .accordion-content {
        display: none;
    }

    .accordion-content.active {
        display: block;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .accordion-header .icon {
        width: 10px;
        height: 10px;
        display: none;
        position: relative;
    }

    .accordion-header .icon::before,
    .accordion-header .icon::after {
        content: "";
        position: absolute;
        background-color: #000;
    }

    .accordion-header .icon::before {
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        transform: translateY(-50%);
    }

    .accordion-header .icon::after {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
        transform: translateX(-50%);
    }

    .accordion-header .icon.minus::after {
        display: none;
    }
}

/* size */

/* detail */

#detailDrawer,
#deliveryDetail {
    .title {
        font-size: 13px;
        font-weight: 600;
        line-height: 18.85px;
        letter-spacing: 0.03em;
        text-align: left;
        color: var(--black);
        padding: 0px 10px;
    }

    .shipping-info {
        padding: 0px 8px;

        .title {
            margin-left: 0px !important;
            padding: 0px !important;
            font-size: 13px;
            font-weight: 400;
            line-height: 18.85px;
            letter-spacing: 0.02em;
            text-align: left;
            color: var(--black);
        }

        .input-button-container {
            padding: 20px 0px;
        }
    }
}

#cartSuccessDrawer {
    .title {
        font-size: 13px;
        font-weight: 600;
        line-height: 18.85px;
        letter-spacing: 0.03em;
        text-align: left;
        color: var(--black);
        padding: 0px 10px;
    }

    .free-shipping-container {
        padding: 0px 14px;
        margin-top: 34px;

        span {
            font-size: 12px;
            font-weight: 400;
            line-height: 17.4px;
            letter-spacing: 0.01em;
            text-align: left;
            color: var(--black);
        }

        .progress,
        .progress-stacked {
            background-color: var(--white);
            border-radius: none !important;
            border: 0.5px solid var(--black);
        }

        .progress-bar {
            background-color: var(--black);
            border: 0.5px solid var(--black);
            border-radius: none !important;
        }
    }

    .card {
        padding: 0px;
        margin: 0px;
        border-radius: none !important;
        border-width: 0.5px, 0px, 0.5px, 0px;
        border-style: solid;
        border-color: var(--grey03);
        margin: 20px 0px !important;

        span {
            font-size: 13px !important;
            font-weight: 400 !important;
            line-height: 18.85px !important;
            text-align: left !important;
        }

        .title {
            text-transform: uppercase !important;
        }
    }

    .btn-success-container {
        margin-top: 35px;
        padding: 0px 14px;
        padding-bottom: 25vh;
        border-bottom: 0.5px solid var(--grey03);
    }

    .style-with-container {
        padding: 0px 14px;

        .img-container {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;

            img {
                margin: 0px !important;
                margin-right: 0px !important;
                object-fit: cover;
            }
        }
    }
}

.size-chart-container {
    width: 100% !important;
}