/* Checkout Styles - Modern Minimalist Design */
:root {
    --fbp-primary: #3b82f6;
    --fbp-primary-hover: #2563eb;
    --fbp-success: #10b981;
    --fbp-success-hover: #059669;
    --fbp-warning: #f59e0b;
    --fbp-danger: #ef4444;
    --fbp-gray-50: #f9fafb;
    --fbp-gray-100: #f3f4f6;
    --fbp-gray-200: #e5e7eb;
    --fbp-gray-300: #d1d5db;
    --fbp-gray-400: #9ca3af;
    --fbp-gray-500: #6b7280;
    --fbp-gray-600: #4b5563;
    --fbp-gray-700: #374151;
    --fbp-gray-800: #1f2937;
    --fbp-gray-900: #111827;
    --fbp-radius: 8px;
    --fbp-radius-lg: 12px;
    --fbp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --fbp-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --fbp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --fbp-transition: 0.2s ease;
}

/* Checkout Wrapper */
.fbp-checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.fbp-checkout-two-col {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: flex-start;
}

.fbp-checkout-two-col[data-order-position="left"] {
    grid-template-columns: 420px 1fr;
}

.fbp-checkout-two-col[data-order-position="left"] .fbp-checkout-sidebar {
    order: -1;
}

.fbp-checkout-one-col {
    max-width: 640px;
    margin: 0 auto;
}

/* Section Title */
.fbp-section-title {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 600;
    color: var(--fbp-gray-900);
    letter-spacing: -0.025em;
}

/* Checkout Section */
.fbp-checkout-section {
    margin-bottom: 32px;
}

/* Form Fields */
.fbp-field {
    margin-bottom: 20px;
}

.fbp-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fbp-gray-700);
}

.fbp-field label .required {
    color: var(--fbp-danger);
}

.fbp-field input[type="text"],
.fbp-field input[type="email"],
.fbp-field input[type="tel"],
.fbp-field input[type="number"],
.fbp-field input[type="password"],
.fbp-field textarea,
.fbp-field select,
.fbp-checkout-wrapper input:not([type="checkbox"]):not([type="radio"]),
.fbp-checkout-wrapper textarea,
.fbp-checkout-wrapper select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--fbp-gray-900);
    background: #fff;
    border: 1px solid var(--fbp-gray-300);
    border-radius: var(--fbp-radius);
    transition: border-color var(--fbp-transition), box-shadow var(--fbp-transition);
    outline: none;
}

.fbp-field input:focus,
.fbp-field textarea:focus,
.fbp-field select:focus,
.fbp-checkout-wrapper input:focus,
.fbp-checkout-wrapper textarea:focus,
.fbp-checkout-wrapper select:focus {
    border-color: var(--fbp-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fbp-field input::placeholder,
.fbp-field textarea::placeholder {
    color: var(--fbp-gray-400);
}

/* Row Layout */
.fbp-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fbp-field-half {
    margin-bottom: 20px;
}

/* Order Review */
.fbp-order-review {
    background: var(--fbp-gray-50);
    border-radius: var(--fbp-radius-lg);
    padding: 28px;
    position: sticky;
    top: 40px;
}

/* Order Items */
.fbp-order-items {
    margin-bottom: 20px;
}

.fbp-order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--fbp-gray-200);
}

.fbp-order-item:last-child {
    border-bottom: none;
}

.fbp-order-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--fbp-radius);
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
}

.fbp-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fbp-order-item-details {
    flex: 1;
    min-width: 0;
}

.fbp-order-item-name {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--fbp-gray-900);
    margin-bottom: 4px;
}

.fbp-order-item-qty {
    font-size: 13px;
    color: var(--fbp-gray-500);
}

.fbp-order-item-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--fbp-gray-900);
    white-space: nowrap;
}

/* Order Totals */
.fbp-order-totals {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--fbp-gray-200);
}

.fbp-order-totals tr {
    border: none;
}

.fbp-order-totals th,
.fbp-order-totals td {
    padding: 10px 0;
    font-size: 14px;
    border: none;
}

.fbp-order-totals th {
    text-align: left;
    font-weight: 500;
    color: var(--fbp-gray-600);
}

.fbp-order-totals td {
    text-align: right;
    color: var(--fbp-gray-900);
}

.fbp-order-total th,
.fbp-order-total td {
    padding-top: 16px;
    border-top: 1px solid var(--fbp-gray-200);
    font-size: 18px;
    font-weight: 700;
}

/* Payment Methods */
.fbp-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fbp-payment-method {
    background: #fff;
    border: 2px solid var(--fbp-gray-200);
    border-radius: var(--fbp-radius);
    padding: 16px;
    cursor: pointer;
    transition: all var(--fbp-transition);
}

.fbp-payment-method:hover {
    border-color: var(--fbp-gray-300);
}

.fbp-payment-method.active {
    border-color: var(--fbp-primary);
    background: #f0f9ff;
}

.fbp-payment-method label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.fbp-payment-method input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--fbp-primary);
}

.fbp-payment-method-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--fbp-gray-900);
}

.fbp-payment-method-content {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--fbp-gray-200);
}

/* Coupon */
.fbp-coupon-wrapper {
    margin-bottom: 24px;
}

.fbp-coupon-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fbp-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.fbp-coupon-toggle:hover {
    color: var(--fbp-primary-hover);
}

.fbp-coupon-form {
    margin-top: 16px;
}

.fbp-coupon-field-wrapper {
    display: flex;
    gap: 10px;
}

.fbp-coupon-input {
    flex: 1;
}

.fbp-apply-coupon {
    padding: 14px 24px !important;
    white-space: nowrap;
}

.fbp-applied-coupons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fbp-applied-coupon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.fbp-remove-coupon {
    display: flex;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.fbp-remove-coupon:hover {
    opacity: 1;
}

/* Shipping */
.fbp-shipping-checkbox {
    margin-bottom: 20px;
}

.fbp-shipping-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--fbp-gray-700);
    cursor: pointer;
}

.fbp-shipping-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--fbp-primary);
}

/* Button */
.fbp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--fbp-primary);
    border: none;
    border-radius: var(--fbp-radius);
    cursor: pointer;
    transition: all var(--fbp-transition);
    text-decoration: none;
}

.fbp-button:hover {
    background: var(--fbp-primary-hover);
    color: #fff;
}

.fbp-place-order-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 17px;
    background: var(--fbp-success);
}

.fbp-place-order-btn:hover {
    background: var(--fbp-success-hover);
}

.fbp-btn-total {
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* Trust Badges */
.fbp-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    text-align: center;
}

.fbp-trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fbp-gray-500);
}

.fbp-trust-badge svg {
    color: var(--fbp-success);
}

/* Responsive */
@media (max-width: 900px) {
    .fbp-checkout-two-col {
        grid-template-columns: 1fr;
    }

    .fbp-checkout-two-col[data-order-position="left"] .fbp-checkout-sidebar {
        order: 0;
    }

    .fbp-order-review {
        position: static;
    }
}

@media (max-width: 600px) {
    .fbp-checkout-wrapper {
        padding: 20px 16px;
    }

    .fbp-fields-row {
        grid-template-columns: 1fr;
    }

    .fbp-coupon-field-wrapper {
        flex-direction: column;
    }

    .fbp-apply-coupon {
        width: 100%;
    }
}
