.main-content {
    bottom: 0;
    left: 0;
    overflow: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

.btn-submit {
    background: linear-gradient(163deg, #8d4df3 0%, #0120d4 98.99%);
    border: none;
}

.btn-submit:hover {
    color: #fff;
    opacity: .8;
}

.btn-submit:disabled {
    border: none;
}

/* end header */

.shop--content {
    display: flex;
    background-color: #FFFFFF;
    padding: 24px 16px;
    opacity: 1;
    border-radius: 8px;

}

.product-variant {
    background-color: #FFFFFF;
    padding: 24px 16px;
    gap: 24px;
    opacity: 1;
    border-radius: 8px;
}


.shop--content-item-img,
.shop--content--image {
    aspect-ratio: calc(1 / 1);
    position: relative;
    width: 100%;
}

.shop--content--image img {
    cursor: pointer;
    height: 100%; /* Giới hạn chiều rộng tối đa của ảnh là 100% của thẻ cha */
    left: 0; /* Canh chỉnh ảnh ở bên trái */
    object-fit: fill; /* Đảm bảo ảnh không bị bể */
    position: absolute;
    top: 0; /* Canh chỉnh ảnh ở trên cùng */
    width: 100%;
}

.ipt-file {
    display: none;
    max-width: 190px;
    overflow: hidden;
}

.label-file {
    align-items: center;
    border: 2px dashed #ccc;
    color: #404040;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.label-file i {
    font-size: 48px;
}

.label-file p {
    margin-top: 10px;
}

.preview-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.preview-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}


.ipt-error {
    color: red;
    display: block;
    font-size: 14px;
    font-weight: 400;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.btn-upload {
    border: none;
    background: none;
}

.btn-add-attribute {
    border: none;
    background: none;
}


.label-file {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* icon mặc định */
.upload-placeholder {
    text-align: center;
}

/* ảnh preview thay icon */
.main-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}


.upload-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Upload box bên trái */
.shop--content--image {
    min-width: 140px;
}

/* Preview bên phải */
.preview-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 260px;
}

/* Thumbnail */
.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nút xoá */
.preview-item .btn-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
}


.variant-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.variant-header {
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 8px;
}

.variant-attributes .badge {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 20px;
}

.variant-media {
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px;
}

.variant-media-list .uploaded_photo {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.variant-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.variant-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280; /* xám nhẹ */
}

.variant-input {
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
}

.variant-input::placeholder {
    color: #9ca3af;
}

.variant-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}


.variant-attribute-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.variant-attribute-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 999px;
    padding: 6px 10px;
}

.variant-attribute-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.variant-attribute-select {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 4px 12px;
    font-size: 13px;
    min-width: 150px;
}

.variant-attribute-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, .2);
}

.action-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 24px;
}

.action-footer .btn {
    min-width: 120px;
    font-weight: 500;
}


.loader {
    --_g: no-repeat radial-gradient(circle closest-side, #fff 90%, #0000);
    animation: l3 1s infinite linear;
    aspect-ratio: 2;
    background: var(--_g) 0% 50%,
    var(--_g) 50% 50%,
    var(--_g) 100% 50%;
    background-size: calc(100% / 3) 50%;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
}

@keyframes l3 {
    20% {
        background-position: 0% 0%, 50% 50%, 100% 50%
    }
    40% {
        background-position: 0% 100%, 50% 0%, 100% 50%
    }
    60% {
        background-position: 0% 50%, 50% 100%, 100% 0%
    }
    80% {
        background-position: 0% 50%, 50% 50%, 100% 100%
    }
}

.ck-powered-by {
    display: none;
}

.ck-editor__editable_inline {
    max-height: 380px;
    overflow: auto;
}

.ck-editor__editable_inline li {
    list-style: unset;
}


/*payment*/
.price-option-container.active {
    border: 2px solid rgb(40 72 240 / 1) !important;
}

.price-option {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.vietqr-image-container.hide {
    display: none;
}

.vietqr-image-container {
    display: flex;
    justify-content: center;
}

.vietqr-image {
    display: none;
    margin: 0;
    width: 50%;
    object-fit: contain;
}

.vietqr-image-loading {
    animation: spin78236 calc(var(--uib-speed) * 2.5) infinite linear;
    --uib-color: #5D3FD3;
    height: var(--uib-size);
    --uib-size: 35px;
    --uib-speed: 0.8s;
    width: var(--uib-size);
    margin: 20px auto;
}

.vietqr-image-loading__dot {
    height: 100%;
    position: absolute;
    width: 30%;
}

.vietqr-image-loading__dot:after {
    background-color: var(--uib-color);
    border-radius: 50%;
    content: '';
    height: 0;
    padding-bottom: 100%;
    position: absolute;
    width: 100%;
}

.vietqr-image-loading__dot:nth-child(1) {
    bottom: 5%;
    left: 0;
    transform: rotate(60deg);
    transform-origin: 50% 85%;
}

.vietqr-image-loading__dot:nth-child(1)::after {
    animation: wobble1 var(--uib-speed) infinite ease-in-out;
    animation-delay: calc(var(--uib-speed) * -0.3);
    bottom: 0;
    left: 0;
}

.vietqr-image-loading__dot:nth-child(2) {
    bottom: 5%;
    right: 0;
    transform: rotate(-60deg);
    transform-origin: 50% 85%;
}

.vietqr-image-loading__dot:nth-child(2)::after {
    animation: wobble1 var(--uib-speed) infinite calc(var(--uib-speed) * -0.15) ease-in-out;
    bottom: 0;
    left: 0;
}

.vietqr-image-loading__dot:nth-child(3) {
    bottom: -5%;
    left: 0;
    transform: translateX(116.666%);
}

.vietqr-image-loading__dot:nth-child(3)::after {
    animation: wobble2 var(--uib-speed) infinite ease-in-out;
    left: 0;
    top: 0;
}

@keyframes spin78236 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes wobble1 {
    0%,
    100% {
        transform: translateY(0%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-66%) scale(0.65);
        opacity: 0.8;
    }
}

@keyframes wobble2 {
    0%,
    100% {
        transform: translateY(0%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(66%) scale(0.65);
        opacity: 0.8;
    }
}

/*voucher*/


.preview-discount-code-item {
    cursor: pointer;
}

.preview-discount-code-item-content {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 16px 4px;
    white-space: nowrap;
    border-radius: 80000px;
    border: 1px solid rgb(224, 224, 224);
}

.preview-discount-code-item-content:hover {
    background-color: rgb(224, 224, 224);
}

.preview-discount-code-item-content.active {
    background-color: rgb(224, 224, 224);
}

.preview-discount-code-item-code {
    color: rgb(28, 28, 28);
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 8px;
    padding-right: 8px;
}

.preview-discount-code-item-close {
    cursor: pointer;
    margin-right: 4px;
    margin-left: -4px;
}

.preview-discount-code-item-close:hover {
    opacity: 0.6;
}

.preview-discount-code-item-percent {
    color: rgb(28, 28, 28);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 8px;
    padding-right: 8px;
}

.select2-selection__search input {
    height: 28px;
    line-height: 28px;
}


/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* CSS rules for xs */
    .main-content {
        bottom: 65px;
    }

    .modal-dialog {
        min-width: 100%;
        padding: 10px;
    }

}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* CSS rules for sm */
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* CSS rules for md */
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* CSS rules for lg */
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    /* CSS rules for xl */
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    /* CSS rules for xxl */
}


/*.select2-container--default .select2-selection--multiple {*/
/*    padding-bottom: 5px !important;*/
/*}*/

.select2-container--default.select2-container--disabled .select2-selection--single {
    height: 35px;
}
