/**
 * Doggos Fast Checkout - Checkout Styles
 * 
 * Mobile-first responsive design
 * Works with LiteSpeed Cache
 * 
 * @package Doggos_Fast_Checkout
 * @version 2.7.0
 */

:root {
    --dfc-primary: #2d5016;
    --dfc-primary-hover: #3d6b1e;
    --dfc-accent: #f59e0b;
    --dfc-success: #10b981;
    --dfc-error: #ef4444;
    --dfc-text: #1f2937;
    --dfc-text-light: #6b7280;
    --dfc-border: #e5e7eb;
    --dfc-bg: #f9fafb;
    --dfc-white: #ffffff;
    --dfc-radius: 12px;
    --dfc-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --dfc-shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
}

.dfc-checkout {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px;
    background: var(--dfc-bg);
    min-height: 100vh;
}

/* Header */
.dfc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dfc-border);
}

.dfc-back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--dfc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--dfc-shadow);
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.dfc-back-btn svg {
    width: 20px;
    height: 20px;
    color: var(--dfc-text);
}

.dfc-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--dfc-text);
}

/* ============================================
   STREET DOG CHARITY BANNER
   ============================================ */
.dfc-charity-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--dfc-accent);
    border-radius: var(--dfc-radius);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dfc-charity-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
    animation: dogWag 1s ease-in-out infinite;
}

@keyframes dogWag {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.dfc-charity-content {
    flex: 1;
}

.dfc-charity-title {
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 4px;
}

.dfc-charity-subtitle {
    font-size: 13px;
    color: #b45309;
    margin: 0;
}

.dfc-charity-heart {
    font-size: 24px;
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Order Summary - Collapsible on mobile */
.dfc-order-summary {
    background: var(--dfc-white);
    border-radius: var(--dfc-radius);
    margin-bottom: 16px;
    box-shadow: var(--dfc-shadow);
    overflow: hidden;
}

.dfc-summary-toggle {
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--dfc-text);
}

.dfc-summary-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.dfc-summary-toggle.open svg {
    transform: rotate(180deg);
}

.dfc-summary-content {
    display: none;
    padding: 0 16px 16px;
}

.dfc-summary-content.open {
    display: block;
}

/* Cart items */
.dfc-cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dfc-border);
}

.dfc-cart-item:last-child {
    border-bottom: none;
}

.dfc-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--dfc-bg);
}

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

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

.dfc-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--dfc-text);
    margin: 0 0 4px;
    line-height: 1.3;
}

.dfc-item-qty {
    font-size: 13px;
    color: var(--dfc-text-light);
}

.dfc-bundle-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--dfc-accent, #f59e0b) 0%, #d97706 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 2px;
}

.dfc-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--dfc-text);
    white-space: nowrap;
}

/* Totals */
.dfc-totals {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--dfc-border);
}

.dfc-total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--dfc-text-light);
}

.dfc-total-row.dfc-grand-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--dfc-text);
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--dfc-border);
}

.dfc-discount {
    color: var(--dfc-success);
}

.dfc-free-shipping {
    color: var(--dfc-success);
    font-weight: 500;
}

/* Shipping progress bar */
.dfc-shipping-progress {
    background: var(--dfc-bg);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.dfc-progress-bar {
    height: 6px;
    background: var(--dfc-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.dfc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dfc-primary), var(--dfc-success));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.dfc-progress-text {
    font-size: 13px;
    color: var(--dfc-text);
    text-align: center;
}

.dfc-progress-text strong {
    color: var(--dfc-success);
}

/* Coupon */
.dfc-coupon {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.dfc-coupon input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--dfc-border);
    border-radius: 8px;
    font-size: 14px;
    text-transform: uppercase;
}

.dfc-coupon button {
    padding: 12px 16px;
    background: var(--dfc-text);
    color: var(--dfc-white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.dfc-coupon-applied {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ecfdf5;
    border-radius: 8px;
    font-size: 13px;
    color: var(--dfc-success);
    margin-top: 8px;
}

.dfc-coupon-applied .dfc-remove-coupon {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--dfc-error);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

/* Form Sections */
.dfc-section {
    background: var(--dfc-white);
    border-radius: var(--dfc-radius);
    padding: 20px 16px;
    margin-bottom: 16px;
    box-shadow: var(--dfc-shadow);
}

.dfc-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dfc-text);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dfc-section-title .dfc-step {
    width: 24px;
    height: 24px;
    background: var(--dfc-primary);
    color: var(--dfc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

/* Form Fields */
.dfc-field {
    margin-bottom: 16px;
}

.dfc-field:last-child {
    margin-bottom: 0;
}

.dfc-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dfc-text);
    margin-bottom: 6px;
}

.dfc-field label .required {
    color: var(--dfc-error);
}

.dfc-field input,
.dfc-field select,
.dfc-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--dfc-border);
    border-radius: 10px;
    font-size: 16px;
    color: var(--dfc-text);
    background: var(--dfc-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.dfc-field input:focus,
.dfc-field select:focus,
.dfc-field textarea:focus {
    outline: none;
    border-color: var(--dfc-primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.dfc-field input.error,
.dfc-field select.error {
    border-color: var(--dfc-error);
}

.dfc-field input.valid {
    border-color: var(--dfc-success);
}

.dfc-field-error {
    font-size: 13px;
    color: var(--dfc-error);
    margin-top: 4px;
    display: none;
}

.dfc-field-error.show {
    display: block;
}

/* Row layout */
.dfc-row {
    display: flex;
    gap: 12px;
}

.dfc-row .dfc-field {
    flex: 1;
}

/* Pincode with auto-fill indicator */
.dfc-pincode-wrap {
    position: relative;
}

.dfc-pincode-status {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.dfc-pincode-status.loading {
    width: 20px;
    height: 20px;
    border: 2px solid var(--dfc-border);
    border-top-color: var(--dfc-primary);
    border-radius: 50%;
    animation: pincodeSpin 0.8s linear infinite;
}

.dfc-pincode-status.valid svg {
    color: var(--dfc-success);
}

@keyframes pincodeSpin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Auto-filled fields */
.dfc-autofilled {
    background: #f0fdf4 !important;
    border-color: var(--dfc-success) !important;
}

/* Google Autocomplete field */
.dfc-field input.dfc-google-autocomplete {
    padding-right: 40px;
}

.dfc-google-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

/* ============================================
   REMEMBER ADDRESS CHECKBOX
   ============================================ */
.dfc-remember-address {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--dfc-border);
}

.dfc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--dfc-text-light);
}

.dfc-checkbox-label input {
    display: none;
}

.dfc-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--dfc-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.dfc-checkbox-label input:checked + .dfc-checkbox-custom {
    background: var(--dfc-primary);
    border-color: var(--dfc-primary);
}

.dfc-checkbox-label input:checked + .dfc-checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* ============================================
   SUBSCRIPTION UPSELL BANNER
   ============================================ */
.dfc-subscription-upsell {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--dfc-accent);
    border-radius: var(--dfc-radius);
    margin-bottom: 16px;
}

.dfc-upsell-icon {
    font-size: 32px;
    flex-shrink: 0;
    animation: giftBounce 2s ease-in-out infinite;
}

@keyframes giftBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.dfc-upsell-content {
    flex: 1;
    min-width: 0;
}

.dfc-upsell-title {
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 2px;
}

.dfc-upsell-text {
    font-size: 13px;
    color: #b45309;
    line-height: 1.4;
}

.dfc-upsell-text strong {
    color: #92400e;
}

.dfc-upsell-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--dfc-accent);
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.dfc-upsell-btn:hover {
    background: #d97706;
    color: white;
    transform: scale(1.02);
}

@media (max-width: 480px) {
    .dfc-subscription-upsell {
        flex-wrap: wrap;
    }
    
    .dfc-upsell-icon {
        font-size: 28px;
    }
    
    .dfc-upsell-content {
        flex: 1 1 calc(100% - 50px);
    }
    
    .dfc-upsell-btn {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

/* ============================================
   PAYMENT METHODS
   ============================================ */
.dfc-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* UPI Priority Badge */
.dfc-payment-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.dfc-badge-recommended {
    background: #dcfce7;
    color: #166534;
}

.dfc-badge-popular {
    background: #dbeafe;
    color: #1e40af;
}

.dfc-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--dfc-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.dfc-payment-option:hover {
    border-color: var(--dfc-primary);
}

.dfc-payment-option.selected {
    border-color: var(--dfc-primary);
    background: rgba(45, 80, 22, 0.05);
}

.dfc-payment-option.dfc-upi-option {
    border-color: #c084fc;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.dfc-payment-option.dfc-upi-option.selected {
    border-color: #9333ea;
    background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 100%);
}

.dfc-payment-option input {
    display: none;
}

.dfc-payment-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--dfc-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.dfc-payment-option.selected .dfc-payment-radio {
    border-color: var(--dfc-primary);
}

.dfc-payment-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--dfc-primary);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s;
}

.dfc-payment-option.selected .dfc-payment-radio::after {
    transform: scale(1);
}

.dfc-payment-info {
    flex: 1;
}

.dfc-payment-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--dfc-text);
    display: flex;
    align-items: center;
}

.dfc-payment-desc {
    font-size: 13px;
    color: var(--dfc-text-light);
    margin-top: 2px;
}

.dfc-payment-icon {
    width: 40px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dfc-payment-icon img,
.dfc-payment-icon svg {
    max-width: 100%;
    max-height: 100%;
}

/* ============================================
   COD VERIFICATION
   ============================================ */
.dfc-cod-verification {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
    display: none;
}

.dfc-cod-verification.show {
    display: block;
}

.dfc-cod-title {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dfc-cod-phone-display {
    font-size: 14px;
    color: var(--dfc-text);
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--dfc-white);
    border-radius: 8px;
}

.dfc-otp-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.dfc-otp-input-group input {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 8px;
    padding: 12px;
}

.dfc-otp-actions {
    display: flex;
    gap: 8px;
}

.dfc-btn-send-otp,
.dfc-btn-verify-otp {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.dfc-btn-send-otp {
    background: var(--dfc-accent);
    color: #ffffff;
}

.dfc-btn-send-otp:hover {
    background: #d97706;
}

.dfc-btn-verify-otp {
    background: var(--dfc-primary);
    color: var(--dfc-white);
}

.dfc-btn-verify-otp:hover {
    background: var(--dfc-primary-hover);
}

.dfc-btn-send-otp:disabled,
.dfc-btn-verify-otp:disabled {
    background: var(--dfc-border);
    color: var(--dfc-text-light);
    cursor: not-allowed;
}

.dfc-otp-status {
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
}

.dfc-otp-status.success {
    background: #dcfce7;
    color: #166534;
}

.dfc-otp-status.error {
    background: #fef2f2;
    color: var(--dfc-error);
}

.dfc-otp-resend {
    font-size: 13px;
    color: var(--dfc-text-light);
    margin-top: 8px;
}

.dfc-otp-resend button {
    background: none;
    border: none;
    color: var(--dfc-primary);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.dfc-cod-verified {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #dcfce7;
    border-radius: 8px;
    color: #166534;
    font-weight: 500;
}

/* COD notice */
.dfc-cod-notice {
    background: #fef3c7;
    color: #92400e;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 12px;
    display: none;
}

.dfc-cod-notice.show {
    display: block;
}

/* Submit Button */
.dfc-submit-wrap {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--dfc-bg) 80%, transparent);
    padding: 16px;
    margin: 0 -16px -16px;
}

.dfc-submit-btn {
    width: 100%;
    padding: 18px 24px;
    background: var(--dfc-primary);
    color: var(--dfc-white);
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--dfc-shadow-lg);
    transition: background 0.2s, transform 0.1s;
}

.dfc-submit-btn:hover {
    background: var(--dfc-primary-hover);
}

.dfc-submit-btn:active {
    transform: scale(0.98);
}

.dfc-submit-btn:disabled {
    background: var(--dfc-text-light);
    cursor: not-allowed;
}

.dfc-submit-btn .dfc-btn-price {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 15px;
}

.dfc-submit-btn.loading {
    pointer-events: none;
    position: relative;
    background: linear-gradient(90deg, var(--dfc-primary), var(--dfc-primary-hover), var(--dfc-primary));
    background-size: 200% 100%;
    animation: btnGradient 1.5s ease infinite;
}

.dfc-submit-btn.loading span {
    opacity: 0;
}

.dfc-submit-btn.loading::before {
    content: 'Processing...';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.dfc-submit-btn.loading::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes btnGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Trust badges */
.dfc-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    color: var(--dfc-text-light);
    font-size: 12px;
}

.dfc-trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dfc-trust-item svg {
    width: 16px;
    height: 16px;
}

/* Error messages */
.dfc-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.dfc-errors ul {
    margin: 0;
    padding: 0 0 0 20px;
    color: var(--dfc-error);
    font-size: 14px;
}

.dfc-errors li {
    margin-bottom: 4px;
}

/* Empty cart */
.dfc-empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.dfc-empty-cart p {
    font-size: 16px;
    color: var(--dfc-text-light);
    margin-bottom: 20px;
}

.dfc-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--dfc-primary);
    color: var(--dfc-white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
}

/* Toast notifications */
.dfc-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    max-width: 90%;
}

.dfc-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dfc-toast-success {
    background: #166534;
    color: white;
}

.dfc-toast-error {
    background: var(--dfc-error);
    color: white;
}

.dfc-toast-info {
    background: var(--dfc-text);
    color: white;
}

/* Desktop styles */
@media (min-width: 768px) {
    .dfc-checkout {
        max-width: 1100px;
        padding: 32px;
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 32px;
        align-items: start;
    }
    
    .dfc-header {
        grid-column: 1 / -1;
    }
    
    .dfc-charity-banner {
        grid-column: 1 / -1;
    }
    
    .dfc-main {
        order: 1;
    }
    
    .dfc-sidebar {
        order: 2;
        position: sticky;
        top: 32px;
    }
    
    .dfc-order-summary {
        margin-bottom: 0;
    }
    
    .dfc-summary-toggle {
        cursor: default;
    }
    
    .dfc-summary-toggle svg {
        display: none;
    }
    
    .dfc-summary-content {
        display: block !important;
    }
    
    .dfc-submit-wrap {
        position: static;
        background: none;
        padding: 0;
        margin: 16px 0 0;
    }
    
    .dfc-section {
        padding: 24px;
    }
    
    .dfc-field input,
    .dfc-field select {
        padding: 12px 16px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .dfc-checkout {
        padding: 12px;
    }
    
    .dfc-row {
        flex-direction: column;
        gap: 0;
    }
    
    .dfc-charity-banner {
        flex-wrap: wrap;
    }
    
    .dfc-charity-heart {
        display: none;
    }
}

/* Prevent iOS zoom on input focus */
@supports (-webkit-touch-callout: none) {
    .dfc-field input,
    .dfc-field select,
    .dfc-field textarea {
        font-size: 16px;
    }
}

/* Loading overlay */
.dfc-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.dfc-loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.dfc-loading-icon {
    font-size: 48px;
    animation: loadingBounce 0.6s ease-in-out infinite;
}

@keyframes loadingBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.dfc-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--dfc-border);
    border-top-color: var(--dfc-primary);
    border-radius: 50%;
    animation: overlaySpin 0.8s linear infinite;
}

@keyframes overlaySpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dfc-loading-text {
    font-size: 16px;
    color: var(--dfc-text);
    font-weight: 500;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* All animations defined inline with their components */
