/* CSS mo phong kich thuoc: chi nap cho san pham co bat mo phong. */

.bieu-mau-kich-thuoc-nhom.co-mo-phong-hop {
    display: grid;
    gap: 10px;
}

.bieu-mau-kich-thuoc-nhom.co-mo-phong-hop > .bieu-mau-truong-dau {
    margin-bottom: 0;
}

.bieu-mau-kich-thuoc-nhan-noi {
    margin-bottom: 5px !important;
    color: #6f6a72 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

.bieu-mau-mo-phong-hop {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: stretch;
    justify-items: center;
    width: 100%;
    height: var(--bieu-mau-mo-phong-chieu-cao, 520px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.bieu-mau-mo-phong-hop-chu-giai {
    position: relative;
    z-index: 2;
    align-self: start;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #302d33;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: none;
}

.bieu-mau-mo-phong-hop-chu-giai-muc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bieu-mau-mo-phong-hop-chu-giai-muc + .bieu-mau-mo-phong-hop-chu-giai-muc {
    margin-left: 16px;
}

.bieu-mau-mo-phong-hop-chu-giai-muc i {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fb5b20;
}

.bieu-mau-mo-phong-hop-chu-giai-muc[data-vai-tro="chu-giai-cao"] i {
    width: 2px;
    height: 18px;
}

.bieu-mau-mo-phong-hop-chu-giai-muc[data-vai-tro="chu-giai-hong"] i {
    width: 18px;
    transform: rotate(-45deg);
    transform-origin: center;
}

.bieu-mau-mo-phong-hop-chu-giai-muc strong {
    font-weight: 600;
}

.single-product .product-gallery.dang-hien-thi-mo-phong-hop .woocommerce-product-gallery,
.single-product .product-gallery.dang-hien-thi-mo-phong-hop .product-gallery-slider,
.single-product .product-gallery.dang-hien-thi-mo-phong-ty-le .woocommerce-product-gallery,
.single-product .product-gallery.dang-hien-thi-mo-phong-ty-le .product-gallery-slider {
    visibility: hidden;
    pointer-events: none;
}

.single-product .product-gallery.dang-hien-thi-mo-phong-ty-le > .bieu-mau-mo-phong-khe-anh,
.single-product .product-gallery.dang-hien-thi-mo-phong-hop > .bieu-mau-mo-phong-khe-anh {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}
.bieu-mau-mo-phong-ty-le {
    --bieu-mau-mo-phong-nen: var(--background-xam-nhat);
    display: grid;
    grid-template-rows: minmax(360px, 1fr);
    width: 100%;
    height: 100%;
    min-height: var(--bieu-mau-mo-phong-chieu-cao, 520px);
    padding: 28px;
    margin: 0;
    color: #454545;
    background: transparent;
}

.bieu-mau-mo-phong-ty-le-san-khau {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    min-height: 360px;
    padding: 56px 70px 48px 48px;
}

.bieu-mau-mo-phong-ty-le-vat-the {
    --tem-rong: 220px;
    --tem-cao: 160px;
    --duong-do-cao-le: -34px;
    position: relative;
    width: var(--tem-rong);
    height: var(--tem-cao);
    transition:
        width 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.bieu-mau-mo-phong-ty-le-hinh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #9c9c9c;
    border-radius: 0;
    background: #dedede;
}

.bieu-mau-mo-phong-ty-le-logo {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 0 auto;
    width: 120%;
    height: auto;
    max-width: none;
    margin: 0;
    filter: brightness(0) saturate(100%) invert(70%);
    pointer-events: none;
    user-select: none;
}
.bieu-mau-mo-phong-ty-le[data-kieu-logo="mat_na"] .bieu-mau-mo-phong-ty-le-hinh {
    border: 0;
    background: #dedede;
    -webkit-mask-image: var(--bieu-mau-mo-phong-logo-url);
    mask-image: var(--bieu-mau-mo-phong-logo-url);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.bieu-mau-mo-phong-ty-le[data-kieu-logo="mat_na"] .bieu-mau-mo-phong-ty-le-logo {
    display: none;
}

.bieu-mau-mo-phong-ty-le[data-kieu-logo="khuon_hashtag"] .bieu-mau-mo-phong-ty-le-hinh {
    overflow: visible;
    border: 0;
    background: transparent;
}

.bieu-mau-mo-phong-ty-le[data-kieu-logo="khuon_hashtag"] .bieu-mau-mo-phong-ty-le-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
    filter: none;
}

.bieu-mau-mo-phong-ty-le-tay-cam {
    display: none;
}

.bieu-mau-mo-phong-ty-le[data-kieu-logo="khuon_hashtag"].co-tay-cam .bieu-mau-mo-phong-ty-le-tay-cam {
    position: absolute;
    left: 50%;
    top: var(--tay-cam-diem-bam, 100%);
    z-index: 0;
    display: block;
    width: var(--tay-cam-rong, 0px);
    height: var(--tay-cam-cao, 0px);
    background: #fff;
    border: 1px solid #000;
    border-top: 0;
    border-radius: 0 0 6px 6px;
    transform: translateX(-50%);
    pointer-events: none;
}
.bieu-mau-mo-phong-ty-le-tay-cam-duong-do,
.bieu-mau-mo-phong-ty-le-tay-cam-so-do {
    display: none;
}

.bieu-mau-mo-phong-ty-le[data-kieu-logo="khuon_hashtag"].co-tay-cam .bieu-mau-mo-phong-ty-le-tay-cam-duong-do,
.bieu-mau-mo-phong-ty-le[data-kieu-logo="khuon_hashtag"].co-tay-cam .bieu-mau-mo-phong-ty-le-tay-cam-so-do {
    position: absolute;
    display: block;
    color: #404040;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.bieu-mau-mo-phong-ty-le-tay-cam-duong-do::before,
.bieu-mau-mo-phong-ty-le-tay-cam-duong-do::after {
    content: "";
    position: absolute;
    display: block;
    background: currentColor;
}

.bieu-mau-mo-phong-ty-le-tay-cam-duong-do.la-ngang {
    right: 0;
    bottom: -20px;
    left: 0;
    height: 1px;
    border-top: 1px solid currentColor;
}

.bieu-mau-mo-phong-ty-le-tay-cam-duong-do.la-ngang::before,
.bieu-mau-mo-phong-ty-le-tay-cam-duong-do.la-ngang::after {
    top: -4px;
    width: 1px;
    height: 8px;
}

.bieu-mau-mo-phong-ty-le-tay-cam-duong-do.la-ngang::before {
    left: 0;
}

.bieu-mau-mo-phong-ty-le-tay-cam-duong-do.la-ngang::after {
    right: 0;
}

.bieu-mau-mo-phong-ty-le-tay-cam-so-do.la-ngang {
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
}

.bieu-mau-mo-phong-ty-le-tay-cam-duong-do.la-cao {
    top: 0;
    right: -14px;
    bottom: 0;
    width: 1px;
    border-left: 1px solid currentColor;
}

.bieu-mau-mo-phong-ty-le-tay-cam-duong-do.la-cao::before,
.bieu-mau-mo-phong-ty-le-tay-cam-duong-do.la-cao::after {
    left: -4px;
    width: 8px;
    height: 1px;
}

.bieu-mau-mo-phong-ty-le-tay-cam-duong-do.la-cao::before {
    top: 0;
}

.bieu-mau-mo-phong-ty-le-tay-cam-duong-do.la-cao::after {
    bottom: 0;
}

.bieu-mau-mo-phong-ty-le-tay-cam-so-do.la-cao {
    top: 42%;
    right: -46px;
    transform: translateY(-50%) rotate(90deg);
}

.bieu-mau-mo-phong-ty-le-hinh.la-tron {
    border-radius: 50%;
}

.bieu-mau-mo-phong-ty-le-hinh.la-theo_hinh {
    position: relative;
    border: 0;
    border-radius: 0;
    background: #9c9c9c;
    clip-path: polygon(50% 6%, 64% 35%, 96% 40%, 73% 63%, 79% 95%, 50% 80%, 21% 95%, 27% 63%, 4% 40%, 36% 35%);
}

.bieu-mau-mo-phong-ty-le-hinh.la-theo_hinh::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: #dedede;
    clip-path: polygon(50% 6%, 64% 35%, 96% 40%, 73% 63%, 79% 95%, 50% 80%, 21% 95%, 27% 63%, 4% 40%, 36% 35%);
    pointer-events: none;
}

.bieu-mau-mo-phong-ty-le-duong-do {
    position: absolute;
    display: block;
    color: #404040;
}

.bieu-mau-mo-phong-ty-le-duong-do::before,
.bieu-mau-mo-phong-ty-le-duong-do::after {
    position: absolute;
    display: block;
    content: "";
    background: currentColor;
}

.bieu-mau-mo-phong-ty-le-duong-do.la-ngang {
    inset: -32px 0 auto;
    height: 1px;
    border-top: 1px solid currentColor;
}

.bieu-mau-mo-phong-ty-le-duong-do.la-ngang::before,
.bieu-mau-mo-phong-ty-le-duong-do.la-ngang::after {
    top: -4px;
    width: 1px;
    height: 8px;
}

.bieu-mau-mo-phong-ty-le-duong-do.la-ngang::before {
    left: 0;
}

.bieu-mau-mo-phong-ty-le-duong-do.la-ngang::after {
    right: 0;
}

.bieu-mau-mo-phong-ty-le-duong-do.la-cao {
    inset: 0 var(--duong-do-cao-le) 0 auto;
    width: 1px;
    border-left: 1px solid currentColor;
}

.bieu-mau-mo-phong-ty-le-duong-do.la-cao::before,
.bieu-mau-mo-phong-ty-le-duong-do.la-cao::after {
    left: -4px;
    width: 8px;
    height: 1px;
}

.bieu-mau-mo-phong-ty-le-duong-do.la-cao::before {
    top: 0;
}

.bieu-mau-mo-phong-ty-le-duong-do.la-cao::after {
    bottom: 0;
}

.bieu-mau-mo-phong-ty-le-so-do {
    position: absolute;
    z-index: 1;
    padding: 2px 7px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    inline-size: 9ch;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    background: var(--bieu-mau-mo-phong-nen);
}

.bieu-mau-mo-phong-ty-le-so-do.la-ngang {
    top: -43px;
    left: 50%;
    transform: translateX(-50%);
}

.bieu-mau-mo-phong-ty-le-so-do.la-cao {
    top: 50%;
    right: var(--duong-do-cao-le);
    transform: translate(50%, -50%) rotate(90deg);
}


@media (max-width: 549px) {

    .bieu-mau-mo-phong-ty-le {
        grid-template-rows: minmax(300px, 1fr) auto;
        min-height: var(--bieu-mau-mo-phong-chieu-cao, 430px);
        padding: 18px;
    }

    .bieu-mau-mo-phong-ty-le-san-khau {
        min-height: 300px;
        padding: 48px 54px 40px 30px;
    }

}

.bieu-mau-mo-phong-hop-san-khau {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    perspective: 820px;
    perspective-origin: 50% 46%;
    overflow: visible;
    outline: none;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.bieu-mau-mo-phong-hop-san-khau.dang-keo {
    cursor: grabbing;
}

.bieu-mau-mo-phong-hop-san-khau.dang-keo .bieu-mau-mo-phong-hop-khoi,
.bieu-mau-mo-phong-hop-khoi.dang-quan-tinh {
    will-change: transform;
}

.bieu-mau-mo-phong-hop-san-khau:focus-visible {
    outline: 2px solid rgba(255, 90, 43, 0.6);
    outline-offset: 3px;
    border-radius: 8px;
}

.bieu-mau-mo-phong-hop-khoi {
    --hop-rong: 140px;
    --hop-cao: 140px;
    --hop-sau: 140px;
    --goc-x: -16deg;
    --goc-y: 32deg;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: var(--hop-rong);
    height: var(--hop-cao);
    transform: translate(-50%, -50%) rotateX(var(--goc-x)) rotateY(var(--goc-y));
    transform-style: preserve-3d;
    transition:
        width 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.bieu-mau-mo-phong-hop-khoi.la-cho .bieu-mau-mo-phong-hop-mat {
    opacity: 0.65;
}

.bieu-mau-mo-phong-hop-khoi.chua-san-sang {
    visibility: hidden;
}

.bieu-mau-mo-phong-hop-khoi.chua-san-sang,
.bieu-mau-mo-phong-hop-khoi.chua-san-sang .bieu-mau-mo-phong-hop-mat {
    transition: none;
}

.bieu-mau-mo-phong-hop-mat {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid #8d8d92;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition:
        width 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        left 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease;
}

.bieu-mau-mo-phong-hop-logo {
    display: block;
    flex: 0 0 auto;
    width: 122%;
    height: auto;
    max-width: none;
    margin: 0;
    filter: brightness(0) saturate(100%) invert(70%);
    opacity: 0.72;
    pointer-events: none;
    user-select: none;
}

.bieu-mau-mo-phong-hop-ky-hieu-hong {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(88, 88, 94, 0.5);
    pointer-events: none;
    user-select: none;
}

.bieu-mau-mo-phong-hop-mat.la-truoc,
.bieu-mau-mo-phong-hop-mat.la-sau {
    top: 0;
    left: 0;
    width: var(--hop-rong);
    height: var(--hop-cao);
}

.bieu-mau-mo-phong-hop-mat.la-truoc {
    background: linear-gradient(145deg, #f1f1f2, #e5e5e7);
    transform: translateZ(calc(var(--hop-sau) / 2));
}

.bieu-mau-mo-phong-hop-mat.la-sau {
    background: linear-gradient(145deg, #e7e7e9, #d8d8dc);
    transform: rotateY(180deg) translateZ(calc(var(--hop-sau) / 2));
}

.bieu-mau-mo-phong-hop-mat.la-trai,
.bieu-mau-mo-phong-hop-mat.la-phai {
    top: 0;
    left: calc((var(--hop-rong) - var(--hop-sau)) / 2);
    width: var(--hop-sau);
    height: var(--hop-cao);
}

.bieu-mau-mo-phong-hop-mat.la-trai {
    background: linear-gradient(145deg, #e6e6e8, #d5d5d9);
    transform: rotateY(-90deg) translateZ(calc(var(--hop-rong) / 2));
}

.bieu-mau-mo-phong-hop-mat.la-phai {
    background: linear-gradient(145deg, #e2e2e5, #d1d1d6);
    transform: rotateY(90deg) translateZ(calc(var(--hop-rong) / 2));
}

.bieu-mau-mo-phong-hop-mat.la-tren,
.bieu-mau-mo-phong-hop-mat.la-duoi {
    top: calc((var(--hop-cao) - var(--hop-sau)) / 2);
    left: 0;
    width: var(--hop-rong);
    height: var(--hop-sau);
}

.bieu-mau-mo-phong-hop-mat.la-tren {
    background: linear-gradient(145deg, #e2e2e5, #d2d2d6);
    transform: rotateX(90deg) translateZ(calc(var(--hop-cao) / 2));
}

.bieu-mau-mo-phong-hop-mat.la-duoi {
    background: #d0d0d5;
    transform: rotateX(-90deg) translateZ(calc(var(--hop-cao) / 2));
}

.bieu-mau-mo-phong-hop-day-khoa {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
}

.bieu-mau-mo-phong-hop-duong-khoa {
    position: absolute;
    display: block;
    height: 1px;
    margin: 0;
    padding: 0;
    background: rgba(93, 94, 100, 0.76);
    border-radius: 999px;
    transform-origin: 0 50%;
}

.bieu-mau-mo-phong-hop-duong-khoa.la-tren-trai {
    top: 0;
    left: 0;
    width: var(--hop-khoa-duong-trai, 42%);
    transform: rotate(var(--hop-khoa-goc-tren-trai, 36deg));
}

.bieu-mau-mo-phong-hop-duong-khoa.la-tren-phai {
    top: 0;
    left: var(--hop-rong);
    width: var(--hop-khoa-duong-phai, 42%);
    transform: rotate(var(--hop-khoa-goc-tren-phai, 144deg));
}

.bieu-mau-mo-phong-hop-duong-khoa.la-duoi-trai {
    top: var(--hop-sau);
    left: 0;
    width: var(--hop-khoa-duong-trai, 42%);
    transform: rotate(var(--hop-khoa-goc-duoi-trai, -36deg));
}

.bieu-mau-mo-phong-hop-duong-khoa.la-duoi-phai {
    top: var(--hop-sau);
    left: var(--hop-rong);
    width: var(--hop-khoa-duong-phai, 42%);
    transform: rotate(var(--hop-khoa-goc-duoi-phai, -144deg));
}

.bieu-mau-mo-phong-hop-duong-khoa.la-giua {
    top: 50%;
    left: var(--hop-khoa-x-trai, 35%);
    width: var(--hop-khoa-rong-giua, 30%);
    transform: translateY(-0.5px);
}

.bieu-mau-mo-phong-hop-khoi.la-tui-giay {
    --tui-giay-mat: #d7d7d7;
    --tui-giay-mat-sau: #c6c6c6;
    --tui-giay-hong: #b9b9b9;
    --tui-giay-hong-toi: #a8a8a8;
    --tui-giay-nep: rgba(70, 70, 70, 0.48);
    --tui-giay-day: #cfcfcf;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    transform-style: flat;
}

.bieu-mau-mo-phong-hop-khoi.la-tui-giay .bieu-mau-mo-phong-hop-mat {
    display: none;
}

.bieu-mau-mo-phong-tui-svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.bieu-mau-mo-phong-tui-svg polygon,
.bieu-mau-mo-phong-tui-svg path,
.bieu-mau-mo-phong-tui-svg line {
    vector-effect: non-scaling-stroke;
}

.bieu-mau-mo-phong-tui-mat {
    stroke: rgba(88, 88, 88, 0.58);
    stroke-width: 1;
    stroke-linejoin: round;
    fill-opacity: 1;
}

.bieu-mau-mo-phong-tui-mat.la-truoc {
    fill: var(--tui-giay-mat);
}

.bieu-mau-mo-phong-tui-mat.la-sau {
    fill: var(--tui-giay-mat-sau);
}

.bieu-mau-mo-phong-tui-mat.la-hong {
    fill: var(--tui-giay-hong);
}

.bieu-mau-mo-phong-tui-mat.la-hong-sau {
    fill: var(--tui-giay-hong-toi);
}

.bieu-mau-mo-phong-tui-mat.la-day {
    fill: var(--tui-giay-day);
}

.bieu-mau-mo-phong-tui-nep {
    fill: none;
    stroke: var(--tui-giay-nep);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dieu-khien-joystick {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    display: block;
    width: 50px;
    min-width: 0;
    height: 50px;
    min-height: 0;
    margin: 0;
    padding: 0;
    line-height: 1;
    background:
        radial-gradient(circle at center, #4b5058 0 29%, transparent 30%),
        conic-gradient(
            from 45deg,
            transparent 0 24%,
            rgba(118, 125, 136, 0.55) 24% 25%,
            transparent 25% 49%,
            rgba(118, 125, 136, 0.55) 49% 50%,
            transparent 50% 74%,
            rgba(118, 125, 136, 0.55) 74% 75%,
            transparent 75% 99%,
            rgba(118, 125, 136, 0.55) 99% 100%
        ),
        radial-gradient(circle at center, #3f444c 0 66%, #252a31 100%);
    border: 1px solid rgba(38, 43, 51, 0.66);
    border-radius: 50%;
    box-shadow:
        inset 1px 1px 3px rgba(255, 255, 255, 0.1),
        inset -1px -1px 3px rgba(0, 0, 0, 0.22),
        0 1px 3px rgba(28, 30, 35, 0.14);
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.dieu-khien-joystick:focus-visible {
    outline: 2px solid rgba(77, 91, 113, 0.58);
    outline-offset: 3px;
}

.dieu-khien-joystick.is-active {
    cursor: grabbing;
}

.dieu-khien-joystick-huong {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    border-radius: 50%;
    pointer-events: none;
}

.dieu-khien-joystick-huong > span {
    position: absolute;
    inset: auto;
    display: block;
    width: 7px;
    height: 5px;
    background: #f3f5f7;
    border-radius: 0;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    opacity: 0.68;
}

.dieu-khien-joystick-huong .dieu-khien-joystick-len {
    top: 4px;
    left: calc(50% - 3.5px);
}

.dieu-khien-joystick-huong .dieu-khien-joystick-phai {
    top: calc(50% - 2.5px);
    right: 4px;
    transform: rotate(90deg);
}

.dieu-khien-joystick-huong .dieu-khien-joystick-xuong {
    bottom: 4px;
    left: calc(50% - 3.5px);
    transform: rotate(180deg);
}

.dieu-khien-joystick-huong .dieu-khien-joystick-trai {
    top: calc(50% - 2.5px);
    left: 4px;
    transform: rotate(-90deg);
}

.dieu-khien-joystick-nut {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: block;
    width: 22px;
    height: 22px;
    background: linear-gradient(145deg, #fafbfc 0%, #d9dde2 62%, #bec4cc 100%);
    border: 1px solid rgba(150, 157, 168, 0.58);
    border-radius: 50%;
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, 0.78),
        inset 0 -2px 3px rgba(80, 88, 100, 0.12),
        -1px 2px 4px rgba(42, 48, 58, 0.18);
    transform: translate(calc(-50% + var(--joystick-x, 0px)), calc(-50% + var(--joystick-y, 0px)));
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.dieu-khien-joystick.is-active .dieu-khien-joystick-nut {
    transition: none;
}

.bieu-mau-mo-phong-hop-joystick {
    position: absolute;
    z-index: 4;
    right: auto;
    bottom: 8px;
    left: 23px;
}

@media (max-width: 549px) {
    .bieu-mau-mo-phong-hop {
        gap: 12px;
    }

    .bieu-mau-mo-phong-hop-chu-giai {
        padding: 7px 10px;
        font-size: 11px;
    }

    .bieu-mau-mo-phong-hop-chu-giai-muc {
        gap: 5px;
    }

    .bieu-mau-mo-phong-hop-chu-giai-muc + .bieu-mau-mo-phong-hop-chu-giai-muc {
        margin-left: 10px;
    }

    .bieu-mau-mo-phong-hop-chu-giai-muc i {
        width: 14px;
    }

    .bieu-mau-mo-phong-hop-chu-giai-muc[data-vai-tro="chu-giai-cao"] i {
        height: 14px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .bieu-mau-mo-phong-ty-le-vat-the,
    .bieu-mau-mo-phong-hop-khoi,
    .bieu-mau-mo-phong-hop-mat {
        transition: none;
    }
}
