/* Checkout specific styles */
.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    height: auto;
    overflow: visible;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.checkout-secure {
    color: #2ecc71;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.step.active {
    color: var(--text-dark);
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.step.active .step-num {
    border-color: var(--primary-yellow);
    background: var(--primary-yellow);
    color: #333;
}

.step-line {
    width: 100px;
    height: 1px;
    background: #eee;
    margin: 0 15px;
}

.checkout-layout {
    display: flex;
    gap: 40px;
}

.checkout-forms {
    flex: 1.5;
}

.form-section {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
}

.section-header h2 {
    font-size: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary-yellow);
}

.login-prompt {
    font-size: 12px;
    color: var(--text-medium);
}

.login-prompt a {
    color: var(--primary-yellow);
    font-weight: 500;
    text-decoration: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.delivery-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
}

.delivery-option.active {
    border-color: var(--primary-yellow);
    background: #fffdf5;
}

.option-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.option-desc {
    font-size: 12px;
    color: var(--text-medium);
}

.option-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.payment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.pay-tab {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-medium);
    cursor: pointer;
}

.pay-tab.active {
    border-color: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 500;
    background: #fffdf5;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.confirm-order-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-yellow);
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.secure-notice {
    text-align: center;
    font-size: 12px;
    color: var(--text-medium);
    margin-top: 15px;
}

/* Sidebar */
.order-summary-sidebar {
    flex: 1;
}

.summary-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.summary-items {
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.summary-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.item-img {
    position: relative;
    width: 60px;
    height: 60px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 5px;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--text-medium);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.item-details p {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.remove-link {
    font-size: 11px;
    color: var(--primary-yellow);
    cursor: pointer;
}

.summary-item .item-price {
    font-size: 13px;
    font-weight: 500;
}

.discount-section {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.discount-section p {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.promo-input {
    display: flex;
}

.promo-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
}

.promo-input button {
    padding: 0 15px;
    background: #e0e0e0;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 13px;
}

.totals {
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.grand-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
}

.total-amount {
    font-size: 20px;
    color: var(--primary-yellow);
}

@media (max-width: 768px) {
    .checkout-layout {
        flex-direction: column;
    }

    .checkout-forms {
        width: 100%;
    }

    .order-summary-sidebar {
        width: 100%;
        margin-top: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
