.billing-cycle-select-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cart-border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--cart-text);
    background: white;
    cursor: pointer;
}

.billing-cycle-select-wrapper select:hover {
    border-color: var(--cart-primary);
}

.billing-cycle-select-wrapper select:focus {
    outline: none;
    border-color: var(--cart-primary);
    box-shadow: 0 0 0 3px rgba(33, 128, 161, 0.1);
}

/* Promo Section - New Design */
.promo-section-new {
    background: rgba(33, 128, 161, 0.05);
    border: 1px solid rgba(33, 128, 161, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.promo-label-new {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cart-text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-icon {
    font-size: 1rem;
}

.promo-form-new {
    margin-bottom: 0.75rem;
}

.promo-input-group-new {
    display: flex;
    gap: 0.5rem;
}

.promo-input-new {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cart-border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--cart-text);
    background: white;
}

.promo-input-new::placeholder {
    color: #9CA3AF;
}

.promo-input-new:focus {
    outline: none;
    border-color: var(--cart-primary);
    box-shadow: 0 0 0 3px rgba(33, 128, 161, 0.1);
}

.btn-apply-new {
    padding: 0.75rem 1.25rem;
    background: var(--cart-button);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-apply-new:hover {
    background: var(--cart-button-hover);
    box-shadow: 0 2px 8px rgba(15, 31, 104, 0.2);
}

.btn-apply-new:active {
    transform: scale(0.98);
}

/* Promo Status */
.promo-status-new {
    font-size: 0.8125rem;
    padding: 0.5rem 0;
    display: none;
}

.promo-status-success {
    color: var(--cart-success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-status-icon {
    font-size: 1rem;
}

/* Price Breakdown Section */
.price-breakdown-section {
    margin-bottom: 1.5rem;
}

/* Final Price Section */
.final-price-section {
    text-align: center;
    padding: 1.25rem 0;
}

.final-price-label {
    font-size: 0.8125rem;
    color: var(--cart-text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.final-price-amount {
    color: var(--cart-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Footer */
.cart-summary-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--cart-border);
    background: var(--cart-bg-light);
}

.btn-order-new {
    width: 100%;
    padding: 1rem;
    background: var(--cart-button);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-order-new:hover {
    background: var(--cart-button-hover);
    box-shadow: 0 4px 12px rgba(15, 31, 104, 0.3);
}

.btn-order-new:active {
    transform: scale(0.99);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-summary-header,
    .cart-summary-body,
    .cart-summary-footer {
        padding: 1rem;
    }

    .promo-input-group-new {
        flex-direction: column;
    }

    .btn-apply-new {
        width: 100%;
    }

    .final-price-amount {
        font-size: 1.75rem;
    }

    .cart-summary-title {
        font-size: 1rem;
    }
}


/* Responsive */
@media (max-width: 1024px) {
    .configuration-section {
        grid-template-columns: 1fr;
    }

    .order-summary-sidebar {
        position: static;
        order: -1;
        margin-bottom: 2rem;
    }

    .service-tabs {
        overflow-x: scroll;
    }

    .addons-grid {
        grid-template-columns: 1fr;
    }

    /* Tablet: Slightly reduce spacing */
    .pricing-table th {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
    }

    .pricing-table td {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
    }

    .pricing-table td.col-plan {
        padding-left: 1rem;
    }

    .pricing-table tbody tr.selected td.col-plan {
        padding-left: calc(1rem - 4px);
    }

    .pricing-table td.col-price {
        font-size: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .vps-onestep-orderpage {
        padding: 1rem 0.5rem;
    }

    .config-section {
        padding: 1rem;
    }

    /* Pricing table wrapper for horizontal scroll */
    .pricing-section .card {
        overflow: visible;
    }

    .pricing-table-wrapper {
        width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        position: relative;
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    /* Scroll indicators */
    .pricing-table-wrapper::before,
    .pricing-table-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        pointer-events: none;
        z-index: 2;
    }

    .pricing-table-wrapper::before {
        left: 0;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent);
    }

    .pricing-table-wrapper::after {
        right: 0;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
    }

    /* Ensure table doesn't collapse */
    .pricing-table {
        min-width: 800px;
        margin-bottom: 0.5rem;
    }

    /* Show scroll hint */
    .pricing-section::after {
        content: '← Vuốt để xem thêm →';
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #6c757d;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    /* Adjust remaining column widths for mobile */
    .pricing-table th.col-plan {
        width: 30%;
    }

    .pricing-table th.col-spec {
        width: 18%;
    }

    .pricing-table th.col-price-header {
        width: 25%;
    }

    .pricing-table th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .pricing-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .pricing-table td.col-plan {
        padding-left: 0.75rem;
    }

    .pricing-table tbody tr.selected td.col-plan {
        padding-left: calc(0.75rem - 4px);
    }

    .pricing-table td.col-price {
        font-size: 0.95rem;
        padding-right: 0.75rem;
    }

    .pricing-table tbody tr.selected td.col-price {
        font-size: 1rem;
    }

    .plan-name {
        font-size: 0.85rem;
    }

    .plan-radio {
        width: 16px;
        height: 16px;
    }

    .plan-radio-label {
        gap: 0.5rem;
    }
}

@media (min-width: 1025px) {

    /* Desktop: Increased spacing between columns */
    .pricing-table th {
        padding: 1.25rem 1.5rem;
    }

    .pricing-table td {
        padding: 1.25rem 1.5rem;
    }

    .pricing-table td.col-plan {
        padding-left: 2rem;
    }

    .pricing-table tbody tr.selected td.col-plan {
        padding-left: calc(2rem - 4px);
    }

    .pricing-table td.col-price {
        padding-right: 2rem;
    }
}

/* OS Selector - New Design with Tabs */
.os-selector-container {
    margin: 1.5rem 0;
}

.os-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.os-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    bottom: -2px;
}

.os-tab:hover {
    color: #3991F1;
    background: #f8f9fa;
}

.os-tab.active {
    color: white;
    background: #3991F1;
    border-bottom-color: #3991F1;
}

.os-tab-content {
    display: none;
}

.os-tab-content.active {
    display: block;
}

.os-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.os-card-new {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    position: relative;
}

.os-card-new:hover {
    border-color: #3991F1;
    box-shadow: 0 2px 8px rgba(57, 145, 241, 0.15);
}

.os-card-new.selected {
    border-color: #3991F1;
    background: #f0f7ff;
    box-shadow: 0 2px 8px rgba(57, 145, 241, 0.2);
}

.os-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
}

.os-card-header input[type="radio"] {
    /* Reset default appearance - with !important to override HostBill */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    /* Size and spacing */
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 0 0.75rem 0 0 !important;
    padding: 0 !important;
    flex-shrink: 0;

    /* Border and background */
    border: 2px solid #dee2e6 !important;
    border-radius: 50% !important;
    background: white !important;
    background-color: white !important;
    background-image: none !important;

    /* Remove any box-shadow from default state */
    box-shadow: none !important;

    /* Cursor and transition */
    cursor: pointer !important;
    transition: all 0.2s ease !important;

    /* Positioning */
    position: relative !important;
    vertical-align: middle !important;

    /* Ensure no floating */
    float: none !important;
}

.os-card-header input[type="radio"]:hover {
    border-color: #3991F1 !important;
    background: white !important;
}

.os-card-header input[type="radio"]:checked {
    border-color: #3991F1 !important;
    background: #3991F1 !important;
    background-color: #3991F1 !important;
    box-shadow: 0 0 0 2px rgba(57, 145, 241, 0.2) !important;
}

.os-card-header input[type="radio"]:checked::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: white !important;
    background-color: white !important;
}

.os-card-header input[type="radio"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(57, 145, 241, 0.25) !important;
}

.os-card-header input[type="radio"]:focus:checked {
    box-shadow: 0 0 0 2px rgba(57, 145, 241, 0.2), 0 0 0 3px rgba(57, 145, 241, 0.25) !important;
}

.os-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}

.os-version-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    background: white;
}

.os-version-select:focus {
    border-color: #3991F1;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(57, 145, 241, 0.25);
}

.os-price {
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
}

.os-price.price-free {
    color: white;
    background: #3991F1;
}

.os-price.price-paid {
    color: white;
    background: #FF620F;
}

/* Responsive */
@media (max-width: 768px) {
    .os-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .os-card-new {
        padding: 1rem;
    }

    .os-tab {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }
}
/* Promo Suggestions - Chips */
.promo-suggestions {
    margin-top: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
}

.promo-suggestions-label {
    color: var(--cart-text-secondary);
    margin-right: 0.25rem;
}

.promo-chip {
    border: 1px dashed var(--cart-primary);
    background: white;
    color: var(--cart-primary);
    border-radius: 999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.promo-chip:hover {
    background: rgba(33, 128, 161, 0.1);
    border-color: var(--cart-primary);
}

.promo-chip:active {
    transform: scale(0.95);
}
