@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

/**
 * WooCommerce Egypt Fast Checkout - Quad Pharma Edition
 * Custom Mobile-First Styling matching https://quadpharm.com/
 * Medical / Pharmaceutical Clean Aesthetic & RTL Optimized
 * Typography: Google Font 'Cairo'
 */

:root {
    /* Universal Theme Detection Variables */
    --wc-theme-primary: var(--wc-theme-auto-primary,
        var(--wp--preset--color--primary,
        var(--theme-primary,
        var(--primary-color,
        var(--color-primary,
        var(--main-color,
        var(--ast-global-color-0,
        var(--global-color-primary,
        var(--brand-primary,
        var(--accent-color,
        var(--cz-primary,
        var(--woodmart-primary-color,
        var(--flatsome-primary-color,
        #0cb8b6)))))))))))));

    --wc-theme-primary-hover: var(--wc-theme-auto-primary-hover,
        var(--theme-primary-hover,
        var(--primary-color-hover,
        var(--ast-global-color-1,
        #0aa3a1))));

    --wc-theme-primary-light: var(--wc-theme-auto-primary-light,
        rgba(12, 184, 182, 0.08));

    --wc-theme-dark: var(--wc-theme-auto-dark,
        var(--wp--preset--color--contrast,
        var(--theme-dark,
        var(--heading-color,
        var(--color-heading,
        var(--ast-global-color-2,
        var(--woodmart-heading-color,
        var(--flatsome-text-color,
        #1d2d5e))))))));

    --wc-theme-muted: var(--theme-text-muted,
        var(--color-text-muted,
        var(--ast-global-color-3,
        #5e6d8a)));

    --wc-theme-border: var(--theme-border,
        var(--color-border,
        var(--ast-border-color,
        #e2e8f0)));

    --wc-theme-surface: var(--theme-surface,
        var(--color-surface,
        var(--wp--preset--color--base,
        #ffffff)));

    --wc-theme-ice: var(--theme-bg-subtle,
        var(--color-bg-subtle,
        var(--ast-global-color-4,
        #f8fafc)));

    --wc-theme-radius-btn: var(--wc-theme-auto-radius-btn,
        var(--theme-btn-radius,
        var(--btn-border-radius,
        var(--ast-button-radius,
        50px))));

    --wc-theme-radius-card: var(--theme-card-radius,
        var(--card-border-radius,
        14px));

    --wc-theme-font: var(--wc-theme-auto-font, inherit);

    /* Backward Compatibility Bridge */
    --qp-navy: var(--wc-theme-dark);
    --qp-navy-light: #2c4280;
    --qp-teal: var(--wc-theme-primary);
    --qp-teal-hover: var(--wc-theme-primary-hover);
    --qp-teal-light: var(--wc-theme-primary-light);
    --qp-orange: #ffa04b;
    --qp-orange-light: #fff5eb;
    --qp-green: #10b981;
    --qp-border: var(--wc-theme-border);
    --qp-border-focus: var(--wc-theme-primary);
    --qp-bg-surface: var(--wc-theme-surface);
    --qp-bg-ice: var(--wc-theme-ice);
    --qp-text-primary: var(--wc-theme-dark);
    --qp-text-muted: var(--wc-theme-muted);
    --qp-radius-pill: var(--wc-theme-radius-btn);
    --qp-radius-card: var(--wc-theme-radius-card);
    --qp-radius-input: 10px;
}

/* Universal Font Harmony - Inherits Theme Font by default */
.wc-egypt-fc-wrapper,
.wc-egypt-fc-wrapper * {
    font-family: var(--wc-theme-font, inherit) !important;
}

.wc-egypt-fc-wrapper {
    direction: rtl;
    text-align: right;
    background: var(--qp-bg-surface);
    border: 1.5px solid var(--qp-border);
    border-radius: var(--qp-radius-card);
    padding: 24px;
    margin: 26px 0;
    box-shadow: 0 6px 22px rgba(29, 45, 94, 0.06);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Never render Fast Checkout inside theme sticky add-to-cart bars (WoodMart, Xtra, Flatsome, Astra, etc.) */
.wd-sticky-btn .wc-egypt-fc-wrapper,
.wd-sticky-btn-cart .wc-egypt-fc-wrapper,
.woodmart-sticky-btn .wc-egypt-fc-wrapper,
.cz-sticky-add-to-cart .wc-egypt-fc-wrapper,
.cz-sticky-add-to-cart-show .wc-egypt-fc-wrapper,
.codevz-sticky-cart .wc-egypt-fc-wrapper,
.ast-sticky-add-to-cart .wc-egypt-fc-wrapper,
.sticky-add-to-cart .wc-egypt-fc-wrapper,
.sticky_add_to_cart .wc-egypt-fc-wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Brand Bar / Quad Pharma Medical Header */
.wc-egypt-fc-brand-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--qp-navy);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
}

.wc-egypt-fc-brand-strip span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wc-egypt-fc-brand-badge {
    background: var(--qp-teal);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: var(--qp-radius-pill);
    font-size: 11px;
}

/* Urgency Bar */
.wc-egypt-fc-urgency-bar {
    background: var(--qp-orange-light);
    border: 1px solid #ffd8b3;
    color: #b45309;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    animation: qp-pulse 2s infinite ease-in-out;
}

.wc-egypt-fc-urgency-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b45309;
    flex-shrink: 0;
}

.wc-egypt-fc-urgency-icon svg {
    display: block;
    stroke: #b45309;
}

@keyframes qp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.008); }
}

/* Header */
.wc-egypt-fc-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--qp-border);
}

.wc-egypt-fc-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--qp-navy);
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.wc-egypt-fc-subtitle {
    font-size: 13.5px;
    color: var(--qp-text-muted);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.wc-egypt-fc-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--qp-bg-ice);
    border: 1px solid var(--qp-border);
    padding: 6px 14px;
    border-radius: var(--qp-radius-pill);
    font-size: 12px;
    color: var(--qp-navy);
    font-weight: 600;
}

.wc-egypt-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.wc-egypt-stars svg {
    display: inline-block;
    vertical-align: middle;
}

/* Medical Trust Badges Grid - Hidden by default for compact high-conversion */
.wc-egypt-fc-badges-grid {
    display: none !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.wc-egypt-fc-wrapper.has-badges .wc-egypt-fc-badges-grid {
    display: grid !important;
}

.wc-egypt-fc-badge-item {
    background: var(--qp-bg-ice);
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.wc-egypt-fc-badge-item:hover {
    background: var(--qp-teal-light);
    border-color: #bbf0ef;
}

.wc-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--qp-teal-light);
    color: var(--qp-teal);
    flex-shrink: 0;
}

.wc-badge-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--qp-teal);
    display: block;
}

.wc-badge-info {
    display: flex;
    flex-direction: column;
}

.wc-badge-info strong {
    font-size: 12px;
    color: var(--qp-navy);
    font-weight: 700;
}

.wc-badge-info span {
    font-size: 11px;
    color: var(--qp-text-muted);
}

/* Locations Card */
.wc-egypt-fc-locations-card {
    background: #fbfcfe;
    border: 1.5px solid #e1e7f0;
    border-radius: 14px;
    padding: 18px 16px;
    margin: 16px 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.wc-egypt-locations-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.wc-egypt-locations-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--qp-navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.wc-egypt-loc-title-icon {
    display: inline-flex;
    align-items: center;
    color: var(--qp-teal);
}

.wc-egypt-fc-location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    color: #0369a1;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(3, 105, 161, 0.08);
}

.wc-egypt-fc-location-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
}

.wc-egypt-fc-location-btn.is-loading {
    opacity: 0.75;
    pointer-events: none;
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
}

.wc-egypt-loc-icon {
    display: block;
    flex-shrink: 0;
}

.wc-egypt-loc-status {
    margin-bottom: 12px;
}

.wc-egypt-loc-msg {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.wc-egypt-loc-ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.wc-egypt-loc-err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.wc-egypt-loc-preview-link {
    color: #0284c7;
    text-decoration: underline;
    font-weight: 700;
    margin-right: 4px;
}

.wc-egypt-loc-preview-link:hover {
    color: #0369a1;
}

/* Upsell smooth scroll highlight pulse */
@keyframes fc-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6);
        border-color: #0ea5e9;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(14, 165, 233, 0);
        border-color: #0284c7;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
        border-color: var(--qp-border);
    }
}

.fc-highlight-pulse {
    animation: fc-highlight 1.2s ease-out 2;
}

/* ========================================================
   Checkout Page Fast Checkout Specific Styles
   ======================================================== */
.wc-egypt-fc-checkout-page-wrapper {
    max-width: 720px;
    margin: 25px auto;
}

.wc-egypt-fc-title-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    color: var(--qp-navy);
}

.wc-egypt-icon-truck {
    color: var(--qp-orange);
    display: flex;
    align-items: center;
}

.wc-egypt-fc-badge {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 700;
}

.wc-egypt-fc-cart-review {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.wc-egypt-fc-cart-review-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--qp-navy);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.wc-egypt-fc-cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wc-egypt-fc-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
}

.wc-egypt-fc-cart-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.wc-egypt-fc-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wc-egypt-fc-cart-details {
    flex: 1;
    min-width: 0;
}

.wc-egypt-fc-cart-name {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--qp-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc-egypt-fc-cart-qty {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.wc-egypt-fc-cart-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--qp-orange);
    white-space: nowrap;
}

/* Form Layout */
.wc-egypt-fc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 12px;
}

.wc-egypt-fc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.wc-egypt-fc-field {
    margin-bottom: 12px;
}

.wc-egypt-fc-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--qp-navy);
    margin-bottom: 6px;
}

.wc-egypt-req {
    color: #ef4444;
    font-weight: bold;
}

.wc-egypt-opt {
    color: var(--qp-text-muted);
    font-weight: normal;
    font-size: 11px;
}

.wc-egypt-field-hint {
    display: block;
    font-size: 11px;
    color: var(--qp-teal);
    margin-top: 4px;
    font-weight: 600;
}

/* Inputs & Selects */
.wc-egypt-fc-input,
.wc-egypt-fc-select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--qp-border);
    border-radius: var(--qp-radius-input);
    background-color: #ffffff;
    font-size: 14px;
    color: var(--qp-navy);
    box-sizing: border-box;
    transition: all 0.25s ease;
    outline: none;
    font-family: inherit;
}

.wc-egypt-fc-input:focus,
.wc-egypt-fc-select:focus {
    border-color: var(--qp-teal);
    box-shadow: 0 0 0 3px rgba(12, 184, 182, 0.16);
    background-color: #ffffff;
}

.wc-egypt-fc-select:disabled {
    background-color: var(--qp-bg-ice);
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* Quantity Stepper Capsule - High Specificity to resist theme overrides (WoodMart, Astra, etc.) */
.wc-egypt-fc-wrapper .wc-egypt-fc-qty-control {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 25px !important;
    padding: 3px !important;
    height: 42px !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    width: fit-content !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease;
    gap: 2px;
}

.wc-egypt-fc-wrapper .wc-egypt-fc-qty-control:hover,
.wc-egypt-fc-wrapper .wc-egypt-fc-qty-control:focus-within {
    border-color: #0284c7 !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15) !important;
}

.wc-egypt-fc-wrapper .wc-egypt-fc-qty-control .wc-egypt-fc-qty-btn {
    --btn-height: 34px;
    --btn-padding: 0;
    --btn-bgcolor: #ffffff;
    --btn-color: var(--qp-navy, #1d2d5e);
    --btn-brd-radius: 50%;
    --btn-brd-width: 1px;
    --btn-brd-color: #e2e8f0;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: var(--qp-navy, #1d2d5e) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    user-select: none;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.wc-egypt-fc-wrapper .wc-egypt-fc-qty-control .wc-egypt-fc-qty-btn .wc-egypt-qty-symbol {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: inherit !important;
    pointer-events: none;
}

.wc-egypt-fc-wrapper .wc-egypt-fc-qty-control .wc-egypt-fc-qty-btn svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
    transition: transform 0.15s ease;
}

.wc-egypt-fc-wrapper .wc-egypt-fc-qty-control .wc-egypt-fc-qty-btn:hover {
    background: #0284c7 !important;
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    transform: scale(1.06);
    box-shadow: 0 2px 5px rgba(2, 132, 199, 0.3) !important;
}

.wc-egypt-fc-wrapper .wc-egypt-fc-qty-control .wc-egypt-fc-qty-btn:active {
    transform: scale(0.94);
}

.wc-egypt-fc-wrapper .wc-egypt-fc-qty-control input.wc-egypt-fc-qty-input[type="number"] {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 34px !important;
    min-height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--qp-navy, #1d2d5e) !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
    font-family: inherit !important;
}

.wc-egypt-fc-wrapper .wc-egypt-fc-qty-control input.wc-egypt-fc-qty-input[type="number"]::-webkit-outer-spin-button,
.wc-egypt-fc-wrapper .wc-egypt-fc-qty-control input.wc-egypt-fc-qty-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Pricing Summary Box */
.wc-egypt-fc-summary {
    background: #f0fbfb;
    border: 1.5px solid #c2eceb;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 20px 0;
}

.wc-egypt-fc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13.5px;
    color: #40557c;
}

.wc-egypt-fc-summary-row strong {
    color: var(--qp-navy);
}

.wc-egypt-fc-total-row {
    border-top: 1.5px dashed #a0dedd;
    margin-top: 10px;
    padding-top: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--qp-navy);
}

.wc-egypt-fc-total-row strong {
    font-size: 24px;
    color: var(--qp-teal);
    font-weight: 900;
}

/* Green High-Conversion Submit Button (Resists theme [type=submit] overrides) */
.wc-egypt-fc-wrapper .wc-egypt-fc-submit-btn {
    --btn-bgcolor: #16a34a;
    --btn-color: #ffffff;
    width: 100% !important;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    background-color: #16a34a !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px 28px !important;
    min-height: 54px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    border-radius: var(--wc-theme-radius-btn, var(--qp-radius-pill)) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35) !important;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    text-transform: none !important;
}

.wc-egypt-fc-wrapper .wc-egypt-fc-submit-btn:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
    background-color: #15803d !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45) !important;
    transform: translateY(-2px);
}

/* Button Icon */
.wc-egypt-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wc-egypt-btn-icon svg {
    display: block;
    stroke: currentColor;
}

/* Pulsing Shine */
.has-pulse-btn .wc-egypt-fc-submit-btn {
    animation: qp-cta-pulse 2.2s infinite;
}

@keyframes qp-cta-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(22, 163, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.wc-egypt-fc-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

/* Footer security note */
.wc-egypt-fc-footer-note {
    text-align: center;
    font-size: 12px;
    color: var(--qp-text-muted);
    margin-top: 12px;
}

/* Spinner */
.wc-egypt-btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wc-egypt-spin 0.75s linear infinite;
    display: inline-block;
}

@keyframes wc-egypt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Errors */
.wc-egypt-fc-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.6;
}

.wc-egypt-fc-field.has-error .wc-egypt-fc-input,
.wc-egypt-fc-field.has-error .wc-egypt-fc-select {
    border-color: #ef4444;
    background-color: #fffaf0;
}

/* ========================================================
   Mobile-Specific Perfect Harmonization (Screens < 768px)
   Ultra-Compact & High-Conversion Layout
   ======================================================== */
@media (max-width: 768px) {
    .wc-egypt-fc-wrapper {
        padding: 14px 12px !important;
        margin: 12px 0 !important;
        border-radius: 12px !important;
        border-width: 1px;
    }

    .wc-egypt-fc-brand-strip {
        font-size: 11px !important;
        padding: 5px 10px !important;
        margin-bottom: 8px !important;
        border-radius: 8px !important;
    }

    .wc-egypt-fc-urgency-bar {
        padding: 6px 10px !important;
        margin-bottom: 8px !important;
        font-size: 11.5px !important;
        border-radius: 8px !important;
    }

    .wc-egypt-fc-header {
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
    }

    .wc-egypt-fc-title {
        font-size: 16px !important;
        line-height: 1.35 !important;
        margin: 0 0 3px 0 !important;
    }

    .wc-egypt-fc-subtitle {
        font-size: 11.5px !important;
        margin: 0 0 5px 0 !important;
        line-height: 1.4 !important;
    }

    .wc-egypt-fc-social-proof {
        padding: 3px 10px !important;
        font-size: 10.5px !important;
        gap: 6px !important;
    }

    .wc-egypt-fc-badges-grid {
        display: none !important;
    }

    .wc-egypt-fc-grid-2,
    .wc-egypt-fc-grid-3 {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .wc-egypt-fc-field {
        margin-bottom: 8px !important;
    }

    .wc-egypt-fc-label {
        font-size: 12px !important;
        margin-bottom: 3px !important;
        font-weight: 700;
    }

    .wc-egypt-fc-input,
    .wc-egypt-fc-select {
        height: 42px !important;
        font-size: 13.5px !important;
        padding: 0 12px !important;
        border-radius: 8px !important;
    }

    .wc-egypt-field-hint {
        font-size: 10.5px !important;
        margin-top: 2px !important;
    }

    /* Locations card inside form */
    .wc-egypt-fc-locations-card {
        padding: 10px 10px !important;
        border-radius: 10px !important;
        margin: 8px 0 !important;
    }

    .wc-egypt-locations-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px !important;
        flex-wrap: wrap;
    }

    .wc-egypt-locations-title {
        font-size: 12.5px !important;
    }

    .wc-egypt-fc-location-btn {
        width: auto !important;
        height: 32px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
    }

    /* Quantity stepper control */
    .wc-egypt-fc-wrapper .wc-egypt-fc-qty-control {
        height: 36px !important;
        min-height: 36px !important;
        padding: 2px !important;
    }

    .wc-egypt-fc-wrapper .wc-egypt-fc-qty-control .wc-egypt-fc-qty-btn {
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        font-size: 16px !important;
    }

    .wc-egypt-fc-wrapper .wc-egypt-fc-qty-control .wc-egypt-fc-qty-btn .wc-egypt-qty-symbol {
        font-size: 16px !important;
    }

    .wc-egypt-fc-wrapper .wc-egypt-fc-qty-control input.wc-egypt-fc-qty-input[type="number"] {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 30px !important;
        min-height: 30px !important;
        font-size: 14px !important;
    }

    /* Pricing summary */
    .wc-egypt-fc-summary {
        padding: 10px 12px !important;
        margin: 10px 0 !important;
        border-radius: 10px !important;
    }

    .wc-egypt-fc-summary-row {
        padding: 3px 0 !important;
        font-size: 12px !important;
    }

    .wc-egypt-fc-total-row {
        margin-top: 6px !important;
        padding-top: 6px !important;
        font-size: 13px !important;
    }

    .wc-egypt-fc-total-row strong {
        font-size: 18px !important;
    }

    /* Submit button */
    .wc-egypt-fc-wrapper .wc-egypt-fc-submit-btn {
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 18px !important;
        font-size: 15.5px !important;
        border-radius: var(--qp-radius-pill) !important;
        gap: 8px !important;
    }

    .wc-egypt-fc-footer-note {
        font-size: 10.5px !important;
        margin-top: 6px !important;
        line-height: 1.4 !important;
    }
}

/* Auto-filled Location Highlight */
.fc-address-filled {
    border-color: #059669 !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
    transition: all 0.3s ease;
}
