/*
 * Memphis Fire: contrast corrections, bounded pass (Chef via expo 64b6b5b2, measured table expo 7fd8faff).
 * Each block names the rule it corrects and the measured ratio before. The store renders dark; these five rules
 * were written for (or default to) a light surface. Loaded after the theme and child theme sheets.
 */

/* 1. Text inside product tabs.
   Corrects flatsome-child/style.css `section.section:not(.dark) .tabbed-content h3,h4,h5 {color:#1a1a1a !important}`
   and `... p {color:#2a2a2a !important}`. On a product page that section renders #0f1520: 1.05 to 1.33
   ("KNOWN ALLERGENS", "TRACE PEANUTS AND NUTS"). Product pages only: the FAQ's tab section really is light. */
body.single-product section.section:not(.dark) .tabbed-content :is(h1, h2, h3, h4, h5, h6),
body.single-product .product-footer .tabbed-content :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff !important;
}
body.single-product section.section:not(.dark) .tabbed-content :is(p, li, td, th, dd, dt),
body.single-product .product-footer .tabbed-content :is(p, li, td, th, dd, dt) {
    color: #f1f1f1 !important;
}

/* 2. Prices on the product page.
   Corrects flatsome-shop.css `span.amount {color:#111}`: #111 on #0a0f1a, 1.01 ("$59.95 - $70.95"). */
body.single-product .product-main span.amount,
body.single-product .product-main .price,
body.single-product .product-main .woocommerce-variation-price span.amount {
    color: #ffffff !important;
}

/* 3. Product tab labels.
   Corrects flatsome-child/style.css `.woocommerce-tabs .tabs li.active a {color:var(--mf-amber) !important}` on the
   stock product layout, where the active tab is an amber pill: amber on amber, 1.00 ("Description" was a blank pill).
   The tabs beside it took Flatsome's `.nav > li > a {color:rgba(74,74,74,.85)}`: 1.88. */
body.single-product .product-footer .woocommerce-tabs .tabs > li.active > a {
    color: #0a0f1a !important;
}
body.single-product .product-footer .woocommerce-tabs .tabs > li:not(.active) > a {
    color: rgba(255, 255, 255, 0.85) !important;
}
/* The same tab row inside a section the child theme treats as light but which renders dark (key lime pie, gift
   cards): #b45309 on #0f1520, 3.64 to 3.82. */
body.single-product section.section:not(.dark) .tabbed-content .nav > li > a,
body.single-product section.section:not(.dark) .tabbed-content .nav > li > a span {
    color: #f8a20e !important;
}

/* 4. Form labels.
   Corrects Flatsome `label {color:#222}`: 1.20 to 1.32 on the dark ground ("Delivery date:", "Color", "Size").
   `inherit` takes the colour of the text around the field, so a label on a light card stays dark. */
label,
legend {
    color: inherit;
}

/* 5. The shared footer.
   Corrects inline `color:rgba(255,255,255,.15 to .35)` on the footer's small print: 1.51 to 3.18 on #0a0f1a
   (address, hours, copyright, Privacy Policy, Cookie Policy, Allergens). About 350 instances site-wide. */
#footer p,
#footer p a,
#footer p span {
    color: rgba(255, 255, 255, 0.75) !important;
}
#footer p a:hover,
#footer p a:focus {
    color: #ffffff !important;
}

/* 6. The Kitchen Gratuity box on checkout (expo 2c1317a3).
   The box is a light card (#fffbf0, white buttons, amber when chosen) with its own dark inline colours, but the
   checkout's dark sheet (`body.mf-checkout .woocommerce-checkout-payment * {color:#c0c0c0 !important}`) paints its
   text pale: 1.76 on cream, 1.82 on white, 1.14 on amber. Dark text on all three. The doubled id is there only to
   outrank that rule. */
#mf-gratuity#mf-gratuity,
#mf-gratuity#mf-gratuity p,
#mf-gratuity#mf-gratuity span,
#mf-gratuity#mf-gratuity label,
#mf-gratuity#mf-gratuity button {
    color: #1a1a1a !important;
}
