/* Custom Checkout Page Modern UI System */

.checkut-page {
    background-color: #f8fafc;
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Stepper Header Navigation */
.checkout-steps-nav {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.checkout-step-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    gap: 10px;
    transition: all 0.2s ease-in-out;
}

.checkout-step-item:hover {
    color: #2563eb;
}

.checkout-step-item.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}

.checkout-step-item.completed {
    background-color: #f0fdf4;
    color: #16a34a;
    font-weight: 600;
}

.step-icon-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.checkout-step-item.active .step-icon-circle {
    background-color: #2563eb;
    color: #ffffff;
}

.checkout-step-item.completed .step-icon-circle {
    background-color: #22c55e;
    color: #ffffff;
}

.checkout-step-item.inactive .step-icon-circle {
    border: 2px solid #cbd5e1;
    color: #64748b;
    background: transparent;
}

/* Checkout Cards */
.checkout-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.checkout-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.checkout-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.checkout-card-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}

/* Badges */
.badge-step {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-verified {
    background: #dcfce7;
    color: #15803d;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-required {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-tag-green {
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-tag-blue {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-tag-yellow {
    background: #fef3c7;
    color: #b45309;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Forms & Inputs */
.checkout-form-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.checkout-form-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #0f172a;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.checkout-form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.delivery-status-badge {
    background: #e6f4ea;
    color: #1e7e34;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

/* Custom Checkbox */
.checkout-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.checkout-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: #2563eb;
    cursor: pointer;
}

.checkout-checkbox-group label {
    font-size: 13px;
    color: #334155;
    margin: 0;
    cursor: pointer;
}

/* Shipping Option Radio Cards */
.shipping-option-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    background: #ffffff;
}

.shipping-option-card:hover {
    border-color: #93c5fd;
}

.shipping-option-card.selected {
    border-color: #3b82f6;
    background-color: #f8fafc;
    box-shadow: 0 0 0 1px #3b82f6;
}

.shipping-option-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.shipping-option-left input[type="radio"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.shipping-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.shipping-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.shipping-price {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

/* Payment Option Radio Cards */
.payment-option-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    transition: all 0.2s ease;
    background: #ffffff;
}

.payment-option-card:hover {
    border-color: #93c5fd;
}

.payment-option-card.selected {
    border-color: #3b82f6;
    background-color: #f8fafc;
    box-shadow: 0 0 0 1px #3b82f6;
}

.payment-option-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.payment-option-left input[type="radio"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.payment-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.payment-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* Review Summary Boxes in Step 3 */
.review-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .review-summary-grid {
        grid-template-columns: 1fr;
    }
}

.review-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}

.review-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.review-info-header a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.review-info-body {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

/* Navigation Action Buttons */
.checkout-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.btn-checkout-back {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-checkout-back:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-checkout-next {
    background: #2563eb;
    border: none;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-checkout-next:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 10px -1px rgba(37, 99, 235, 0.4);
}

/* Sidebar Order Summary Widget */
.sidebar-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sidebar-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.sidebar-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.sidebar-summary-row .val {
    color: #0f172a;
    font-weight: 600;
}

.sidebar-summary-row .val-green {
    color: #16a34a;
    font-weight: 700;
}

.sidebar-total-box {
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.sidebar-total-label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.sidebar-total-sub {
    font-size: 11px;
    color: #94a3b8;
}

.sidebar-total-price {
    font-size: 22px;
    font-weight: 800;
    color: #2563eb;
}

/* Cart Items Sidebar Widget */
.sidebar-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-cart-item:last-child {
    border-bottom: none;
}

.sidebar-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sidebar-item-info {
    flex: 1;
}

.sidebar-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-item-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.sidebar-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}
