/* Shopify-style Checkout */
.shopify-checkout {
    min-height: 100vh;
    background: #f6f6f7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.checkout-header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e1e3e4;
    margin-bottom: 20px;
}

.checkout-title {
    font-size: 24px;
    font-weight: 600;
    color: #212121;
    margin: 0 0 15px 0;
}

.checkout-steps {
    display: flex;
    gap: 20px;
}

.step {
    font-size: 14px;
    color: #6b7280;
    position: relative;
}

.step.active {
    color: #212121;
    font-weight: 500;
}

.step.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #212121;
}

/* Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* Form Column */
.checkout-form-column {
    background: white;
    border-radius: 8px;
    padding: 30px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
    margin: 0 0 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #212121;
    box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group.half {
    margin-bottom: 0;
}

.checkbox-group {
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Payment Methods */
.payment-methods {
    margin-top: 20px;
}

.payment-method {
    margin-bottom: 15px;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e1e3e4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method input[type="radio"]:checked + .payment-label {
    border-color: #212121;
    background: #f9f9f9;
}

.payment-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 6px;
    color: #6b7280;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-size: 16px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 4px;
}

.payment-desc {
    font-size: 14px;
    color: #6b7280;
}

/* Order Summary Column */
.order-summary-column {
    position: sticky;
    top: 20px;
}

.order-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e1e3e4;
}

/* Order Items Toggle */
.order-items-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 15px 0;
    border-bottom: 1px solid #e1e3e4;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-right: 10px;
}

.items-count {
    font-size: 14px;
    color: #6b7280;
}

.items-total {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
}

.toggle-icon {
    transition: transform 0.2s ease;
    color: #6b7280;
}

/* Order Items Content */
.order-items-content {
    padding: 20px 0;
    border-bottom: 1px solid #e1e3e4;
}

.order-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.order-item:last-child {
    margin-bottom: 0;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 14px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 4px;
}

.item-quantity {
    font-size: 12px;
    color: #6b7280;
}

.item-price {
    font-size: 14px;
    font-weight: 500;
    color: #212121;
}

/* Order Totals */
.order-totals {
    padding: 20px 0;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.total-line:last-child {
    margin-bottom: 0;
}

.total-label {
    font-size: 14px;
    color: #6b7280;
}

.total-value {
    font-size: 14px;
    color: #212121;
}

.total-line.final {
    padding-top: 15px;
    border-top: 1px solid #e1e3e4;
    margin-top: 15px;
}

.total-line.final .total-label,
.total-line.final .total-value {
    font-size: 16px;
    font-weight: 600;
}

/* Complete Order Button */
.complete-order-btn {
    width: 100%;
    background: #212121;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 15px;
}

.complete-order-btn:hover {
    background: #000;
}

/* Security Info */
.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.security-info svg {
    color: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .order-summary-column {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-container {
        padding: 0 15px;
    }
    
    .checkout-form-column {
        padding: 20px;
    }
}