/* Shoppi Premium Checkout Redesign - Scoped */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Scope variables to the checkout container to avoid global pollution */
.checkout-scope {
    --chk-primary: #111;
    --chk-text-main: #1a1f36;
    --chk-text-secondary: #697386;
    --chk-bg-body: #f8f9fa;
    --chk-border: #e6e6e6;
    --chk-white: #ffffff;
    --chk-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--chk-text-main);
}

/* Navbar Tweaks */
/* Navbar Tweaks */
.navbar-default.checkout-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    opacity: 0.8;
    transition: opacity 0.2s;
}

.navbar-brand:hover img {
    opacity: 1;
}

/* Layout */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1100px;
    margin: 40px auto 100px;
    padding: 0 20px;
    align-items: start;
}

@media (max-width: 991px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

/* Sections */
.checkout-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 24px;
}

.section-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1f36;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.step-badge {
    background: #111;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Form Styles - Scoped to .checkout-scope */
.checkout-scope .form-group {
    margin-bottom: 20px;
}

.checkout-scope label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1f36;
}

.checkout-scope .form-control {
    display: block;
    width: 100%;
    height: 44px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: none;
    transition: border-color .15s;
}

.checkout-scope .form-control:focus {
    border-color: #111;
    outline: 0;
}

/* Sidebar */
.checkout-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
}

.btn-checkout-primary {
    background: #2d324c;
    border: none;
    border-radius: 4px;
    color: #fff;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    display: block;
    text-align: center;
    margin-top: 10px;
}

.btn-checkout-primary:hover {
    background: #3d4466;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 50, 76, 0.15);
}

/* Table styles */
.items-table td {
    vertical-align: middle;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.item-image img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

/* Utilities */
.form-row-tight {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-col {
    padding: 0 10px;
    width: 100%;
}

@media(min-width: 768px) {
    .form-col.half {
        width: 50%;
    }
}

.checkout-scope .mb-20 {
    margin-bottom: 20px;
}