/* Cart Page Premium CSS - Dserver Redesign */

/* Stepper / Breadcrumbs Progress Indicator */
.cart-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    font-weight: 700;
}

.cart-stepper li {
    display: flex;
    align-items: center;
    color: #b0b5bd;
    font-size: 14px;
    gap: 8px;
}

.cart-stepper li.active {
    color: #0d6efd;
}

.cart-stepper li .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #eef2f5;
    font-size: 11px;
    font-weight: 800;
}

.cart-stepper li.active .step-number {
    background-color: #0d6efd;
    color: #fff;
}

.cart-stepper li .step-arrow {
    margin: 0 15px;
    color: #d1d5db;
    font-weight: normal;
}

/* Page Card Common Layouts */
.rounded-4 {
    border-radius: 1rem !important;
}

.fw-extrabold {
    font-weight: 800 !important;
}

.plan-card {
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    background: #fff;
}

.plan-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.spec-icon-box {
    width: 32px;
    height: 32px;
    background-color: #f8fafc;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}

/* Billing Cycle Cards Grid */
.billing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.billing-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.billing-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.billing-card.active {
    border-color: #0d6efd;
    background-color: #f4f8ff;
}

.billing-card .check-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.billing-card.active .check-badge {
    opacity: 1;
    transform: scale(1);
}

.billing-card .cycle-name {
    font-weight: 800;
    font-size: 13px;
    color: #475569;
}

.billing-card.active .cycle-name {
    color: #0d6efd;
}

.billing-card .cycle-price {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 8px 0 2px 0;
}

.billing-card .cycle-monthly {
    font-size: 11px;
    color: #64748b;
}

.billing-card .savings-badge {
    display: inline-block;
    background-color: #d1e7dd;
    color: #0f5132;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 8px;
}

/* Configurable Options dropdowns */
.lbl-txt-config {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.form-select-config, .form-control-config {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-select-config:focus, .form-control-config:focus {
    background-color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Optional Addon Cards */
.addon-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    transition: all 0.3s ease;
}

.addon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.addon-card.active {
    border-color: #0d6efd;
    background-color: #fafcff;
}

.addon-icon-container {
    width: 48px;
    height: 48px;
    background-color: #eef2f5;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 20px;
}

.addon-card.active .addon-icon-container {
    background-color: #0d6efd;
    color: #fff;
}

/* Sticky sidebar calculations wrapper */
.summary-sticky {
    position: sticky;
    top: 24px;
    z-index: 10;
}

/* Loading Overlay for Recalculation */
.summary-card {
    border: 1px solid #e2e8f0;
    background: #fff;
}

.summary-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    z-index: 100;
    display: none;
    backdrop-filter: blur(2px);
}

.summary-card.recalculating .summary-loading-overlay {
    display: flex;
}

.summary-card.recalculating .summary-body {
    opacity: 0.55;
    pointer-events: none;
}

.checkout-btn {
    font-size: 16px;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
}

.checkout-btn:hover {
    transform: scale(1.015);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2) !important;
}

/* Plan changer Modal list */
.plan-option-row {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    background-color: #fff;
}

.plan-option-row:hover {
    background-color: #f8fafc;
    border-color: #0d6efd;
}

.plan-option-row.active {
    background-color: #f4f8ff;
    border-color: #0d6efd;
}

/* Footer specifications links styling */
.features-footer {
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 16px;
}

/* Custom shadow utility */
.shadow-sm {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
}
.shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}
.shadow-md {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
}

/* Addon features checks */
.addon-features-list {
    font-size: 12px;
    color: #475569;
}

.addon-features-list li {
    margin-bottom: 4px;
}

.addon-features-list i {
    font-size: 11px;
}
