/* ===== Build PC page ===== */
.build_pc {
    padding: 24px 0 40px;
    background: var(--bg-body, #f4f6f8);
}

.build_configuration {
    margin-bottom: 24px;
    background: #fff;
    padding: 24px;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.build_configuration p.title-page {
    text-align: center;
    margin: 0 0 20px;
    padding: 16px 24px;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    background: linear-gradient(135deg, #e42121 0%, #c41a1a 100%);
    border-radius: 10px;
    box-shadow: none;
    text-shadow: none;
}

.buildpc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.tab-cate-title {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.tab-cate-title li {
    padding: 8px 16px;
    background: #eef2f6;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    margin: 0;
}

.tab-cate-title li:first-child {
    margin-left: 0;
}

.tab-cate-title li.active,
.tab-cate-title li:hover {
    background: #3c7bbd;
    border-color: #3c7bbd;
    color: #fff;
}

.tab-cate-title li span {
    font-size: 13px;
    color: inherit;
    text-transform: uppercase;
    font-weight: 600;
}

.tab-cate-title li.active span {
    color: #fff;
}

.tab-buildpc .refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #3c7bbd;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: none;
    margin: 0;
}

.tab-buildpc .refresh:hover {
    background: #2d6ba8;
}

.tab-buildpc .refresh i {
    color: #fff;
}

.buildpc-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.buildpc-info-card {
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 16px;
}

.buildpc-info-card__title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #3c7bbd;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.warehouse-address {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warehouse-address li label span {
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
    cursor: default;
}

.warehouse-address li label span:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    content: "\f0c8";
    margin-right: 8px;
    color: #94a3b8;
}

.tab-warehouse .text {
    font-size: 13px;
    padding: 12px;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    margin-top: 12px;
    background: #fff;
}

.tab-warehouse .text p {
    margin: 0;
}

.list-drive {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    overflow: hidden;
}

.list-drive li {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid #eef2f6;
}

.list-drive li:last-child {
    border-bottom: 0;
}

.list-drive li:nth-child(even) {
    background: #fafbfc;
}

.list-drive li .drive-name {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    border-right: 1px solid #eef2f6;
}

.drive-checked {
    padding: 10px 16px;
    border-left: none;
}

.drive-checked .open-selection {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: #fff;
    background: #3c7bbd;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: none;
    white-space: nowrap;
}

.drive-checked .open-selection:hover {
    background: #2d6ba8;
}

.open-selection i {
    font-size: 12px;
}

.main-item-drive {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 4px 0;
}

.main-item-drive .d-img {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
}

.d-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-item-drive .d-info {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0;
}

.main-item-drive a {
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
}

.d-info a {
    font-weight: 600;
}

.main-item-drive > p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
}

span.quantity,
span.sum_price,
span.show-popup_select.btn-p-select,
span.delete_select {
    position: static;
}

.d-price,
.sum_price {
    margin: 0;
    padding: 0;
    font-weight: 700;
    color: var(--red, #e42121);
}

.main-item-drive input {
    height: 32px;
    width: 48px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
}

.show-popup_select,
.delete_select {
    font-size: 12px;
    cursor: pointer;
    color: #3c7bbd;
}

.delete_select {
    color: #dc2626;
}

.buildpc-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8edf2;
}

.buildpc-total-box {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 280px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #e42121 0%, #c41a1a 100%);
    border-radius: 10px;
    color: #fff;
}

.buildpc-total-box > span:first-child {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
}

.buildpc-total-box .total_all {
    margin-left: auto;
    font-size: 18px;
    font-weight: 700;
}

.build_pc .list-action {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.build_pc .list-action li {
    margin: 0;
}

.build_pc .list-action li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: #fff;
    border-radius: 8px;
    background: #3c7bbd;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    box-shadow: none;
}

.build_pc .list-action li a:hover {
    background: #2d6ba8;
}

.btn-red {
    background-color: #dc2626 !important;
    color: #fff !important;
    box-shadow: none;
}

section.popup-refresh {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
}

section.popup-refresh.active {
    display: flex;
}

#popup-rebuild_config {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.btn-p-select {
    cursor: pointer;
}

.special-text {
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    color: var(--red);
    padding-left: 10px;
}

/* ===== Modal chọn sản phẩm ===== */
body.buildpc-modal-open {
    overflow: hidden;
}

.modal_popup-buildpc {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
}

.modal_popup-buildpc.active {
    z-index: 100000080;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    overflow: hidden;
}

.popup-buildpc {
    width: min(1120px, 100%);
    max-height: min(88dvh, 900px);
    height: min(88dvh, 900px);
    min-height: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
}

.popup-buildpc__header {
    display: grid;
    grid-template-columns: minmax(160px, auto) 1fr auto;
    grid-template-areas: "text search close";
    align-items: center;
    gap: 10px 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #3c7bbd 0%, #2d6ba8 100%);
    flex-shrink: 0;
}

.popup-buildpc__header-text {
    grid-area: text;
    min-width: 0;
}

.popup-buildpc__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.3;
}

.popup-buildpc__category {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
}

.popup-buildpc__filter-toggle {
    grid-area: filter;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.popup-buildpc__search {
    grid-area: search;
    position: relative;
    min-width: 0;
}

.buildpc-search-form input {
    width: 100%;
    border: 0;
    outline: none;
    font-size: 14px !important;
    border-radius: 999px;
    padding: 10px 40px 10px 38px;
    background: #fff;
    color: #0f172a;
}

.buildpc-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    line-height: 1;
}

.close-input-text {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-input-text.active {
    display: inline-flex;
}

.popup-buildpc__close {
    grid-area: close;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popup-buildpc__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.popup-buildpc__close i {
    font-size: 18px;
}

.popup-buildpc__body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.popup-buildpc__sidebar {
    flex: 0 0 300px;
    width: 300px;
    border-right: 1px solid #e8edf2;
    background: #fff;
    overflow: hidden;
}

.popup-buildpc__sidebar .list-filter {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}

.popup-buildpc__sidebar.left-content-product {
    border: none;
    box-shadow: none;
    height: auto;
    position: relative;
    inset: auto;
    transform: none;
    float: none;
    margin: 0;
}

.modal_popup-buildpc .left-content-product.filter-item-apple-div,
.modal_popup-buildpc .filter-item-apple-div {
    position: static;
    left: auto !important;
}

.popup-buildpc__sidebar .cate-left .title {
    padding: 6px 0;
    border: 1px solid #e8edf2;
    margin: 0 0 10px;
    width: 100%;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    border-radius: 100px;
    color: #475569;
    background: #fff;
}

.popup-buildpc__sidebar .filter-item {
    padding: 0 0 10px;
    border-bottom: 1px solid #eef2f6;
    background: transparent;
}

.popup-buildpc__sidebar .filter-item .title-item {
    border-bottom: 1px solid #eef2f6;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 28px 12px 0;
    cursor: pointer;
    user-select: none;
    position: relative;
    display: block;
    color: #0f172a;
    margin: 0;
}

.popup-buildpc__sidebar .filter-item .title-item span {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

.popup-buildpc__sidebar .filter-item .title-item span i {
    font-size: 14px;
    color: #64748b;
    transition: transform 0.2s ease, color 0.2s ease;
}

.popup-buildpc__sidebar .filter-item.active .title-item span i {
    transform: rotate(180deg);
    color: #3c85c2;
}

.popup-buildpc__sidebar .filter-item:not(.active) .search,
.popup-buildpc__sidebar .filter-item:not(.active) > ul,
.popup-buildpc__sidebar .filter-item:not(.active) > .group-input,
.popup-buildpc__sidebar .filter-item:not(.active) > .container {
    display: none !important;
}

.popup-buildpc__sidebar .filter-item.active .search,
.popup-buildpc__sidebar .filter-item.active > .group-input,
.popup-buildpc__sidebar .filter-item.active > .container {
    display: block;
}

.popup-buildpc__sidebar .filter-item.active > ul {
    display: flex !important;
}

.popup-buildpc__sidebar div.filter-item div.group-input {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border: none;
    margin-top: 8px;
}

.popup-buildpc__sidebar div.filter-item div.group-input input {
    width: 48%;
    height: 36px;
    padding: 0 12px;
    border-radius: 100px;
    border: 1px solid #cbd5e1;
    font-size: 12px !important;
    color: #475569;
    background: #fff;
}

.popup-buildpc__sidebar .filter-price-slider {
    margin-top: 14px;
    padding: 0 4px 6px;
}

.popup-buildpc__sidebar div.filter-item div.search {
    position: relative;
    margin: 6px 0 8px;
}

.popup-buildpc__sidebar div.filter-item div.search input {
    width: 100%;
    padding: 7px 34px 7px 30px;
    border-radius: 8px;
    border: 1px solid #e8edf2;
    font-size: 12px;
    color: #475569;
    background: #f8fafc;
    margin: 0;
}

.popup-buildpc__sidebar div.filter-item div.search input:focus {
    outline: none;
    border-color: #cbd5e1;
    background: #fff;
}

.popup-buildpc__sidebar div.filter-item div.search span:first-child {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #94a3b8;
    pointer-events: none;
}

.popup-buildpc__sidebar div.filter-item div.search .filter-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    font-size: 10px;
}

.popup-buildpc__sidebar div.filter-item div.search input:not(:placeholder-shown) ~ .filter-search-clear,
.popup-buildpc__sidebar div.filter-item div.search.has-value .filter-search-clear {
    display: inline-flex;
}

.popup-buildpc__sidebar .filter-item > ul,
.popup-buildpc__sidebar .filter-item ul {
    list-style: none;
    padding: 6px 0 4px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-left: 4px;
    padding-right: 4px;
}

.popup-buildpc__sidebar .filter-item.noscroll ul {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.popup-buildpc__sidebar .filter-item ul li.hidden {
    display: none !important;
}

.popup-buildpc__sidebar .filter-item ul li {
    width: 100%;
    padding: 2px 0;
}

.popup-buildpc__sidebar .filter-item label {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    position: relative;
    height: 32px;
    margin: 0;
}

.popup-buildpc__sidebar .filter-item label span.name {
    position: absolute;
    height: 32px;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 15px;
}

.popup-buildpc__sidebar .filter-item label a {
    color: #334155;
    text-decoration: none;
    text-transform: capitalize;
    font-size: 14px;
    display: block;
    width: auto;
    cursor: pointer;
}

.popup-buildpc__sidebar .filter-item label a:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    content: "\f0c8";
    margin-right: 6px;
    color: #94a3b8;
}

.popup-buildpc__sidebar .filter-item label a.checked {
    color: #dc2626;
    font-weight: 600;
}

.popup-buildpc__sidebar .filter-item label a.checked:before {
    font-weight: 900;
    content: "\f14a";
    color: #dc2626;
}

/* noUiSlider trong modal buildpc */
.popup-buildpc__sidebar .noUi-horizontal {
    height: 4px;
}

.popup-buildpc__sidebar .noUi-horizontal .noUi-handle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    left: -7px;
    top: -7px;
    background-color: #345DBB;
}

.popup-buildpc__sidebar .noUi-background {
    background: #D6D7D9;
}

.popup-buildpc__sidebar .noUi-connect {
    background: #345DBB;
}

.popup-buildpc__sidebar .noUi-target,
.popup-buildpc__sidebar .noUi-target * {
    box-sizing: border-box;
    touch-action: none;
    user-select: none;
}

.popup-buildpc__sidebar .noUi-target {
    position: relative;
    border-radius: 2px;
}

.popup-buildpc__sidebar .noUi-base {
    width: 100%;
    height: 100%;
    position: relative;
}

.popup-buildpc__sidebar .noUi-origin {
    position: absolute;
    inset: 0;
}

.popup-buildpc__sidebar .noUi-handle {
    position: relative;
    z-index: 1;
    cursor: default;
}

.popup-buildpc__filter-actions--mobile {
    display: none;
}

.popup-buildpc__results {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 16px 16px;
    position: relative;
    overflow: hidden;
}

.buildpc-data-page,
#data-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.buildpc-data-page.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    z-index: 2;
}

.buildpc-data-page.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #e2e8f0;
    border-top-color: #3c7bbd;
    border-radius: 50%;
    animation: buildpc-spin 0.7s linear infinite;
    z-index: 3;
}

@keyframes buildpc-spin {
    to { transform: rotate(360deg); }
}

.sort-paging {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: #fff;
    padding: 12px 0 8px;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 4px;
}

.paging-block {
    width: auto;
}

.paging-block ul {
    margin: 0;
    padding: 0;
}

.popup-buildpc .list-product-select {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}

.popup-buildpc .list-product-select .p-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 4px 12px 0;
    border-bottom: 1px solid #eef2f6;
}

.popup-buildpc .list-product-select .p-item:hover {
    background: #f8fafc;
}

.popup-buildpc .list-product-select .p-img {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    overflow: hidden;
}

.popup-buildpc .list-product-select .p-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.popup-buildpc .list-product-select .p-info {
    flex: 1 1 auto;
    min-width: 0;
}

.popup-buildpc .list-product-select .p-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}

.popup-buildpc .list-product-select .p-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
}

.popup-buildpc .list-product-select .p-meta-row label {
    display: inline-block;
    min-width: 68px;
    color: #94a3b8;
}

.popup-buildpc .list-product-select .p-stock small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.popup-buildpc .list-product-select .p-price {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--red, #e42121);
}

.popup-buildpc .list-product-select .btn-select-product {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #3c7bbd;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.popup-buildpc .list-product-select .btn-select-product:hover {
    background: #2d6ba8;
}

.buildpc-empty-result {
    text-align: center;
    padding: 48px 20px;
    color: #64748b;
}

.buildpc-empty-result i {
    font-size: 36px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.buildpc-empty-result p {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

/* Pagination trong modal */
.popup-buildpc .pagination .page-link {
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
    .build_configuration {
        padding: 16px;
    }

    .buildpc-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .modal_popup-buildpc.active {
        padding: 0;
        align-items: stretch;
    }

    .popup-buildpc {
        width: 100%;
        max-height: 100dvh;
        height: 100dvh;
        min-height: 0;
        border-radius: 0;
    }

    .popup-buildpc__header {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "text close"
            "search search"
            "filter filter";
    }

    .popup-buildpc__filter-toggle {
        display: inline-flex;
        width: fit-content;
    }

    .popup-buildpc__body {
        position: relative;
    }

    .popup-buildpc__sidebar {
        position: absolute;
        inset: 0;
        width: 100%;
        z-index: 10;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        border-right: none;
    }

    .popup-buildpc__sidebar.toggle-filer-popup.active {
        transform: translateX(0);
    }

    .popup-buildpc__filter-actions--mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 0 0;
    }

    .list-drive li {
        grid-template-columns: 1fr;
    }

    .list-drive li .drive-name {
        border-right: none;
        border-bottom: 1px solid #eef2f6;
    }

    .buildpc-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .buildpc-total-box {
        width: 100%;
        min-width: 0;
    }

    .build_pc .list-action {
        justify-content: center;
    }
}

@media (max-width: 499px) {
    .drive-checked .open-selection {
        padding: 8px 12px;
        font-size: 12px;
    }

    .main-item-drive {
        flex-direction: column;
        align-items: flex-start;
    }
}
