                :root {
    --flipkart-blue: #2874f0;
    --flipkart-yellow: #ffe500;
    --action-orange: #fb641b;
    --bg-gray: #f1f3f6;
    --white: #ffffff;
    --text-primary: #212121;
    --text-secondary: #878787;
    --border-gray: #f0f0f0;
    --success-green: #388e3c;
    --font-family: 'Roboto', 'Arial', sans-serif;
}

body {
    background-color: var(--bg-gray);
    font-family: var(--font-family);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    font-size: 14px;
}

/* --- Layout --- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
    align-items: start;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-right {
        order: 2;
    }
}

/* --- Left Column: Steps --- */
.checkout-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Step Card Styles */
.step-card {
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

/* Step Header */
.step-header {
    display: flex;
    padding: 16px 24px;
    cursor: pointer;
    align-items: center;
}

.step-header.active {
    background-color: var(--flipkart-blue);
    cursor: default;
}

.step-number-box {
    background-color: #f0f0f0;
    color: var(--flipkart-blue);
    font-size: 13px;
    font-weight: 600;
    width: 28px;
    height: 28px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.step-header.active .step-number-box {
    background-color: var(--white);
    color: var(--flipkart-blue);
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.step-header.active .step-title {
    color: var(--white);
}

.step-info {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-primary);
    display: none;
}

/* Step Content */
.step-body {
    padding: 24px;
    border-top: 1px solid var(--border-gray);
    display: none;
}

.step-card.open .step-body {
    display: block;
}

/* Change header style when open */
.step-card.open .step-header {
    background-color: var(--flipkart-blue);
}

.step-card.open .step-title {
    color: var(--white);
}

.step-card.open .step-number-box {
    background-color: var(--white);
    color: var(--flipkart-blue);
}

/* --- Forms --- */
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.flip-input {
    border: 1px solid #e0e0e0;
    padding: 14px 12px;
    font-size: 14px;
    border-radius: 2px;
    outline: none;
    width: 100%;
    transition: border 0.2s;
}

.flip-input:focus {
    border-color: var(--flipkart-blue);
}

.flip-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

textarea.flip-input {
    resize: vertical;
    min-height: 80px;
}

/* --- Buttons --- */
.btn-action {
    background-color: var(--action-orange);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.btn-action:hover {
    background-color: #e85d19;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--flipkart-blue);
    border: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 20px;
}

/* --- Order Summary Items --- */
.cart-item-row {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
}

.item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: var(--text-primary);
}

.item-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.item-price {
    font-size: 18px;
    font-weight: 600;
}

.item-original-price {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.item-discount {
    font-size: 14px;
    color: var(--success-green);
    font-weight: 500;
}

/* Qty Buttons */
.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #c2c2c2;
    background: #fff;
    cursor: pointer;
    font-weight: bold;
}

.qty-btn:hover {
    background: #f0f0f0;
}

/* --- Payment Options --- */
.payment-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-gray);
}

.payment-label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    flex: 1;
}

/* --- Right Column: Price Details --- */
.price-card {
    background: var(--white);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
}

.price-header {
    padding: 13px 24px;
    border-bottom: 1px solid var(--border-gray);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.price-body {
    padding: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 16px;
}

.price-row.total {
    border-top: 1px dashed var(--border-gray);
    padding-top: 20px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.green-text {
    color: var(--success-green);
}

.savings-message {
    padding: 16px 24px;
    border-top: 1px solid var(--border-gray);
    font-size: 16px;
    font-weight: 500;
    color: var(--success-green);
}

/* --- Utilities --- */
.hidden {
    display: none !important;
}

.text-xxs {
    font-size: 11px;
    color: var(--text-secondary);
}

.mt-4 {
    margin-top: 16px;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-gray);
    border-top: 4px solid var(--flipkart-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}