/* Trang chi tiết SP — ẩn breadcrumb danh mục dài, nút Xem thêm mô tả */
.content-detail-product > .container > .list-unstyled {
    display: none !important;
}

.content-detail-product .product-desc .bg-op {
    text-align: center;
    position: relative;
    padding: 8px 0 4px;
}

.content-detail-product .product-desc .bg-op::after {
    position: absolute;
    content: "";
    height: 48px;
    bottom: 100%;
    left: 0;
    width: 100%;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 70%, #fff 100%);
}

.content-detail-product .product-desc .bg-op.active::after {
    display: none;
}

.content-detail-product .product-desc .bg-op a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 160px;
    max-width: 100%;
    margin: 12px auto 0;
    padding: 10px 22px;
    border: 1px solid var(--orange, #faa61a);
    border-radius: 999px;
    background: #fff;
    color: #243a76;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(36, 58, 118, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.content-detail-product .product-desc .bg-op a.btn:hover {
    background: #fff9ef;
    border-color: #e89510;
    box-shadow: 0 4px 14px rgba(250, 166, 26, 0.18);
}

.content-detail-product .product-desc .bg-op a.btn::before {
    content: "Xem thêm";
}

.content-detail-product .product-desc .bg-op.active a.btn::before {
    content: "Thu gọn";
}

.content-detail-product .product-desc .bg-op a.btn i {
    font-size: 12px;
    color: var(--orange, #faa61a);
    transition: transform 0.2s ease;
}

.content-detail-product .product-desc .bg-op.active a.btn i {
    transform: rotate(180deg);
}

.content-detail-product .product-desc .bg-op a.btn:focus {
    box-shadow: 0 0 0 3px rgba(250, 166, 26, 0.25);
    outline: none;
}

.content-detail-product .nc-expand-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    border: 1px solid #e0e4ec;
    border-radius: 999px;
    background: #f8f9fc;
    color: #243a76;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.content-detail-product .nc-expand-trigger:hover {
    background: #fff;
    border-color: var(--orange, #faa61a);
}

/* Biến thể: style theo loại nhóm (số ngày), không theo thứ tự hàng nth-child */
.select-variant-swatch {
    overflow-anchor: none;
}

.select-variant-swatch input.variant-0 {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.select-variant-swatch .swatch:not([data-is-day-selector="true"]) .custom-dropdown-container {
    display: none !important;
}

.select-variant-swatch .swatch[data-is-day-selector="true"]:not(.using-selectbox) .button-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 16px;
    overflow-x: visible;
    justify-content: stretch;
}

.select-variant-swatch .swatch[data-is-day-selector="true"]:not(.using-selectbox) .swatch-element {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0;
    overflow: visible;
}

.select-variant-swatch .swatch[data-is-day-selector="true"]:not(.using-selectbox) .swatch-select > span {
    justify-content: center !important;
    padding: 10px 8px !important;
    margin-right: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.select-variant-swatch .swatch[data-is-day-selector="true"]:not(.using-selectbox) .swatch-select > span i {
    display: none !important;
}

.select-variant-swatch .swatch[data-is-day-selector="true"].swatch--compact-square:not(.using-selectbox) .swatch-select > span {
    border-radius: 8px !important;
    min-height: 44px;
}

.select-variant-swatch .swatch[data-is-day-selector="true"].swatch--compact-round:not(.using-selectbox) .swatch-element {
    aspect-ratio: 1;
}

.select-variant-swatch .swatch[data-is-day-selector="true"].swatch--compact-round:not(.using-selectbox) .swatch-select > span {
    border-radius: 50% !important;
    min-height: 44px;
    min-width: 44px;
    padding: 8px !important;
}

.select-variant-swatch .swatch.using-selectbox .button-grid {
    display: none !important;
}

.select-variant-swatch .swatch.using-selectbox .custom-dropdown-container {
    display: block !important;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
}

.select-variant-swatch .swatch.using-selectbox .custom-dropdown {
    position: relative;
    width: 100%;
}

.select-variant-swatch .swatch.using-selectbox .dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    font-size: 15px;
}

.select-variant-swatch .swatch.using-selectbox .dropdown-selected:hover,
.select-variant-swatch .swatch.using-selectbox .dropdown-selected.active {
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.select-variant-swatch .swatch.using-selectbox .dropdown-selected.active {
    border-radius: 7px 7px 0 0;
}

.select-variant-swatch .swatch.using-selectbox .selected-text {
    color: #1a202c;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-variant-swatch .swatch.using-selectbox .dropdown-arrow {
    color: #718096;
    font-size: 12px;
    margin-left: 8px;
}

.select-variant-swatch .swatch.using-selectbox .dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 7px 7px;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.select-variant-swatch .swatch.using-selectbox .dropdown-option {
    padding: 10px 12px;
    font-size: 14px;
    color: #2d3748;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

.select-variant-swatch .swatch.using-selectbox .dropdown-option:last-child {
    border-bottom: none;
}

.select-variant-swatch .swatch.using-selectbox .dropdown-option:hover {
    background: #f7fafc;
}

.select-variant-swatch .swatch.using-selectbox .dropdown-option[data-selected="true"] {
    background: rgba(250, 166, 26, 0.12);
    color: var(--orange, #faa61a);
    font-weight: 600;
}

.select-variant-swatch .swatch.using-selectbox .dropdown-option.disabled {
    display: none !important;
}

.select-variant-swatch .swatch.using-selectbox span.selected-text .fa.fa-calendar,
.select-variant-swatch .swatch.using-selectbox ul.dropdown-options .fa.fa-calendar {
    display: none !important;
}

/* Nhóm Check xác nhận tồn tại: luôn hiện; mờ = chưa khớp tổ hợp hiện tại nhưng vẫn bấm được để đổi gói */
.select-variant-swatch .swatch.noremove .swatch-element.disabled,
.select-variant-swatch .swatch.noremove .swatch-element.option-muted,
.select-variant-swatch .swatch[data-is-persist-group="true"] .swatch-element.disabled,
.select-variant-swatch .swatch[data-is-persist-group="true"] .swatch-element.option-muted {
    display: block !important;
    opacity: 0.55;
    pointer-events: auto;
}

.select-variant-swatch .swatch.noremove .swatch-element.disabled label.check_detail,
.select-variant-swatch .swatch.noremove .swatch-element.option-muted label.check_detail,
.select-variant-swatch .swatch[data-is-persist-group="true"] .swatch-element.disabled label.check_detail,
.select-variant-swatch .swatch[data-is-persist-group="true"] .swatch-element.option-muted label.check_detail {
    cursor: pointer;
}
