/* VPS Modern Onestep Template - Light Theme */

:root {
    --bg-primary: #f7fafc;
    --bg-secondary: #ffffff;
    --bg-hover: #f3f4f6;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent-blue: #3182ce;
    --accent-blue-hover: #2c5282;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --success-color: #48bb78;
    --error-color: #f56565;
}

/* Main Container */
.vps-onestep-orderpage {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.vps-onestep-container {
    display: block;
    width: 100%;
}

.product-selection-section {
    margin-bottom: 2rem;
    background: transparent;
    /* Remove background */
    border-radius: 0;
    padding: 0;
    /* Remove padding */
    box-shadow: none;
    /* Remove shadow */
}

.section-header-wrapper {
    padding: 0 0 1.5rem 0;
    /* Add padding to header only if needed, or keep 0 */
    margin-bottom: 1rem;
}

/* Order Summary Sidebar - Works with Bootstrap col-lg-6 col-xl-4 */
.order-summary-sidebar {
    position: sticky;
    top: 2rem;
}

/* Section Titles */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Plan Info Header */
.plan-info-header {
    margin-bottom: 1.5rem;
}

.plan-info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.875rem;
}

.plan-info-link:hover {
    color: var(--accent-blue-hover);
}

/* Service Tabs */
.service-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-button:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tab-button.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

/* Tab Content */
.tab-content {
    display: none;
}

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

.tab-description {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Plan Type Navigation Tabs */
.plan-type-navigation {
    margin-bottom: 2rem;
    width: 100%;
}

.plan-type-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
}

.plan-type-tab {
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.plan-type-tab:hover {
    border-color: #3991F1;
    color: #3991F1;
    background: #f8f9ff;
    text-decoration: none;
}

.plan-type-tab.active {
    background: #3991F1;
    border-color: #3991F1;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(57, 145, 241, 0.3);
}


/* Pricing Section - Special styling for pricing table card */
.pricing-section {
    background: #FFFFFF;
    border: 1px solid #f0f2f5;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.pricing-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Category description styling */
.category-description {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 6px 6px 0 0;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
}

.category-description p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-section .section-header-wrapper {
    padding: 1.5rem 1.5rem 0 1.5rem;
    margin-bottom: 1rem;
}

/* Pricing Table */
/* Pricing Table */
.pricing-table-wrapper {
    overflow-x: auto;
    width: 100%;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
    border: 1px solid #e9ecef;
    /* Table border */
    border-radius: 4px;
    overflow: hidden;
}

.pricing-table thead th:first-child {
    border-top-left-radius: 4px;
}

.pricing-table thead th:last-child {
    border-top-right-radius: 4px;
}

.pricing-table thead th {
    padding: 0.75rem 0.5rem !important;
    text-align: left !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    /* White text */
    border-bottom: 2px solid #2c7cd1 !important;
    background-color: #3991F1 !important;
    /* Blue background */
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    font-family: "Rubik", Arial, sans-serif !important;
    text-transform: uppercase !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-table thead th:last-child {
    border-right: none;
}

.pricing-table th.col-plan {
    width: 22%;
    padding-left: 1rem !important;
}

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

.pricing-table th.col-price-header {
    width: 18%;
    text-align: right !important;
    padding-right: 1rem !important;
}

.pricing-table th .cycle-suffix {
    font-weight: 400;
    color: #fff;
    font-size: 0.85rem;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.2s ease;
    background: #FFFFFF;
    position: relative;
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table tbody tr:hover:not(.disabled):not(.selected) {
    background: #f8f9fa;
    cursor: pointer;
}

.pricing-table tbody tr.selected {
    background: #e3f2fd;
    /* Light blue background for selected row */
    border-left: 4px solid #0198ef;
    /* Blue border left */
    position: relative;
}

.pricing-table tbody tr.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pricing-table td {
    padding: 0.85rem 0.5rem;
    color: #373A3C;
    font-size: 0.85rem;
    font-family: "Rubik", Arial, sans-serif;
    position: relative;
    border-top: 1px solid #f0f2f5;
    border-right: 1px solid #f0f2f5;
    /* Add vertical borders */
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pricing-table td:last-child {
    border-right: none;
    /* Remove border from last column */
}

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

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

.pricing-table td.col-plan .plan-name {
    color: #212529;
    font-weight: 600;
    /* Slightly reduced weight */
    font-size: 0.9rem;
    /* Reduced font size */
}

.pricing-table td.col-spec {
    font-weight: 400;
    color: #373A3C;
    font-size: 0.8rem;
    /* Smaller font for specs */
}

.pricing-table td.col-price {
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
    /* Reduced font size */
    color: #212529;
    padding-right: 1rem;
}

.pricing-table tbody tr:hover:not(.disabled):not(.selected) td.col-price {
    color: #2076D4;
}

.pricing-table tbody tr.selected td.col-price {
    color: #0c5eb8;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(12, 94, 184, 0.1);
}

.plan-radio-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.plan-radio-label:hover {
    color: #3891F2;
}

.plan-radio {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #cbd5e0 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    background: white !important;
}

.plan-radio:checked {
    border-color: #3891F2 !important;
    background: #3891F2 !important;
    box-shadow: inset 0 0 0 3px white !important;
}

.plan-radio:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(56, 145, 242, 0.2) !important;
}

.plan-name {
    font-weight: 600;
    color: #373A3C;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.pricing-table tbody tr:hover:not(.disabled) .plan-name {
    color: #3891F2;
}

.pricing-table tbody tr.selected .plan-name {
    color: #0c5eb8;
    font-weight: 700;
}

/* Section Header & Tabs */
.section-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #373A3C;
    margin: 0;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    background: #f1f3f5;
    padding: 0.25rem;
    border-radius: 8px;
}

.category-tab {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-tab:hover {
    color: #373A3C;
    text-decoration: none;
}

.category-tab.active {
    background: #FFFFFF;
    color: #3891F2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Configuration Sections */
.config-section,
.orderpage-configuration .row>.col-12 {
    background: #FFFFFF;
    border: 1px solid #f0f2f5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    min-height: auto !important;
    overflow: visible !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.config-section:hover,
.orderpage-configuration .row>.col-12:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Fix inputs and selects within config sections */
.config-section input,
.config-section select,
.config-section textarea,
.orderpage-configuration input:not([type="checkbox"]):not([type="radio"]),
.orderpage-configuration select,
.orderpage-configuration textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.config-section .form-control,
.orderpage-configuration .form-control {
    width: 100% !important;
    box-sizing: border-box !important;
}

.orderpage-configuration h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #373A3C;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.cart-products-scount {
    background: #3891F2;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.75rem;
    padding: 0 !important;
}

/* Form Controls */
.form-control {
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #495057;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #3891F2;
    box-shadow: 0 0 0 3px rgba(56, 145, 242, 0.15);
}

/* OS & Addon Cards */
.os-selector,
.addon-selector {
    border: 2px solid #f0f2f5;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

.os-selector:hover,
.addon-selector:hover {
    border-color: #cbd5e0;
    background: #f8f9fa;
}

.os-selector.selected,
.addon-selector.selected {
    border-color: #3891F2;
    background: #f0f7ff;
}

/* Configuration Sections */
.config-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.field-description {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Addons Grid */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.addon-card {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.addon-card:has(.addon-checkbox:checked) {
    border-color: var(--accent-blue);
    background: #ebf8ff;
}

.orderpage-configuration label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-weight: 400;
    color: #373A3C;
}

/* Fix for checkboxes and radio buttons in forms */
.orderpage-configuration input[type="checkbox"],
.orderpage-configuration input[type="radio"],
.config-section input[type="checkbox"],
.config-section input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3891F2;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Prevent label nesting issues */
.orderpage-configuration label>input {
    margin-right: 0;
}

.orderpage-configuration .form-check {
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.orderpage-configuration .form-check-input {
    float: none;
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Card styling for addons */
.orderpage-configuration .card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 1rem;
    max-width: 100%;
    box-sizing: border-box;
}

.orderpage-configuration .card .card-body {
    padding: 1rem;
}

.orderpage-configuration .card .form-control,
.orderpage-configuration .card select {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.orderpage-configuration .card .items {
    max-width: 100%;
}

.addon-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.addon-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.addon-label {
    flex: 1;
    cursor: pointer;
}

.addon-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.addon-body {
    padding-left: 2rem;
}

.addon-price {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 1.125rem;
}

.addon-cycle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.addon-cycle-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 0.5rem;
}

.addon-description {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Subproduct Section - Same styling as addons */
.subproducts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.subproduct-card {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.subproduct-card:has(input[type="checkbox"]:checked) {
    border-color: var(--accent-blue);
    background: #ebf8ff;
}

.subproduct-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.subproduct-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.subproduct-label {
    flex: 1;
    cursor: pointer;
}

.subproduct-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.subproduct-body {
    padding-left: 2rem;
}

.subproduct-price {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 1.125rem;
}

.subproduct-cycle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.subproduct-description {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Coupon Section */
.coupon-input-group {
    display: flex;
    gap: 0.5rem;
}

.btn-apply-coupon {
    padding: 0.75rem 1.5rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.btn-apply-coupon:hover {
    background: #2076D4;
}

/* Cart Summary Redesign */
.vps-cart-summary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    position: sticky;
    top: 20px;
    height: auto;
}

.summary-header {
    display: block !important;
    visibility: visible !important;
}

.summary-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #3891F2 !important;
    display: block !important;
}

.summary-items table td {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    vertical-align: top;
}

.summary-items table td.text-muted {
    color: #6c757d !important;
}

.summary-items hr {
    margin: 0.5rem 0;
    border-top: 1px solid #e9ecef;
}

/* Promo Code */
.promo-form .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    height: 38px;
    margin-bottom: 0 !important;
}

.promo-form .btn-outline-primary {
    border: 1px solid #3891F2;
    color: #3891F2;
    background: transparent;
    border-radius: 6px;
    padding: 0 1.25rem;
    height: 38px;
    line-height: 36px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-form .btn-outline-primary:hover {
    background: #3891F2;
    color: #fff;
}

/* Totals */
.summary-totals .text-muted {
    font-size: 0.95rem;
}

.summary-totals .h2 {
    font-size: 1.75rem;
    color: #212529;
}

/* Order Button */
.orderpage-summary_submit .btn-primary {
    background: #3891F2;
    border-color: #3891F2;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.orderpage-summary_submit .btn-primary:hover {
    background: #2076D4;
    border-color: #2076D4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 145, 242, 0.25);
}

.coupon-applied {
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: 6px;
}

.coupon-code {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.coupon-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-coupon {
    color: var(--error-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.remove-coupon:hover {
    text-decoration: underline;
}

/* Payment Section */
.payment-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-gateways {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-gateway-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-gateway-option:has(input:checked) {
    border-color: var(--accent-blue);
    background: #ebf8ff;
}

.payment-gateway-option input[type="radio"] {
    width: 18px;
    height: 18px;
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 2rem;
}

/* Submit Button */
.btn-submit-order {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(49, 130, 206, 0.3);
}

/* Cart Summary Sidebar */

.vps-cart-summary {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 2rem;
    z-index: 100;
}

.vps-cart-summary .summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.vps-cart-summary .summary-details table {
    width: 100%;
    font-size: 0.9rem;
}

.vps-cart-summary .summary-details td {
    padding: 0.5rem 0;
    color: #4a5568;
}

.vps-cart-summary .summary-details td:last-child {
    text-align: right;
    font-weight: 600;
    color: #2d3748;
}

.vps-cart-summary .summary-details strong {
    color: #1a202c;
}

.vps-cart-summary hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1rem 0;
}

.vps-cart-summary .summary-content {
    margin-top: 2rem;
}

/* Billing Cycle Selector */
.vps-cart-summary .form-group {
    margin-bottom: 1.5rem;
}

.vps-cart-summary .form-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

/* Promo Code Form */
.vps-cart-summary .promo-form {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0 1.5rem 0;
}

.vps-cart-summary .promo-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.vps-cart-summary .promo-form button {
    padding: 0.75rem 1.5rem;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.vps-cart-summary .promo-form button:hover {
    background: #38a169;
}

.vps-cart-summary .cupon-code {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    padding: 0.75rem;
    margin: 1rem 0 1.5rem 0;
    font-size: 0.9rem;
    color: #22543d;
}

/* Total Recurring */
.vps-cart-summary .total-recurring {
    margin: 2rem 0 1.5rem 0;
    padding: 1.5rem 0 1rem 0;
    border-top: 2px solid #e2e8f0;
}

.vps-cart-summary .total-recurring h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0 0 0.75rem 0;
}

.vps-cart-summary .total-recurring>div {
    margin-top: 0.5rem;
}

/* Total Today */
.vps-cart-summary .total-today {
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vps-cart-summary .total-today h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.vps-cart-summary .total-today .total-price {
    font-size: 2rem;
    font-weight: 700;
    color: #3182ce;
}

/* Form Controls */
.vps-cart-summary .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
    height: auto;
}

.vps-cart-summary .btn-primary {
    background: #3182ce;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.vps-cart-summary .btn-primary:hover {
    background: #2c5aa0;
}

/* Empty Cart Message */
.vps-cart-summary .empty-cart-message {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #718096;
    background: #f7fafc;
    border-radius: 8px;
    margin: 1rem 0;
}

.vps-cart-summary .empty-cart-message p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ========================================
   Cart Summary - New Design
   ======================================== */

/* Variables for Cart Summary */
:root {
    --cart-primary: #2180A1;
    --cart-button: #0F1F68;
    --cart-button-hover: #0D1850;
    --cart-success: #22C55E;
    --cart-text: #1F2937;
    --cart-text-secondary: #6B7280;
    --cart-border: #E5E7EB;
    --cart-bg-light: #F9FAFB;
}

/* Main Container */
.vps-cart-summary {
    background: white;
    border: 1px solid var(--cart-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: sticky;
    top: 20px;
    height: auto;
}

/* Header */
.cart-summary-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--cart-border);
}

.cart-summary-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cart-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Body */
.cart-summary-body {
    padding: 1.5rem;
}

/* Package Info */
.package-info-section {
    margin-bottom: 1.5rem;
}

.package-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cart-text);
    margin-bottom: 0.75rem;
}

.package-spec {
    font-size: 0.8125rem;
    color: var(--cart-text-secondary);
    padding: 0.5rem 0;
}

.package-spec:first-child {
    padding-top: 0;
}

/* Divider */
.cart-divider {
    height: 1px;
    background: var(--cart-border);
    margin: 1.5rem 0;
}

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

/* Price Rows */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: var(--cart-text);
}

.price-row-label {
    color: var(--cart-text-secondary);
    font-weight: 500;
}

.price-row-discount {
    color: var(--cart-success);
    font-weight: 600;
}

.price-row-total {
    padding: 1rem 0;
    border-top: 1px solid var(--cart-border);
    border-bottom: 1px solid var(--cart-border);
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.price-value {
    text-align: right;
    font-weight: 600;
}

/* Addon specific styles */
.addon-row {
    border-left: 3px solid var(--primary-color, #667eea);
    padding-left: 0.75rem;
    margin-left: 0.25rem;
}

.addon-qty {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color, #667eea);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.addon-cycle {
    font-size: 0.75rem;
    color: var(--cart-text-secondary);
    font-weight: 400;
    margin-left: 0.25rem;
}

.price-value-right {
    text-align: right;
    font-weight: 600;
}

/* Billing Cycle Section */
.billing-cycle-section {
    margin-bottom: 1.25rem;
}

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

.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);
}