.flex-grow-2 {
    -ms-flex-positive: 2 !important;
    flex-grow: 2 !important;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

.gap-40 {
    gap: 40px;
}

.header-hp-1 .header-left {
    display: flex;
    display: -webkit-flex;
}

.header-hp-1 .menu-desktop-inner .main-menu .menu-item {
    padding: 23px 0 20px 0;
}

.header-hp-1 .menu-desktop-inner .main-menu .menu-item>a {
    padding: 0 16px;
}

.header-hp-1 .menu-desktop-inner .logo {
    padding: 21px 30px 20px;
}

.header-hp-1 .menu-desktop {
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    -o-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    -ms-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
}

.room-section.section-box {
    padding: 0;
}

.room-section .room-set .widget+.widget {
    margin-top: 30px;
}

.room-section .room-set-right .widget+.widget {
    margin-top: 10px;
}

.widget-title {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Room Shape & Kitchen Space */
.room-section input[type='radio'],
.room-section input[type='checkbox'] {
    clip: rect(0 0 0 0);
    border: 0;
    bottom: 0;
    height: 1px;
    left: 0;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.room-shape ul {
    display: flex;
    flex-wrap: nowrap;
}

.room-shape .radio-picture,
.kitchen-space .kitchen-space-item {
    max-width: 99px;
    flex: 12.5% 0 0;
    position: relative;
    border: px solid #ddd;
    padding: 2px;
}

.room-shape .radio-picture.checked,
.room-shape .radio-picture:hover,
.kitchen-space .kitchen-space-item.checked,
.kitchen-space .kitchen-space-item:hover {
    border-color: rgba(0, 102, 153, 0.3);
}

.room-shape .radio-picture.checked:after,
.kitchen-space .kitchen-space-item.checked:after {
    pointer-events: none;
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translate(-50%, 0%);
    transition: opacity 0.3s ease-out;
    content: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M20 40C22.6264 40 25.2272 39.4827 27.6537 38.4776C30.0802 37.4725 32.285 35.9993 34.1421 34.1421C35.9993 32.285 37.4725 30.0802 38.4776 27.6537C39.4827 25.2272 40 22.6264 40 20C40 17.3736 39.4827 14.7728 38.4776 12.3463C37.4725 9.91982 35.9993 7.71504 34.1421 5.85786C32.285 4.00069 30.0802 2.5275 27.6537 1.52241C25.2272 0.517315 22.6264 -3.9137e-08 20 0C14.6957 7.90407e-08 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40ZM19.4844 28.0889L30.5956 14.7556L27.1822 11.9111L17.6267 23.3756L12.6822 18.4289L9.54 21.5711L16.2067 28.2378L17.9267 29.9578L19.4844 28.0889Z' fill='%23006699'/%3E%3C/svg%3E");
    background: #fff;
    -webkit-border-radius: 90px;
    -moz-border-radius: 90px;
    border-radius: 90px;
}

.room-shape .radio-picture:not(:last-child) {
    margin-right: 6px;
}

.room-shape [class*='radio-picture'] label,
.kitchen-space .kitchen-space-item label,
.elements .element-item label {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    display: block;
    height: 100%;
    margin: 0;
}

.elements-containers {
    display: inline-block;
}

.room-shape [class*='radio-picture'] label>svg {
    fill: #fff;
    stroke: #000;
    display: block;
    height: 100%;
    transition: fill 0.3s ease-out;
    width: 100%;
}

.room-shape [class*='radio-picture'] label:hover>svg,
.room-shape [class*='radio-picture'] label:focus>svg {
    fill: rgba(0, 102, 153, 0.3);
}

.room-shape .checked svg {
    fill: rgba(0, 102, 153, 0.3) !important;
}

.kitchen-space {
    padding-left: 24px;
    padding-right: 24px;
    max-width: 380px;
}

.kitchen-space-room-shape:not(.show) {
    display: none !important;
}

/* .kitchen-space-room-shape .owl-nav {
    margin-top: 10;
} */
/* .kitchen-space-room-shape .owl-nav [class*=owl-] {
    margin: 0;
    font-size: 20px;
    color: #999;
    outline: none;
    -moz-outline: none;
    -webkit-outline: none;
    -o-outline: none;
    -ms-outline: none;
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    -o-border-radius: 0;
    -ms-border-radius: 0;
} */
.kitchen-space-room-shape .owl-nav .owl-prev,
.kitchen-space-room-shape .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    justify-content: space-between;
    -moz-justify-content: space-between;
    -webkit-justify-content: space-between;
    -o-justify-content: space-between;
    -ms-justify-content: space-between;
}

.kitchen-space-room-shape .owl-nav .owl-prev {
    left: -20px;
}

.kitchen-space-room-shape .owl-nav .owl-next {
    right: -20px;
}

.kitchen-space-room-shape .owl-nav [class*='owl-']:hover {
    background: transparent;
    color: #333;
}

/* .canvas-container {
    aspect-ratio: 3/2;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #e6d4bc;
} */
#iframe2d {
    width: 100%;
    aspect-ratio: 3/2;
}

#container {
    border: 1px solid #e6d4bc;
    margin: 20px 0;
}

/* .grid-bordered {
    --grid-size: 40px; 
    background-image:
            linear-gradient(to right, #cecece 1px, transparent 1px),
            linear-gradient(to bottom, #cecece 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    border: 1px solid #cecece;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.price {
    border: 1px solid transparent;
    padding: 0 5px;
    background: white;
    box-shadow: 1px 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: #43a047;
    font-size: 20px;
    font-weight: 700;
    border-radius: 5px;
}

.view-style .btn-icon img {
    max-height: 48px;
}

/* Element */
.element-item {
    position: relative;
}

.element-item.checked:after {
    pointer-events: none;
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    transition: opacity 0.3s ease-out;
    content: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M20 40C22.6264 40 25.2272 39.4827 27.6537 38.4776C30.0802 37.4725 32.285 35.9993 34.1421 34.1421C35.9993 32.285 37.4725 30.0802 38.4776 27.6537C39.4827 25.2272 40 22.6264 40 20C40 17.3736 39.4827 14.7728 38.4776 12.3463C37.4725 9.91982 35.9993 7.71504 34.1421 5.85786C32.285 4.00069 30.0802 2.5275 27.6537 1.52241C25.2272 0.517315 22.6264 -3.9137e-08 20 0C14.6957 7.90407e-08 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40ZM19.4844 28.0889L30.5956 14.7556L27.1822 11.9111L17.6267 23.3756L12.6822 18.4289L9.54 21.5711L16.2067 28.2378L17.9267 29.9578L19.4844 28.0889Z' fill='%23006699'/%3E%3C/svg%3E");
    background: #fff;
    -webkit-border-radius: 90px;
    -moz-border-radius: 90px;
    border-radius: 90px;
}

.element-item.hide {
    display: none;
}

.element-item .element-name {
    /* white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65px; */
    font-size: 14px;
    line-height: 1.5;
}

.load-more-element .more-btn {
    font-size: 14px;
    color: #007bff;
}

.load-more-element .more-btn i {
    padding-left: 5px;
}

/* Popup Modal */
.modal {
    z-index: 10000;
}

#name_table {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#child-element {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
}

#child-element .element-title {
    font-size: 14px;
    line-height: 1.5;
}

#elementModal .close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #007bff;
    color: #fff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-border-radius: 90px;
    -moz-border-radius: 90px;
    border-radius: 90px;
    opacity: 1;
    font-size: 15px;
    padding: 5px;
    outline: none;
    z-index: 100001;
}

.modal-backdrop.show {
    opacity: 0.2;
    left: 0;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: transparent;
    box-shadow: 1px 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-icon:hover {
    transition: 0.1s ease-in-out;
    background-color: #d1b57c;
    color: #fff;
    box-shadow: 0 0 15px rgba(209, 181, 124, 0.8);
    border: 1px solid #d1b57c;
    transform: scale(1.03);
}

.btn-icon img {
    max-height: 24px;
    color: #fff;
}

.btn-icon:hover img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    /* Filter trên sẽ chuyển icon thành màu trắng */
}

@media screen and (max-width: 767px) {
    #room-shape {
        width: 800px;
    }

    .btn-icon .text {
        font-size: 10px;
    }

    .zoom-btn {
        width: 35px;
        height: 35px;
    }

    /* Project list table text size on mobile */
    #project-file-popup-modal th,
    #project-file-popup-modal td,
    #project-file-popup-modal h5 {
        font-size: 12px !important;
    }

    #project-file-popup-modal td {
        padding: 15px !important;
    }
}

@media screen and (min-width: 767px) {
    .modal-dialog {
        max-width: 500px;
        margin-top: 100px;
    }

    .modal-content {
        -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        border: 0 solid rgba(0, 0, 0, 0.2);
    }
}

/* Mobile responsive */
@media screen and (max-width: 1024px) {
    .room-wrap {
        flex-direction: column;
    }

    .room-wrap>* {
        -ms-flex-positive: 1 !important;
        flex-grow: 1 !important;
    }

    .room-toolbar {
        margin-top: 10px;
    }

    .btn-price {
        margin-left: 20px;
    }
}

@media screen and (max-width: 767px) {

    .flex-grow-2,
    .flex-grow-1 {
        flex-grow: 1;
        /* Cả hai div đều chiếm toàn bộ */
    }

    .room-set {
        flex-direction: column-reverse;
    }

    .room-set .btn {
        font-size: 14px;
    }

    .room-toolbar {
        -ms-flex-direction: row !important;
        flex-direction: row !important;
        align-items: flex-end;
    }

    .room-toolbar .gap-10 {
        gap: 5px;
    }

    .room-toolbar .align-items-center {
        -ms-flex-align: flex-end !important;
        align-items: flex-end !important;
    }

    .modal-dialog {
        margin-top: 98px;
    }

    .element-item {
        display: inline-block;
    }

    .element-item .element-name {
        font-size: 12px;
    }

    .room-shape .radio-picture {
        max-width: 82px;
    }

    .room-shape .radio-picture.checked:after,
    .kitchen-space .kitchen-space-item.checked:after {
        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 40 40' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M20 40C22.6264 40 25.2272 39.4827 27.6537 38.4776C30.0802 37.4725 32.285 35.9993 34.1421 34.1421C35.9993 32.285 37.4725 30.0802 38.4776 27.6537C39.4827 25.2272 40 22.6264 40 20C40 17.3736 39.4827 14.7728 38.4776 12.3463C37.4725 9.91982 35.9993 7.71504 34.1421 5.85786C32.285 4.00069 30.0802 2.5275 27.6537 1.52241C25.2272 0.517315 22.6264 -3.9137e-08 20 0C14.6957 7.90407e-08 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40ZM19.4844 28.0889L30.5956 14.7556L27.1822 11.9111L17.6267 23.3756L12.6822 18.4289L9.54 21.5711L16.2067 28.2378L17.9267 29.9578L19.4844 28.0889Z' fill='%23006699'/%3E%3C/svg%3E");
    }

    .view-style {
        gap: 10px;
    }

    .view-style .btn {
        font-size: 12px;
    }

    .view-style .btn-icon .text {
        font-size: 12px;
        line-height: 1.2;
        max-width: 70px;
        white-space: normal;
        margin-top: 5px;
    }

    .view-style .btn-icon img {
        max-height: 36px;
        margin-bottom: 0;
    }

    .gap-20 {
        gap: 10px;
    }

    .gap-10 {
        gap: 5px;
    }

    .canvas-container {
        aspect-ratio: 1 / 1;
    }

    .btn-price {
        margin-left: 10px;
    }
}

.flex-grow-1 .room-set-right {
    margin-top: 30px;
    /* display: flex; */
    flex-wrap: wrap;
    gap: 10px;
}

.element-item input[type='radio'],
.element-item input[type='checkbox'] {
    /* Visually hidden — avoid display:none (focusing via <label for> scrolls page to top) */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* Viền xanh khi được chọn */
.element-item.checked {
    box-shadow: 0px 4px 15px #e5dabc;
}

.element-item.checked img {
    border: 2px solid #4cc9fe;
}

/* Hiệu ứng hover */
.element-item label {
    cursor: pointer;
    display: block;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

/* .kitchen-space-room-shape .owl-item {
    width: 80px !important;
    margin-right: 1px !important;
} */

#menu2d_container #object_frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Menu 2D container */
#menu2d_container {
    position: absolute;
    width: 180px;
    height: 48px;
    display: none;
    background-color: white;
    z-index: 90;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    border-radius: 6%;
    border: 2px solid #d1b57c;
}

/* Nút trong menu */
#menu2d_container .menu-button {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    opacity: 1;
}

#menu2d_container .menu-button:hover {
    transform: scale(1.1);
    background-color: #d1b57c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#menu2d_container .menu-button.show {
    opacity: 1;
    transform: scale(1);
}

/* Khung bao quanh */
#menu2d_container #object_frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#menu3d_container #object_frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Menu 3D container */
#menu3d_container {
    position: absolute;
    width: 180px;
    height: 48px;
    display: none;
    background-color: white;
    z-index: 90;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    border-radius: 6%;
    border: 2px solid #d1b57c;
}

/* Nút trong menu */
#menu3d_container .menu-button {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    opacity: 1;
}

#menu3d_container .menu-button:hover {
    transform: scale(1.1);
    background-color: #d1b57c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#menu3d_container .menu-button.show {
    opacity: 1;
    transform: scale(1);
}

/* Khung bao quanh */
#menu3d_container #object_frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Styling chung cho containers */
.elements.element-containers,
.d-flex.flex-wrap.gap-10 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Tăng khoảng cách giữa Accessories và Island
.widget.element-container {
    margin-bottom: 10px; 
} */

.standard-wide .two-columns-detail img {
    width: 300px !important;
    height: 200px !important;
}

/* Kitchen Space Navigation Buttons */
.kitchen-space-room-shape {
    position: relative;
    /* Để định vị các nút điều hướng */
}

.kitchen-space-room-shape .owl-nav {
    display: block !important;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    /* Cho phép click xuyên qua vùng nav */
}

.kitchen-space-room-shape .owl-nav [class*='owl-'] {
    display: flex !important;
    position: absolute;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    background: #fff !important;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    /* Cho phép click vào nút */
}

.kitchen-space-room-shape .owl-nav .owl-prev {
    left: -20px;
}

.kitchen-space-room-shape .owl-nav .owl-next {
    right: -20px;
}

/* Hiệu ứng hover */
.kitchen-space-room-shape .owl-nav [class*='owl-']:hover {
    background: #d1b57c !important;
    color: #fff;
}

.kitchen-space {
    height: 110px;
    overflow: hidden;
    /* Ngăn nội dung "nhảy" */
    position: relative;
}

.kitchen-space-room-shape {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kitchen-space-room-shape.show {
    opacity: 1;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10001;
}

/* Bootstrap Tooltip Customization */
.tooltip {
    font-size: 14px;
    max-width: 300px;
    z-index: 99999 !important;
}

.tooltip-inner {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 4px;
    padding: 8px 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
    line-height: 1.4;
}

.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(0, 0, 0, 0.9);
}

.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: rgba(0, 0, 0, 0.9);
}

.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: rgba(0, 0, 0, 0.9);
}

.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: rgba(0, 0, 0, 0.9);
}

/* Custom Tooltip Styles */
.description-content.custom-tooltip {
    position: relative;
    cursor: help;
}

.description-content.custom-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 300px;
    z-index: 99999;
    pointer-events: none;
    margin-bottom: 5px;
}

.description-content.custom-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    margin-bottom: -5px;
    z-index: 99999;
    pointer-events: none;
}

.elements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.elements .element-item {
    width: 80px;
    flex: 0 0 auto;
}

@media (max-width: 600px) {
    .elements .element-item {
        width: 60px;
    }
}

/* keyframes xoay vòng của reload-icon*/
@keyframes spin-once {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.reload-price-btn .reload-icon {
    display: inline-block;
    transform-origin: 50% 50%;
    will-change: transform;
    animation: none;
}

.reload-price-btn:hover .reload-icon {
    animation: spin-once 0.6s linear both;
}


    #popup_appliance_detail.container_canva,
    #popup_appliance_detail.product-detail-dialog {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(1100px, calc(100vw - 48px));
        max-width: 1100px;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 18px 48px rgba(16, 32, 58, 0.24);
        max-height: min(92vh, 900px);
        display: flex;
        flex-direction: column;
        z-index: 1000003;
        color: #1e3558;
        padding: 24px 24px 16px;
        overflow: hidden;
    }

    #popup_appliance_detail .product-detail-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        border: 1px solid transparent;
        background: #e5e7eb;
        color: #8b97ab;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        z-index: 2;
        padding: 0;
    }

    #popup_appliance_detail .product-detail-close svg {
        width: 16px;
        height: 16px;
    }

    #popup_appliance_detail .product-detail-close:hover {
        background: #eef2f6;
        color: #1e3558;
    }

    #popup_appliance_detail .appliance-detail-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
        flex: 1;
        overflow-y: auto;
        padding: 0 4px 0 0;
        min-height: 0;
        margin-top: 30px;
    }

    #popup_appliance_detail .main-popup-content {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }

    #popup_appliance_detail .left-section,
    #popup_appliance_detail .right-section {
        flex: none;
        max-width: none;
        padding-left: 0;
        min-width: 0;
    }

    #popup_appliance_detail .primary-image-container {
        display: flex;
        justify-content: center;
        align-items: center;
        background: #eef2f6;
        border-radius: 10px;
        padding: 16px;
        min-height: 300px;
        overflow: hidden;
    }

    #popup_appliance_detail .primary-appliance-image {
        max-width: 100%;
        max-height: 280px;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: none;
    }

    #popup_appliance_detail .appliance-image-carousel {
        margin-top: 12px;
    }

    #popup_appliance_detail .carousel-container {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0;
        background: transparent;
        padding: 0 18px;
        border-radius: 0;
        min-height: 50px;
    }

    #popup_appliance_detail .carousel-track {
        flex: 1;
        overflow: hidden;
        border-radius: 6px;
    }

    #popup_appliance_detail .carousel-images {
        display: flex;
        gap: 10px;
        transition: transform 0.3s ease;
        padding: 4px 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #popup_appliance_detail .carousel-images::-webkit-scrollbar {
        display: none;
    }

    #popup_appliance_detail .carousel-image {
        width: 72px;
        height: 72px;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        flex-shrink: 0;
        background: #eef2f6;
    }

    #popup_appliance_detail .carousel-image:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(16, 32, 58, 0.12);
    }

    #popup_appliance_detail .carousel-image.active {
        border-color: #3b82f6;
        box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
    }

    #popup_appliance_detail .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: #ffffff;
        color: #1e3558;
        border: 1px solid #d5deea;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 22px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
        flex-shrink: 0;
        z-index: 2;
        box-shadow: none;
        padding: 0;
        line-height: 1;
    }

    #popup_appliance_detail .carousel-btn svg {
        width: 16px;
        height: 16px;
        display: block;
        pointer-events: none;
    }

    #popup_appliance_detail .carousel-btn.prev-btn {
        left: 0;
    }

    #popup_appliance_detail .carousel-btn.next-btn {
        right: 0;
    }

    #popup_appliance_detail .carousel-btn:hover {
        background: #f5f8fc;
        box-shadow: none;
    }

    #popup_appliance_detail .carousel-btn:disabled {
        background: #f3f5f8;
        color: #9aa4b5;
        cursor: not-allowed;
        transform: translateY(-50%);
    }

    #popup_appliance_detail .appliance-info {
        padding: 0 8px 0 0;
    }

    #popup_appliance_detail .appliance-name {
        font-size: 22px;
        font-weight: 700;
        color: #1e3558;
        margin: 0 28px 10px 0;
        line-height: 1.25;
    }

    #popup_appliance_detail .price-section {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
    }

    #popup_appliance_detail .current-price {
        font-size: 22px;
        font-weight: 700;
        color: #1e3558;
    }

    #popup_appliance_detail .original-price {
        font-size: 14px;
        color: #9aa4b5;
        text-decoration: line-through;
    }

    #popup_appliance_detail .product-detail-stock {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 3px 9px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 16px;
        width: fit-content;
    }

    #popup_appliance_detail .product-detail-stock.is-in {
        background: #e9f8ee;
        color: #1f8a46;
    }

    #popup_appliance_detail .product-detail-stock.is-out {
        background: #fdecec;
        color: #c24141;
    }

    #popup_appliance_detail .product-detail-stock-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
    }

    #popup_appliance_detail .color-options {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 16px;
        margin: 0 0 20px;
        align-items: flex-start;
    }

    #popup_appliance_detail .color-option-container {
        width: 72px;
        flex: 0 0 72px;
        text-align: center;
        min-width: 0;
    }

    #popup_appliance_detail .color-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        cursor: pointer;
        padding: 0;
        border-radius: 8px;
        transition: none;
        position: relative;
        min-width: 0;
        width: 56px;
        margin: 0 auto;
        background: transparent;
    }

    #popup_appliance_detail .color-option:hover,
    #popup_appliance_detail .color-option.active {
        background: transparent;
    }

    #popup_appliance_detail .color-image-container {
        width: 56px;
        height: 56px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #d5deea;
        box-shadow: none;
        background: #eef2f6;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    #popup_appliance_detail .color-option.active .color-image-container {
        border-color: #3b82f6;
    }

    #popup_appliance_detail .color-image {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
        display: block;
        transition: none;
    }

    #popup_appliance_detail .color-option:hover .color-image {
        transform: none;
    }

    #popup_appliance_detail .color-option.active .color-checkmark {
        position: absolute;
        top: -6px;
        right: -6px;
        width: 18px;
        height: 18px;
        background: #3b82f6;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        border: 2px solid white;
    }

    #popup_appliance_detail .color-checkmark::after {
        content: '\2713';
        color: white;
        font-size: 10px;
        font-weight: bold;
    }

    #popup_appliance_detail .color-option-container .color-name {
        font-size: 10px;
        line-height: 1.25;
        margin-top: 6px;
        color: #5d6b80;
        word-break: break-word;
        overflow-wrap: anywhere;
        white-space: normal;
        max-width: 72px;
        text-align: center;
    }

    #popup_appliance_detail .product-details-block {
        margin-top: 4px;
    }

    #popup_appliance_detail .product-details-kicker {
        font-size: 11px;
        letter-spacing: 0.08em;
        color: #8b97ab;
        font-weight: 700;
        margin-bottom: 8px;
    }

    #popup_appliance_detail .product-details-spec {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 12px;
        padding: 7px 0;
        border-bottom: 1px solid #eef2f6;
        font-size: 13px;
    }

    #popup_appliance_detail .product-details-spec > .product-details-spec-label {
        min-width: 70px;
    }

    #popup_appliance_detail .product-details-spec span {
        color: #7b879b;
        flex: 0 0 auto;
    }

    #popup_appliance_detail .product-details-spec strong {
        text-align: right;
        font-weight: 600;
        color: #1e3558;
        min-width: 0;
    }

    #popup_appliance_detail .detail-size-wrap {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    #popup_appliance_detail .unit-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        height: 22px;
        padding: 0 8px;
        border: 1px solid #d5deea;
        background: #ffffff;
        border-radius: 999px;
        color: #5d6b80;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
    }

    #popup_appliance_detail .unit-toggle-btn svg {
        width: 12px;
        height: 12px;
    }

    #popup_appliance_detail .unit-toggle-btn:hover {
        background: #eef2f6;
        color: #1e3558;
    }

    #popup_appliance_detail .tabs-section {
        border-top: none;
        padding-top: 8px;
        margin-top: 4px;
    }

    #popup_appliance_detail .tab-navigation {
        display: flex;
        align-items: stretch;
        gap: 4px;
        background: transparent;
        border-bottom: 1px solid #e8eef5;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #popup_appliance_detail .tab-navigation::-webkit-scrollbar {
        display: none;
    }

    #popup_appliance_detail .tab-btn {
        background: none;
        border: none;
        border-bottom: 3px solid transparent;
        padding: 10px 14px;
        margin-bottom: -1px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        color: #8b97ab;
        transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
        white-space: nowrap;
        border-radius: 8px 8px 0 0;
    }

    #popup_appliance_detail .tab-btn:hover {
        color: #1e3558;
        background: #f5f8fc;
    }

    #popup_appliance_detail .tab-btn.active {
        color: #2563eb;
        font-weight: 700;
        background: #eff6ff;
        border-bottom-color: #2563eb;
        box-shadow: none;
    }

    #popup_appliance_detail .tab-content {
        margin-top: 0;
        padding: 16px 2px 8px;
        min-height: 88px;
    }

    #popup_appliance_detail .tab-pane {
        display: none;
        color: #5d6b80;
        font-size: 13px;
        line-height: 1.55;
    }

    #popup_appliance_detail .tab-pane.active {
        display: block;
    }

    #popup_appliance_detail .tab-pane[hidden] {
        display: none !important;
    }

    #popup_appliance_detail .tab-pane a {
        color: #1f75d6;
        font-size: 14px;
        line-height: 1.4;
    }

    #popup_appliance_detail .tab-pane a i {
        color: #d93025;
        font-size: 16px;
    }

    #popup_appliance_detail .tab-pane h3 {
        font-size: 15px;
        font-weight: 600;
        color: #1e3558;
        margin-bottom: 10px;
    }

    #popup_appliance_detail .tab-pane p,
    #popup_appliance_detail .tab-pane li {
        color: #5d6b80;
        line-height: 1.55;
        margin-bottom: 8px;
    }

    #popup_appliance_detail .tab-pane ul {
        padding-left: 18px;
        margin: 0;
    }

    #popup_appliance_detail .product-detail-3d-btn {
        height: 36px;
        padding: 0 16px;
        border: 1px solid #d5deea;
        background: #ffffff;
        border-radius: 8px;
        color: #1e3558;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

    #popup_appliance_detail .product-detail-3d-btn:hover {
        background: #eef2f6;
    }

    #popup_appliance_detail .button-container {
        text-align: center;
        padding: 16px 0 4px;
        border-top: 1px solid #eef2f6;
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-shrink: 0;
    }

    #popup_appliance_detail .product-detail-footer-btn,
    #popup_appliance_detail .show-more-btn {
        background: #ffffff;
        color: #1e3558;
        border: 1px solid #1e3558;
        padding: 8px 22px;
        border-radius: 999px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        transition: background 0.2s ease, opacity 0.2s ease;
        min-width: 132px;
    }

    #popup_appliance_detail .product-detail-footer-btn:hover,
    #popup_appliance_detail .show-more-btn:hover {
        background: #eef2f6;
        opacity: 1;
    }

    #popup_appliance_detail .product-detail-footer-btn:disabled,
    #popup_appliance_detail .show-more-btn:disabled {
        background: #c5d0e0;
        border-color: #c5d0e0;
        color: #ffffff;
        cursor: not-allowed;
    }

    @media (max-width: 980px) {
        #popup_appliance_detail.container_canva,
        #popup_appliance_detail.product-detail-dialog {
            width: min(720px, calc(100vw - 24px));
            padding: 20px 16px 12px;
        }

        #popup_appliance_detail .main-popup-content {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        #popup_appliance_detail .appliance-name {
            font-size: 18px;
            margin-right: 28px;
        }

        #popup_appliance_detail .primary-appliance-image {
            max-height: 220px;
        }

        #popup_appliance_detail .carousel-image {
            width: 60px;
            height: 60px;
        }
    }

#canva-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 32, 54, 0.28);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
}

/* ===== ZOOM CONTROLS STYLES ===== */
.zoom-controls {
    position: absolute;
    height: 40px;
    top: 3px;
    right: 5px;
    display: flex;
    gap: 5px;
    z-index: 10001;
}

/* 3D: tắt quét chọn text khi kéo chuột trên nút zoom / undo / fullscreen */
#zoom-controls-3d,
#zoom-controls-3d * {
    user-select: none;
    -webkit-user-select: none;
}

/* When horizontal space is tight, JS stacks zoom below top-left, still right-aligned */
#zoom-controls-2d.is-stacked-below {
    top: var(--zoom-stacked-top, 48px);
    right: 5px;
    left: auto;
}

.zoom-btn {
    touch-action: manipulation;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgb(204, 204, 204);
    background-color: white;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.zoom-btn img {
    width: 15px;}

.zoom-btn:hover {
    background: #f5f5f5 !important;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

.zoom-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.zoom-in {
    background: #ffffff !important;
    color: #000000 !important;
}

.zoom-in:hover {
    background: #f5f5f5 !important;
}

.zoom-out {
    background: #ffffff !important;
    color: #000000 !important;
}

.zoom-out:hover {
    background: #f5f5f5 !important;
}

/* ===== QUOTATION DETAIL POPUP MODAL STYLES ===== */
/* =========================
   DESKTOP (DEFAULT)
========================= */
#quotation-detail-popup-modal table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

#quotation-detail-popup-modal th,
#quotation-detail-popup-modal td {
    /* border: 1px solid #ddd; */
    padding: 8px;
    vertical-align: top;
}

#quotation-detail-popup-modal thead th {
    background: #f0f0f0;
    font-weight: bold;
    vertical-align: middle;
    /* text-align: center; */
}

#div-scroll {
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    border: dashed 1px #ddd;
    padding: 5px;
}

.quotation-action-btn {
    cursor: context-menu;
}

/* =========================
   MOBILE → TABLE TO CARD
========================= */

@media (max-width: 991px) {
    .right-panel-toggle-btn {
        display: flex;
    }

    .popup-total-price {
        float: right;
    }

    .popup-total-price-last-td {
        background: transparent !important;
        height: 0px !important;
    }

    /* Table chiếm full modal */
    #quotation-detail-popup-modal table {
        width: 100% !important;
        table-layout: fixed;
    }

    /* tbody cũng full */
    #quotation-detail-popup-modal table tbody {
        display: block;
        width: 100%;
    }

    /* Section title hiển thị full width */
    #quotation-detail-popup-modal tr.head-title {
        display: block;
        width: 100%;
        background: #f0f0f0;
        padding: 10px 12px;
        font-weight: bold;
        border: 1px solid #ddd;
    }

    #quotation-detail-popup-modal tr.head-title td {
        display: block;
        width: 100%;
        border: none;
        text-align: center;
    }

    /* CARD (TR) FULL WIDTH */
    #quotation-detail-popup-modal table tbody tr.popup-item {
        display: block;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* TD không làm co width */
    #quotation-detail-popup-modal table tbody tr.popup-item td {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Ẩn header cột */
    #quotation-detail-popup-modal table thead tr.table-header {
        display: none;
    }

    /* Mỗi row thành 1 card */
    #quotation-detail-popup-modal table tbody tr.popup-item {
        display: block;
        margin-bottom: 2px;
        border: 1px solid #ddd;
        /* border-radius: 10px; */
        padding: 12px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        width: 100%;
    }

    /* Cell thành dòng label : value */
    #quotation-detail-popup-modal table tbody tr.popup-item td {
        display: flex;
        justify-content: start;
        align-items: flex-start;
        border: none;
        padding: 2px 0;
        text-align: right;
        font-size: 14px;
    }

    /* Label bên trái */
    #quotation-detail-popup-modal table tbody tr.popup-item td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
        text-align: left;
        padding-right: 12px;
        flex: 1;
    }

    #quotation-detail-popup-modal table tbody tr.popup-item .item-no::before {
        flex: 0 !important;
    }

    /* Value bên phải */
    #quotation-detail-popup-modal table tbody tr.popup-item td {
        flex: 2;
    }

    /* ===== TOTAL ROW – 2 COLUMNS ===== */
    #quotation-detail-popup-modal table tbody tr.total-row {
        display: block;
        width: 100% !important;
        background: transparent !important;
        border: 0px !important;
    }

    #quotation-detail-popup-modal table tbody tr.total-row td {
        display: inline-block;
        width: 50%;
        box-sizing: border-box;
        border: none;
        padding: 4px;
        font-weight: 600;
        vertical-align: middle;
        height: 51px;
    }

    /* Cột trái – label */
    #quotation-detail-popup-modal table tbody tr.total-row td:first-child {
        text-align: left !important;
    }

    /* Cột phải – value */
    #quotation-detail-popup-modal table tbody tr.total-row td:last-child {
        text-align: right !important;
        float: right !important;
    }

    /* Không dùng label pseudo */
    #quotation-detail-popup-modal table tbody tr.total-row td::before {
        content: none !important;
    }
}

#quotation-detail-popup-cancel {
    float: right;
    margin-top: -17px;
    margin-right: -17px;
    font-size: 25px;
    color: red;
    border: 0px !important;
}

.popup-modal-full {
    position: fixed;
    inset: 0;
    overflow: hidden;
    border-radius: 0 !important;
    height: var(--quotation-visual-height, 100dvh);
    max-height: var(--quotation-visual-height, 100dvh);
}

.popup-card-full {
    display: flex;
    flex-direction: column;
    border-radius: 0 !important;
    height: var(--quotation-visual-height, 100dvh);
    max-height: var(--quotation-visual-height, 100dvh);
}

.popup-header-full {
    flex: 0 0 auto;
}

.popup-body-full {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#quotation-detail-popup-modal {
    --quotation-safe-bottom: max(env(safe-area-inset-bottom), 16px);
}

#quotation-detail-popup-modal #quo-popup-footer {
    flex: 0 0 auto;
    padding-bottom: var(--quotation-safe-bottom) !important;
    background: #ffffff;
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.08);
}

#quotation-detail-popup-modal #div-scroll {
    max-height: calc(var(--quotation-visual-height, 100dvh) - 230px);
    padding-bottom: calc(var(--quotation-safe-bottom) + 72px);
}

.show-full {
    display: block !important;
}

/* ==================== css for right list fullscreen panel ==================== */
/* =========================
   RIGHT PANEL TOGGLE BUTTON
   ========================= */

.right-panel-toggle-btn {
    position: fixed;
    top: 45px;
    right: 5px;
    width: 35px;
    height: 35px;
    border-radius: 24px;
    border: 1px solid rgb(204, 204, 204);
    background: #fff;
    color: #000;
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* z-index: 10002; */
}

.right-panel-toggle-btn-3d {
    position: absolute !important;
    right: 0px !important;
}

/* Inside zoom-controls when stacked (responsive top bar) — 2D JS path */
#zoom-controls-2d .right-panel-toggle-btn.in-zoom-controls {
    position: relative;
    top: auto;
    right: auto;
    flex-shrink: 0;
}

.right-panel-toggle-btn.force-show {
    display: flex !important;
}

.right-panel-toggle-btn i {
    pointer-events: none;
}

@media (max-width: 1199.98px) {
    .right-panel-toggle-btn {
        display: flex;
    }

    .room-set-right.fullscreen-panel {
        animation: slideInRight 0.35s ease-out;
    }
}

@media (max-width: 600px) {
    /* 3D: tránh chèn top-left — zoom (+ sidepanel btn trong flex) xuống hàng dưới */
    #zoom-controls-3d {
        top: 48px;
        right: 5px;
        left: auto;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@media (min-width: 1200px) {
    .right-panel-toggle-btn {
        display: none;
    }
}

.cabinetry-library-l1-icon .cabinetry-library-cabinet-icon,
.cabinetry-library-chevron {
    pointer-events: none;
}

.cabinetry-library-overlay {
    position: absolute;
    inset: 0;
    z-index: 10004;
    visibility: hidden;
    pointer-events: none;
}

.cabinetry-library-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
}

.cabinetry-library-backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
}

.cabinetry-library-panel {
    position: absolute;
    top: 42px;
    left: 0;
    width: min(370px, calc(100vw - 16px));
    max-height: min(72vh, 400px);
    padding: 14px 12px 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(20, 40, 80, 0.18);
    display: flex;
    flex-direction: column;
    color: #1e3558;
    z-index: 2;
    pointer-events: auto;
}

.cabinetry-library-header {
    padding: 0 4px 10px;
}

.cabinetry-library-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #9aa4b5;
    margin-bottom: 6px;
}

.cabinetry-library-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.cabinetry-library-header-text {
    min-width: 0;
    flex: 1;
}

.cabinetry-library-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #1e3558;
}

.cabinetry-library-edited {
    margin-top: 2px;
    font-size: 12px;
    color: #9aa4b5;
}

.cabinetry-library-list {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.cabinetry-library-group + .cabinetry-library-group {
    margin-top: 2px;
    border-top: 1px solid #eceff3;
    padding-top: 2px;
}

.cabinetry-library-l1,
.cabinetry-library-l2 {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    text-align: left;
    cursor: pointer;
    color: #1e3558;
    border-radius: 8px;
}

.cabinetry-library-l1 {
    gap: 10px;
    padding: 9px 10px;
    font-size: 14px;
}

.cabinetry-library-l1:hover,
.cabinetry-library-l2:hover,
.cabinetry-library-group.is-expanded > .cabinetry-library-l1 {
    background: #e8f1ff;
}

.cabinetry-library-l1-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.cabinetry-library-l1-icon .cabinetry-library-cabinet-icon {
    width: 16px;
    height: 16px;
}

.cabinetry-library-l1-label {
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 700;
    color: #1e3558;
}

.cabinetry-library-badge {
    font-size: 12px;
    color: #9aa4b5;
    background: transparent;
    padding: 0;
    min-width: 0;
    height: auto;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.cabinetry-library-chevron {
    width: 12px;
    height: 12px;
    color: #9aa4b5;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.cabinetry-library-group.is-expanded > .cabinetry-library-l1 .cabinetry-library-chevron,
.cabinetry-library-l2-wrap.is-expanded .cabinetry-library-size-pill .cabinetry-library-chevron {
    transform: rotate(180deg);
}

.cabinetry-library-children {
    background: transparent;
    padding: 2px 0 4px 25px;
}

.cabinetry-library-l2 {
    gap: 10px;
    padding: 8px 10px;
}

.cabinetry-library-l2-label {
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 500;
    color: #1e3558;
}

.cabinetry-library-size-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9aa4b5;
    font-size: 12px;
    font-weight: 500;
    flex: 0 0 auto;
}

.cabinetry-library-l3-list {
    margin: 2px 0 6px 8px;
    overflow: hidden;
    background: transparent;
}

.cabinetry-library-l3-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    min-height: 36px;
    border-radius: 8px;
    background: transparent;
    color: #1e3558;
}

.cabinetry-library-l3-row:hover,
.cabinetry-library-l3-row.is-selected {
    background: #e8f1ff;
}

.cabinetry-library-l3-code {
    min-width: 38px;
    font-size: 13px;
    font-weight: 600;
    color: #1e3558;
    flex: 0 0 auto;
}

.cabinetry-library-l3-size {
    flex: 1 1 auto;
    font-size: 12px;
    color: #9aa4b5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.cabinetry-library-l3-stock {
    flex: 0 0 auto;
    padding: 0;
    background: transparent;
    color: #c24747;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.cabinetry-library-l3-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex: 0 0 auto;
}

.cabinetry-library-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: #eef2f7;
    color: #1e3558;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.cabinetry-library-icon-btn svg {
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.cabinetry-library-icon-btn.cabinetry-library-add-button {
    background: #e8f1ff;
    color: #1e3558;
}

.cabinetry-library-icon-btn:hover:not(:disabled) {
    background: #e4eaf2;
}

.cabinetry-library-icon-btn.cabinetry-library-add-button:hover:not(:disabled) {
    background: #d7e8fb;
}

.cabinetry-library-l3-row.is-out-of-stock .cabinetry-library-l3-code,
.cabinetry-library-l3-row.is-out-of-stock .cabinetry-library-l3-size,
.cabinetry-library-l3-row.is-out-of-stock .cabinetry-library-l3-actions {
    opacity: 0.42;
}

.cabinetry-library-l3-row.is-out-of-stock .cabinetry-library-icon-btn {
    cursor: not-allowed;
}

.cabinetry-library-empty {
    padding: 16px 10px;
    text-align: left;
    color: #9aa4b5;
    font-size: 14px;
}

.cabinetry-library-empty.is-nested {
    padding: 8px 10px 10px;
}

.cabinetry-library-detail-overlay {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    pointer-events: none;
}

.cabinetry-library-detail-overlay.is-open {
    display: flex !important;
    pointer-events: auto;
}

.cabinetry-library-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 32, 54, 0.28);
}

.cabinetry-library-detail-dialog {
    position: relative;
    z-index: 1;
    width: min(1040px, calc(100vw - 48px));
    max-height: min(92vh, 900px);
    overflow: auto;
    margin: auto;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(16, 32, 58, 0.24);
    padding: 24px 24px 16px;
    color: #1e3558;
}

html.cabinetry-library-detail-lock,
body.cabinetry-library-detail-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.cabinetry-library-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #8b97ab;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cabinetry-library-detail-close svg {
    width: 16px;
    height: 16px;
}

.cabinetry-library-detail-header {
    padding-right: 28px;
    margin-bottom: 16px;
}

.cabinetry-library-detail-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cabinetry-library-detail-code {
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
}

.cabinetry-library-detail-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.cabinetry-library-detail-stock.is-in {
    background: #e9f8ee;
    color: #1f8a46;
}

.cabinetry-library-detail-stock.is-out {
    background: #fdecec;
    color: #c24141;
}

.cabinetry-library-detail-stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.cabinetry-library-detail-subtitle {
    margin-top: 6px;
    color: #7b879b;
    font-size: 14px;
}

.cabinetry-library-detail-price {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
}

.cabinetry-library-detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 16px;
    align-items: start;
}

.cabinetry-library-detail-media {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.8fr);
    gap: 10px;
    margin-bottom: 0;
}

.cabinetry-library-detail-info .cabinetry-library-detail-section:last-child {
    margin-bottom: 0;
}

.cabinetry-library-detail-preview {
    min-height: 280px;
    background: #eef2f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cabinetry-library-detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cabinetry-library-detail-fallback-icon {
    width: 72px;
    height: 96px;
}

.cabinetry-library-detail-dims {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cabinetry-library-detail-dim {
    background: #eef2f6;
    border-radius: 8px;
    padding: 8px 10px 7px;
}

.cabinetry-library-detail-dim span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #8b97ab;
}

.cabinetry-library-detail-dim strong {
    display: block;
    margin-top: 2px;
    font-size: 18px;
    font-weight: 700;
}

.cabinetry-library-detail-3d {
    margin-top: auto;
    height: 36px;
    border: 1px solid #d5deea;
    background: #ffffff;
    border-radius: 8px;
    color: #1e3558;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cabinetry-library-detail-section {
    margin-bottom: 16px;
}

.cabinetry-library-detail-kicker {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #8b97ab;
    font-weight: 700;
    margin-bottom: 8px;
}

.cabinetry-library-detail-spec {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #eef2f6;
    font-size: 13px;
}

.cabinetry-library-detail-spec span {
    color: #7b879b;
}

.cabinetry-library-detail-spec strong {
    text-align: right;
    font-weight: 600;
}

.cabinetry-library-detail-compat {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    color: #1f8a46;
    font-size: 12px;
    line-height: 1.35;
}

.cabinetry-library-detail-compat svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 1px;
}

.cabinetry-library-detail-description {
    margin: 0;
    color: #5d6b80;
    font-size: 13px;
    line-height: 1.45;
}

.cabinetry-library-detail-add {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.cabinetry-library-detail-add:disabled {
    background: #c5d0e0;
    cursor: not-allowed;
}

@media (max-width: 980px) {
    .cabinetry-library-detail-dialog {
        width: min(720px, calc(100vw - 24px));
    }

    .cabinetry-library-detail-body {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.cabinetry-library-detail-hint {
    margin-top: 10px;
    text-align: center;
    color: #9aa4b5;
    font-size: 12px;
}

.cabinetry-library-detail-loading {
    padding: 48px 12px;
    text-align: center;
    color: #8b97ab;
}

/* ==================== css for button iframe ==================== */
.show {
    display: block;
}

.hide {
    display: none;
}

.menu-controls {
    position: absolute;
    bottom: 3px;
    right: 5px;
    display: flex;
    gap: 5px;
    z-index: 10001;
}

#menu-controls-2d {
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

#menu-controls-2d .menu-controls-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

#menu-controls-2d .menu-controls-labeled-btn {
    width: auto;
    min-width: 35px;
    padding: 0 10px;
    border-radius: 20px;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

#menu-controls-2d .menu-controls-btn-label {
    line-height: 1;
    white-space: nowrap;
}

#menu-controls-2d .menu-controls-separator {
    display: none;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 2px;
    color: #c4b48a;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

#menu-controls-2d .menu-controls-object-name {
    max-width: 168px;
    padding: 1px 6px 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: #6b5a3a;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

#menu-controls-2d .menu-controls-object-name[hidden] {
    display: none !important;
}

/* Black arrow with white outline — stays black over the menu (no OS invert / white grab hand). */
#menu-controls-2d,
#menu-controls-2d * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-linejoin='round' stroke-width='1.4' d='M4.4 2.6v18.2l5.3-5.2 3.3 7.9 2.8-1.2-3.3-7.8h7.1z'/%3E%3C/svg%3E") 4 2, default;
}

#menu-controls-2d.menu-controls-near-object {
    right: auto;
    bottom: auto;
    padding: 6px 10px 8px;
    border: 2px solid #d1b57c;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    z-index: 10020;
}

#menu-controls-2d.menu-controls-near-object .circle-btn,
#menu-controls-2d.menu-controls-near-object .circle-btn:hover,
#menu-controls-2d.menu-controls-near-object .circle-btn:hover i,
#menu-controls-2d.menu-controls-near-object .circle-btn.active {
    color: #000000;
}

.menu-controls-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    min-width: 12px;
    color: #9b875f;
    font-size: 13px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .menu-controls {
        bottom: 70px !important;
    }

    #menu-controls-2d.menu-controls-near-object {
        bottom: auto !important;
    }
}

.top-left-controls {
    position: absolute;
    top: 3px;
    left: 3px;
    display: flex;
    gap: 5px;
    z-index: 10001;
}

.file-menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 290px;
    max-width: calc(100vw - 16px);
    padding: 14px 12px 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(20, 40, 80, 0.18);
    z-index: 10002;
    color: #1e3558;
}

.file-menu-panel.show {
    display: block;
}

.file-menu-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #9aa4b5;
    margin-bottom: 6px;
}

.file-menu-header {
    padding: 0 4px 10px;
}

.file-menu-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.file-menu-header-text {
    min-width: 0;
    flex: 1;
}

.file-menu-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #1e3558;
}

.file-menu-edited {
    margin-top: 2px;
    font-size: 12px;
    color: #9aa4b5;
}

.file-menu-back-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #eef2f7;
    color: #1e3558;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.file-menu-back-btn:hover {
    background: #e4eaf2;
}

.shortcuts-menu-header-row {
    align-items: center;
}

.shortcuts-menu-header-row .file-menu-kicker {
    margin-bottom: 0;
}

.file-menu-edit-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #eef2f7;
    color: #1e3558;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.file-menu-edit-btn:hover {
    background: #e4eaf2;
}

.file-menu-item {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #1e3558;
    font-size: 14px;
    cursor: pointer;
    text-align: left;    
    margin-bottom: 2px;
}

.file-menu-item > i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #1e3558;
}

.file-menu-item-label {
    flex: 1;
}

.file-menu-item-shortcut {
    font-size: 12px;
    color: #9aa4b5;
}

.file-menu-item-check {
    color: #3d7dff;
    font-size: 13px;
    min-width: 14px;
    opacity: 0;
    flex-shrink: 0;
}

.file-menu-item-chevron {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #eef2f7;
    color: #1e3558;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
}

.file-menu-item.has-submenu:hover .file-menu-item-chevron {
    background: #dce9ff;
    color: #3d7dff;
}

.file-menu-panel.more-menu-panel-click3d,
.file-menu-panel.more-menu-panel-click2d {
    z-index: 10020;
}

.file-menu-panel.edit-menu-panel .file-menu-item > i {
    color: #3d7dff;
}

.file-menu-panel.edit-menu-panel .file-menu-item.has-desc {
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.file-menu-panel.edit-menu-panel .file-menu-item.has-desc > i {
    margin-top: 0;
}

.file-menu-panel.edit-menu-panel .file-menu-item-value {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 13px;
    color: #6b7a90;
    white-space: nowrap;
}

.file-menu-panel.edit-menu-panel .file-menu-item[data-action="ceiling-height"] .file-menu-item-badge {
    margin-left: auto;
}

.ceiling-height-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 0 2px;
    border-radius: 10px;
    background: #e8f1ff;
}

.ceiling-height-input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #1e3558;
    font-size: 14px;
    outline: none;
}

.ceiling-height-input:focus {
    border-color: #3d7dff;
    box-shadow: 0 0 0 2px rgba(61, 125, 255, 0.15);
}

.ceiling-height-apply-btn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: #c4a574;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ceiling-height-apply-btn:hover {
    background: #b8955f;
}

.file-menu-item.is-active .file-menu-item-check {
    opacity: 1;
}

.file-menu-panel.view-menu-panel,
.file-menu-panel.tool-menu-panel {
    width: 320px;
}

.file-menu-item-badge {
    font-size: 11px;
    font-weight: 600;
    color: #1e3558;
    background: #e8f1ff;
    border-radius: 999px;
    padding: 3px 8px;
    flex-shrink: 0;
    line-height: 1.2;
}

.file-menu-item:hover,
.file-menu-item.is-active {
    background: #e8f1ff;
    outline: none;
}

.file-menu-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.file-menu-item.is-disabled {
    opacity: 0.5;
}

.file-menu-item.is-saving,
.file-menu-item.is-saving:disabled {
    opacity: 1;
    cursor: wait;
    pointer-events: none;
    background: #e8f1ff;
}

.file-menu-item.is-saving > i {
    color: #3d7dff;
}

.save-success-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    background: #22c55e;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.save-success-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.save-success-toast i {
    font-size: 16px;
}

.save-success-toast.is-warning {
    background: #eab308;
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.35);
    color: #1f2937;
}

.file-menu-divider {
    height: 1px;
    margin: 6px 4px;
    background: #eceff3;
}

.file-menu-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.file-menu-item-desc {
    font-size: 11px;
    color: #9aa4b5;
    line-height: 1.3;
    margin-top: 1px;
}

.file-menu-item.has-desc {
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: 8px;
}

.file-menu-item.has-desc > i {
    margin-top: 2px;
}

.project-name {
    top: 55px;
    left: 50px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 2px 5px;
    font-size: 14px;
    display: none;
    pointer-events: none;
}

.bottom-left-box-3d {
    position: absolute;
    bottom: 0px;
    left: 1px;
    display: flex;
    z-index: 10001;
}

.bottom-left-controls {
    position: absolute;
    bottom: 2px;
    left: 2px;
    display: flex;
    z-index: 10001;
}

.circle-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #000000;
    transition: all 0.3s ease;
}

.flex {
    display: flex !important;
}

.top-left-btn,
.top-right-btn {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: inline;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #000000;
    transition: all 0.3s ease;
    padding: 6px;
}

.top-left-btn>i {
    font-size: 10px;
}

.top-left-btn-list {
    font-size: 14px;
    padding: 6px 10px;
}

.top-left-btn-list>i {
    font-size: 16px;
}

.bottom-left-btn {
    height: 30px;
    border: 1px solid #999;
    background: #ffffff;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #000000;
    transition: all 0.3s ease;
    margin-right: 2px;
    border-radius: 4px;
    height: 27px;
    line-height: .8rem;
}

.top-right-btn > img {
    width: 15px;
}
.top-right-btn > span {
    font-size: 12px;
}

.wall-cabinet-height-container {
    display: flex;
    align-items: center;
    height: 30px;
    background: #ffffff;
    /* border-top: 1px solid #999; */
    /* border-right: 1px solid #999; */
    border-bottom: 0;
    border-left: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wall-cabinet-height-select {
    border: none;
    background: transparent;
    border-top: 1px solid #999;
    border-right: 1px solid #999;
    font-size: 12px;
    padding: 4px 6px;
    cursor: pointer;
    outline: none;
    max-width: 38px;
}

.circle-btn:hover,
.bottom-left-btn:hover,
.fullscreen-btn:hover {
    background: #f5f5f5;
    /* box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); */
    transform: translateY(-2px);
}

.circle-btn:disabled {
    color: #656363b5;
    cursor: not-allowed;
}

.top-left-controls .top-left-btn.active,
.bottom-left-controls .bottom-left-btn.active,
.bottom-left-box-3d .bottom-left-btn.active,
.zoom-controls .zoom-btn.active,
.menu-controls .circle-btn.active {
    background-color: #999999d9;
    /* primary highlight */
    color: #fff;
}

#loading-overlay {
    display: none;
    position: absolute;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #006699;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==================== LOADING OVERLAY FULL SCREEN ==================== */
.loading-overlay-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 1000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Room Loading - Same style as page preloader */
#room_preloader {
    position: relative;
}

#room_preloader.rectangle-bounce {
    text-align: center;
    position: relative;
    margin-left: 0;
    margin-top: 0;
    height: 30px;
    width: 53px;
}

#room_preloader span {
    display: block;
    bottom: 0px;
    width: 9px;
    height: 30px;
    background: #333;
    position: absolute;
    transform-origin: center bottom;
    /* transform-only → chạy trên compositor, không bị đứng khi JS nặng */
    animation: preloader_room 1.5s infinite ease-in-out;
    -moz-animation: preloader_room 1.5s infinite ease-in-out;
    -webkit-animation: preloader_room 1.5s infinite ease-in-out;
    -o-animation: preloader_room 1.5s infinite ease-in-out;
    -ms-animation: preloader_room 1.5s infinite ease-in-out;
    will-change: transform;
}

#room_preloader span:nth-child(2) {
    left: 11px;
    animation-delay: 0.2s;
    -moz-animation-delay: 0.2s;
    -webkit-animation-delay: 0.2s;
    -o-animation-delay: 0.2s;
    -ms-animation-delay: 0.2s;
}

#room_preloader span:nth-child(3) {
    left: 22px;
    animation-delay: 0.4s;
    -moz-animation-delay: 0.4s;
    -webkit-animation-delay: 0.4s;
    -o-animation-delay: 0.4s;
    -ms-animation-delay: 0.4s;
}

#room_preloader span:nth-child(4) {
    left: 33px;
    animation-delay: 0.6s;
    -moz-animation-delay: 0.6s;
    -webkit-animation-delay: 0.6s;
    -o-animation-delay: 0.6s;
    -ms-animation-delay: 0.6s;
}

#room_preloader span:nth-child(5) {
    left: 44px;
    animation-delay: 0.8s;
    -moz-animation-delay: 0.8s;
    -webkit-animation-delay: 0.8s;
    -o-animation-delay: 0.8s;
    -ms-animation-delay: 0.8s;
}

@keyframes preloader_room {
    0% {
        transform: scaleY(0.17);
        background: #333;
    }

    25% {
        transform: scaleY(1);
        background: #333;
    }

    50% {
        transform: scaleY(0.17);
        background: #333;
    }

    100% {
        transform: scaleY(0.17);
        background: #333;
    }
}

@-moz-keyframes preloader_room {
    0% {
        -moz-transform: scaleY(0.17);
        background: #333;
    }
    25% {
        -moz-transform: scaleY(1);
        background: #333;
    }
    50%,
    100% {
        -moz-transform: scaleY(0.17);
        background: #333;
    }
}

@-webkit-keyframes preloader_room {
    0% {
        -webkit-transform: scaleY(0.17);
        background: #333;
    }
    25% {
        -webkit-transform: scaleY(1);
        background: #333;
    }
    50%,
    100% {
        -webkit-transform: scaleY(0.17);
        background: #333;
    }
}

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: loading-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.widgetCKS {
    margin-top: 20px;
}

.ul-box-style-popup {
    list-style-type: disc;
    padding-left: 25px;
    font-size: 13px;
}

/* ==================== POPUP STYLE ==================== */
.popup-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100040;
}

#save-file-popup-modal.show,
#project-file-popup-modal.show {
    display: flex;
    z-index: 100041;
}

.popup-modal .popup-card {
    width: auto;
    max-width: 92%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: inherit;
}

#project-file-popup-modal .project-popup-card {
    max-width: none !important;
    width: auto;
}

.popup-modal .popup-header {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 16px;
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
}

.popup-modal .popup-body {
    padding: 16px;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

#project-file-popup-modal .project-popup-body {
    padding: 0 !important;
}

#project-file-popup-modal .project-popup-container {
    padding: 0 !important;
    min-height: 200px !important;
}

#project-file-popup-modal .project-popup-table-wrapper {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.popup-modal .popup-actions {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    justify-content: flex-end;
}

.popup-modal .btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 14px;
    cursor: pointer;
}

.popup-modal .btn-cancel {
    background: #f3f4f6;
    color: #111827;
    border-color: #e5e7eb;
}

.popup-modal .btn-cancel:hover {
    background: #e5e7eb;
}

.popup-modal .btn-ok {
    background: #2563eb;
    color: #fff;
}

.popup-modal .btn-ok:hover {
    background: #1d4ed8;
}

/*==================== fix lỗi click xuyên khi ấn close RO trên mobile ====================*/
body.prevent-click-through #container,
body.prevent-click-through #container iframe,
body.prevent-click-through #container canvas {
    pointer-events: none !important;
}

/*==================== style my project list mobile============================================*/
@media (max-width: 991px) {

    /* Table chiếm full modal */
    #my-project-list table {
        width: 100% !important;
        table-layout: fixed;
    }

    /* tbody cũng full */
    #my-project-list table tbody {
        display: block;
        width: 100%;
    }

    /* Section title hiển thị full width */
    #my-project-list tr.head-title {
        display: block;
        width: 100%;
        background: #f0f0f0;
        padding: 10px 12px;
        font-weight: bold;
        border: 1px solid #ddd;
    }

    #my-project-list tr.head-title td {
        display: block;
        width: 100%;
        border: none;
        text-align: center;
    }

    /* CARD (TR) FULL WIDTH */
    #my-project-list table tbody tr.popup-item {
        display: block;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* TD không làm co width */
    #my-project-list table tbody tr.popup-item td {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Ẩn header cột */
    #my-project-list table thead tr.table-header {
        display: none;
    }

    /* Mỗi row thành 1 card */
    #my-project-list table tbody tr.popup-item {
        display: block;
        margin-bottom: 2px;
        border: 1px solid #ddd;
        /* border-radius: 10px; */
        padding: 12px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        width: 100%;
    }

    /* Cell thành dòng label : value */
    #my-project-list table tbody tr.popup-item td {
        display: flex;
        justify-content: start;
        align-items: flex-start;
        border: none;
        padding: 2px 0;
        text-align: right;
        font-size: 14px;
    }

    /* Label bên trái */
    #my-project-list table tbody tr.popup-item td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
        text-align: left;
        padding-right: 12px;
        flex: 1;
        min-width: 110px;
    }

    #my-project-list table tbody tr.popup-item .item-no::before {
        flex: 0 !important;
    }

    /* Value bên phải */
    #my-project-list table tbody tr.popup-item td {
        flex: 2;
    }

    /* ===== TOTAL ROW – 2 COLUMNS ===== */
    #my-project-list table tbody tr.total-row {
        display: block;
        width: 100% !important;
        background: transparent !important;
        border: 0px !important;
    }

    #my-project-list table tbody tr.total-row td {
        display: inline-block;
        width: 50%;
        box-sizing: border-box;
        border: none;
        padding: 4px;
        font-weight: 600;
        vertical-align: middle;
    }

    /* Cột trái – label */
    #my-project-list table tbody tr.total-row td:first-child {
        text-align: left !important;
    }

    /* Cột phải – value */
    #my-project-list table tbody tr.total-row td:last-child {
        text-align: right !important;
        float: right !important;
    }

    /* Không dùng label pseudo */
    #my-project-list table tbody tr.total-row td::before {
        content: none !important;
    }
}

/*==================== nút điều hướng để di chuyển đối tượng============================================*/
.arrows-dpad {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid #000;
    overflow: hidden;
    background: #f8f8f8;
}

/* ===== 4 VÙNG CLICK ===== */
.arrows-slice {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    transition: 0.15s;
}

.arrows-up {
    clip-path: polygon(50% 50%, 0% 0%, 100% 0%);
}

.arrows-right {
    clip-path: polygon(50% 50%, 100% 0%, 100% 100%);
}

.arrows-down {
    clip-path: polygon(50% 50%, 0% 100%, 100% 100%);
}

.arrows-left {
    clip-path: polygon(50% 50%, 0% 0%, 0% 100%);
}

/* hover + click */
.arrows-slice:hover {
    background: rgba(0, 0, 0, 0.05);
}

.arrows-slice:active {
    background: rgba(0, 0, 0, 0.15);
    transform: scale(0.97);
}

/* ===== LINE CHÉO ===== */
.arrows-line {
    position: absolute;
    width: 1px;
    height: 140%;
    background: #000;
    top: -20%;
    left: 50%;
    transform-origin: center;
    pointer-events: none;
}

.arrows-line.l1 {
    transform: translateX(-50%) rotate(45deg);
}

.arrows-line.l2 {
    transform: translateX(-50%) rotate(-45deg);
}

/* ===== ICON (KHÔNG BỊ MÉO) ===== */
.arrows {
    position: absolute;
    font-size: 20px;
    color: #000;
    pointer-events: none;
    z-index: 10;
}

.arrows.up {
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
}

.arrows.down {
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
}

.arrows.left {
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.arrows.right {
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* ===== CENTER ===== */
.arrows-center {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #000000;
    background: #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: 0.15s;
    font-size: 20px;
    color: #000000;
    padding-top: 2px;
}

.arrows-center:active {
    background: #ddd;
    transform: translate(-50%, -50%) scale(0.95);
}

/*==================== page header ====================*/
.page-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.back-link {
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border 0.2s ease;
}

.back-link:hover {
    background: #fff;
    border-color: #0f172a;
}

.page-header h1 {
    margin: 4px 0 0;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #0f172a;
}

/*==================== popup save project ====================*/

/* HEADER */
.save-project-header {
    height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}

.save-project-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1f4e79;
}

.save-project-close {
    width: 45px;
    height: 45px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 28px;
    color: #6b7280;
    transition: 0.2s;
}

.save-project-close:hover {
    background: #f3f4f6;
}

/* TABS */
.save-project-tabs {
    display: flex;
    gap: 28px;
    padding: 0 24px;
    border-bottom: 1px solid #e5e7eb;
}

.save-project-tab {
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
}

.save-project-tab.active {
    color: #1f4e79;
}

.save-project-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #1f4e79;
    border-radius: 999px;
}

/* BODY */
.save-project-body {
    padding: 15px;
    /* min-height: 420px; */
}

.save-project-content {
    display: none;
}

.save-project-content.active {
    display: block;
}

/* FORM */
.save-project-group {
    margin-bottom: 10px;
}

.save-project-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.save-project-required {
    color: #dc2626;
}

.save-project-input-wrapper {
    position: relative;
}

.save-project-input {
    width: 100%;
    height: 48px;
    border: 2px solid #1f4e79;
    border-radius: 10px;
    padding: 0 60px 0 16px;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
}

.save-project-input.error {
    border-color: #dc2626;
}

.save-project-input:focus {
    box-shadow: 0 0 0 4px rgba(31, 78, 121, 0.08);
}

.save-project-count {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #6b7280;
    pointer-events: none;
}

.save-project-helper {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.save-project-warning-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #f59e0b;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.save-project-error {
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #dc2626;
}

.save-project-error.show {
    display: flex;
}

/* PREVIEW */
.save-project-preview-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.save-project-preview {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    background: #fafafa;
}

.save-project-preview-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
}

.save-project-preview-item:last-child {
    margin-bottom: 0;
}

.save-project-preview-item strong {
    font-weight: 700;
}

/* CHECKBOX */
.save-project-checkbox {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    cursor: pointer;
}

.save-project-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #1f4e79;
    padding: 0;
    appearance: auto !important;
}

/* SEARCH */
.save-project-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 5px;
}

.save-project-search {
    flex: 1;
    position: relative;
}

.save-project-search input {
    width: 100%;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 14px 0 40px;
    font-size: 14px;
    outline: none;
}

.save-project-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.save-project-filter {
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

/* PROJECT LIST */
.save-project-list {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: auto;
    max-height: 53vh;
}

.save-project-item {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 30px;
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    transition: 0.2s;
    cursor: pointer;
}

.save-project-item:last-child {
    border-bottom: none;
}

.save-project-item.active {
    background: #eff6ff;
}

.save-project-left {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: -15px;
}

.save-project-thumb {
    width: 78px;
    height: 58px;
    border-radius: 8px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.save-project-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.save-project-item .badge {
    position: relative;
    top: -29px;
    left: -2px;
    width: 35px;
    color: #6b7280;
    font-size: 13px;
    border-radius: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.save-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.save-project-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.save-project-update-btn {
    height: 35px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: #1f4e79;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.save-project-more-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
}

/* FOOTER */
.save-project-footer {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.save-project-quota {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #6b7280;
}

.save-project-quota strong {
    color: #111827;
    width: 50px;
}

.save-project-progress {
    width: 90px;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
}

.save-project-progress-bar {
    width: 20%;
    height: 100%;
    background: #10b981;
}

.save-project-footer-actions {
    display: flex;
    gap: 12px;
}

.save-project-btn {
    height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.save-project-btn-secondary {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #111827;
}

.save-project-btn-primary {
    background: #1f4e79;
    color: #fff;
}

.save-project-btn-primary:hover {
    background: #163759;
}

.save-project-btn-primary.disabled {
    background: #9eb4cb;
    cursor: not-allowed;
}

/* =========================================
    CONFIRM SAVE EXISTING POPUP
========================================= */

.save-project-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100042;
}

.save-project-confirm-modal {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 2px 10px rgba(0, 0, 0, 0.06);
}

/* HEADER */
.save-project-confirm-header {
    padding: 20px 20px 0;
}

.save-project-confirm-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.save-project-confirm-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #000;
}

/* BODY */
.save-project-confirm-body {
    padding: 28px 34px 34px;
}

.save-project-confirm-text {
    font-size: 15px;
    line-height: 1.6;
    color: #111827;
    margin-bottom: 18px;
}

/* CARD */
.save-project-confirm-card {
    background: #fef3c7;
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 24px;
}

.save-project-confirm-card-title {
    font-size: 15px;
    color: #92400e;
}

.save-project-confirm-card-info {
    font-size: 15px;
    line-height: 1.7;
    color: #92400e;
}

/* WARNING */
.save-project-confirm-warning {
    font-size: 15px;
    line-height: 1.6;
    color: #111827;
    max-width: 560px;
}

/* FOOTER */
.save-project-confirm-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* BUTTONS */
.save-project-confirm-btn {
    height: 45px;
    padding: 0 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.save-project-confirm-btn-cancel {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
}

.save-project-confirm-btn-cancel:hover {
    background: #f9fafb;
}

.save-project-confirm-btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.save-project-confirm-btn-danger:hover {
    background: #b91c1c;
}

/* MOBILE */
@media (max-width: 768px) {
    .save-project-footer {
        height: auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        padding: 15px;
    }

    .save-project-quota {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .save-project-footer-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .save-project-btn {
        min-width: 140px;
    }

    .save-project-confirm-modal {
        border-radius: 18px;
    }

    .save-project-confirm-header {
        padding: 24px 24px 0;
    }

    .save-project-confirm-body {
        padding: 22px 24px 28px;
    }

    .save-project-confirm-footer {
        padding: 0 24px 24px;
        flex-direction: column-reverse;
    }

    .save-project-confirm-btn {
        width: 100%;
    }

    .save-project-confirm-title {
        font-size: 20px;
        align-items: flex-start;
    }

    .save-project-confirm-text,
    .save-project-confirm-warning {
        font-size: 16px;
    }

    .save-project-confirm-card-title {
        font-size: 17px;
    }

    .save-project-confirm-card-info {
        font-size: 15px;
    }
}