/*!
 * MegaGlitch UX fixes – 2026-11-02 (ships in megaglitch-redesign 1.0.9)
 * --------------------------------------------------------------------
 * CSS ONLY. No behaviour, prices, payments, competition plugin output or
 * checkout are touched. Every rule is scoped to the redesign's own body
 * classes (added by MGRD_Front::body_class()):
 *   body.mgrd-on          redesign switch On / Preview
 *   body.mgrd-p-home      home page            body.mgrd-p-cart     basket
 *   body.mgrd-p-product   competition page     body.mgrd-p-faq      FAQ
 * Nothing in here matches body.mgrd-p-checkout, so the checkout is untouched.
 * The footer rules (item 2) match every redesign page except checkout.
 *
 * No new markup hooks are needed: everything targets markup that is already
 * on the live site (Divi / WooCommerce / mg-* classes). See REPORT.md.
 *
 * Brand: pink #f40386, cyan #0eedff, purple #2e0d75, ink #0c0320,
 *        card #170838, line #34197a, lavender #ece6fe, green #23e85c.
 * Many existing rules come from inline snippets with !important, so the
 * overrides below need !important and a slightly higher specificity
 * (html body.mgrd-on ... ). Each block says which item it fixes.
 */

/* =====================================================================
   ITEM 1 – Home "How it works": step titles were dark purple (#12062e) on
   the dark card. Cause: the checkout-steps rule `body.mgrd-on ol.mgrd-steps`
   in mgrd.css also matches the home list. Titles now white (17.9:1 on
   #170838), descriptions lavender #d9d1ff (12.6:1), numbers stay pink/purple
   chips. The duplicate checkout "①②③" counter circles are removed here only.
   ===================================================================== */
html body.mgrd-on.mgrd-p-home .mgrd-light ol.mgrd-steps{display:grid!important;grid-template-columns:minmax(0,1fr);gap:12px!important;padding:14px!important}
html body.mgrd-on.mgrd-p-home .mgrd-light ol.mgrd-steps li{display:flex!important;align-items:flex-start!important;gap:12px;min-height:0;line-height:1.4}
html body.mgrd-on.mgrd-p-home .mgrd-light ol.mgrd-steps li::before{content:none!important;display:none!important}
html body.mgrd-on.mgrd-p-home .mgrd-light ol.mgrd-steps li i{flex:0 0 30px;height:30px;border-radius:8px;background:var(--mg-pk,#f40386);color:#fff;font-style:normal;font-weight:900;font-size:14px;display:flex;align-items:center;justify-content:center}
html body.mgrd-on.mgrd-p-home .mgrd-light ol.mgrd-steps li b{display:block;color:#fff!important;font-size:15px;font-weight:800;line-height:1.3;margin:4px 0 3px}
html body.mgrd-on.mgrd-p-home .mgrd-light ol.mgrd-steps li span{display:block;color:#d9d1ff!important;font-size:13px;font-weight:500;line-height:1.45}
@media (min-width:700px){
  html body.mgrd-on.mgrd-p-home .mgrd-light ol.mgrd-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px!important;padding:18px 20px!important}
}

/* =====================================================================
   ITEM 2 – Phone/tablet footer (Divi theme-builder footer, stacked at
   <=980px): 18px side padding on headings, links, copyright, icons and
   payment logos; big empty gap under the social icons removed.
   ===================================================================== */
@media (max-width:980px){
  html body.mgrd-on:not(.mgrd-p-checkout) footer.et-l--footer .et_pb_row{padding-left:18px!important;padding-right:18px!important;box-sizing:border-box!important}
  /* row 1 is an empty spacer row (80% wide, 0 tall): keep it out of the way */
  html body.mgrd-on:not(.mgrd-p-checkout) footer.et-l--footer .et_pb_row:not(:has(.et_pb_module)){display:none!important}
  /* gap under the icons: column margin 30px + list margin 30px + 62px-tall Discord block */
  html body.mgrd-on:not(.mgrd-p-checkout) footer.et-l--footer .et_pb_row:has(.mg-footer-social){padding-top:24px!important;padding-bottom:20px!important}
  html body.mgrd-on:not(.mgrd-p-checkout) footer.et-l--footer .et_pb_row:has(.mg-footer-social) .et_pb_column{margin-bottom:0!important}
  html body.mgrd-on:not(.mgrd-p-checkout) footer.et-l--footer ul.mg-footer-social{margin-bottom:0!important;vertical-align:top!important}
  html body.mgrd-on:not(.mgrd-p-checkout) footer.et-l--footer .mg-discord-code{vertical-align:top!important;margin-bottom:0!important;height:auto!important}
  html body.mgrd-on:not(.mgrd-p-checkout) footer.et-l--footer .mg-discord-code ul{margin:0!important;padding:0!important}
  /* copyright line: a little breathing room above the redesign link bar */
  html body.mgrd-on:not(.mgrd-p-checkout) footer.et-l--footer .et_pb_row:last-child{padding-bottom:16px!important}
}

/* =====================================================================
   ITEM 3 – Basket notices + "Return to shop" in brand colours (were Divi
   default blue #2ea3f2). Info = cyan edge, success = green edge, error =
   pink edge, all on the dark card with white text (18.6:1). "Return to shop"
   is a deeper brand pink (#c80069 -> #d1006f) so white text passes AA
   (>= 5.3:1); white on the standard #f40386 is only 4.0:1.
   The custom "N ENTRIES ADDED / KEEP PLAYING" notice (.mg-cart-success)
   keeps its own design.
   ===================================================================== */
html body.mgrd-on.mgrd-p-cart .woocommerce .woocommerce-info,
html body.mgrd-on.mgrd-p-cart .woocommerce .woocommerce-message:not(.mg-cart-success),
html body.mgrd-on.mgrd-p-cart .woocommerce .woocommerce-error{
  background:var(--mg-card,#170838)!important;color:#fff!important;
  border:1px solid var(--mg-line,#34197a)!important;border-left:4px solid var(--mg-cy,#0eedff)!important;border-radius:10px!important;
  padding:14px 16px!important;margin:0 0 16px!important;font-size:15px!important;font-weight:600!important;line-height:1.45!important;
  box-shadow:none!important;list-style:none!important}
html body.mgrd-on.mgrd-p-cart .woocommerce .woocommerce-message:not(.mg-cart-success){border-left-color:var(--mg-ok,#23e85c)!important}
html body.mgrd-on.mgrd-p-cart .woocommerce .woocommerce-error{border-left-color:var(--mg-pk,#f40386)!important}
html body.mgrd-on.mgrd-p-cart .woocommerce .woocommerce-info::before,
html body.mgrd-on.mgrd-p-cart .woocommerce .woocommerce-message:not(.mg-cart-success)::before,
html body.mgrd-on.mgrd-p-cart .woocommerce .woocommerce-error::before{display:none!important}
html body.mgrd-on.mgrd-p-cart .woocommerce .woocommerce-error li{margin:0!important;padding:0!important;color:#fff!important}
html body.mgrd-on.mgrd-p-cart .woocommerce .woocommerce-info a:not(.button),
html body.mgrd-on.mgrd-p-cart .woocommerce .woocommerce-message:not(.mg-cart-success) a:not(.button),
html body.mgrd-on.mgrd-p-cart .woocommerce .woocommerce-error a:not(.button){color:var(--mg-cy,#0eedff)!important;text-decoration:underline!important;font-weight:800}
html body.mgrd-on.mgrd-p-cart .woocommerce .return-to-shop{margin:4px 0 40px!important}
html body.mgrd-on.mgrd-p-cart .woocommerce .return-to-shop a.button{
  display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:12px 24px!important;
  background:linear-gradient(90deg,#c80069,#d1006f)!important;color:#fff!important;border:0!important;border-radius:11px!important;
  font-size:15px!important;font-weight:800!important;letter-spacing:.3px;text-transform:none;line-height:1.2!important}
html body.mgrd-on.mgrd-p-cart .woocommerce .return-to-shop a.button::after{display:none!important}
html body.mgrd-on.mgrd-p-cart .woocommerce .return-to-shop a.button:hover,
html body.mgrd-on.mgrd-p-cart .woocommerce .return-to-shop a.button:focus-visible{filter:brightness(1.08);outline:2px solid var(--mg-cy,#0eedff);outline-offset:2px}
/* Phones: side padding for the "YOUR ENTRIES" heading, notices and basket cards
   (tablets keep Divi's 80% row, which already has side space) */
@media (max-width:767px){
  html body.mgrd-on.mgrd-p-cart #main-content .et_pb_section:has(.et_pb_wc_cart_totals) > .et_pb_row{padding-left:14px!important;padding-right:14px!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
  html body.mgrd-on.mgrd-p-cart #main-content .et_pb_post_title h1{margin-left:0!important;margin-right:0!important}
  html body.mgrd-on.mgrd-p-cart #main-content .et_pb_post_title{margin-bottom:18px!important}
  html body.mgrd-on.mgrd-p-cart #main-content .et_pb_section:has(.et_pb_wc_cart_totals){padding-bottom:32px!important}
}

/* =====================================================================
   ITEM 4 – Phone basket item row (<=767px): whole thumbnail (contain,
   84px), remove × is a 44px tap target, no stray dark panel behind the ×
   (it was the remove cell's own background), quantity/price boxes sit
   inside the card padding.
   ===================================================================== */
@media (max-width:767px){
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item{grid-template-columns:84px minmax(0,1fr) minmax(0,1fr) 44px!important;column-gap:10px!important;row-gap:0!important;padding:12px!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.product-thumbnail,
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.product-name,
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.product-remove{background:transparent!important;border:0!important;padding:0!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.product-thumbnail img{width:84px!important;height:84px!important;max-width:none!important;object-fit:contain!important;background:#07011a!important;padding:2px!important;box-sizing:border-box!important;display:block!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.product-name{text-align:left!important;align-self:start}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.product-name > a{display:block;text-align:left!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.product-remove{display:flex!important;align-items:flex-start!important;justify-content:flex-end!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.product-remove a.remove{width:44px!important;height:44px!important;min-width:44px!important;font-size:22px!important;line-height:1!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.product-quantity,
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.product-subtotal{margin-top:12px!important;padding:10px 12px!important;box-sizing:border-box!important;min-width:0!important;border-radius:10px!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.product-quantity{grid-column:1 / 3!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.product-subtotal{grid-column:3 / 5!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart tr.cart_item td.mg-cart-mobile-tier-cell{margin-top:12px!important}
}

/* =====================================================================
   ITEM 5 – Phone basket "Entry summary": the two rows had different column
   splits (317/63 vs 311/69px) so the vertical divider zig-zagged and cut
   into the values. Divider removed, one shared split, values right-aligned.
   ===================================================================== */
html body.mgrd-on.mgrd-p-cart .cart_totals table.shop_table{border-collapse:separate!important;border-spacing:0!important;overflow:hidden;border-radius:10px!important}
html body.mgrd-on.mgrd-p-cart .cart_totals table.shop_table tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;border:0!important}
html body.mgrd-on.mgrd-p-cart .cart_totals table.shop_table tr + tr{border-top:1px solid rgba(236,230,254,.18)!important}
html body.mgrd-on.mgrd-p-cart .cart_totals table.shop_table th,
html body.mgrd-on.mgrd-p-cart .cart_totals table.shop_table td{display:block!important;border:0!important;background:transparent!important;padding:13px 14px!important;width:auto!important}
html body.mgrd-on.mgrd-p-cart .cart_totals table.shop_table td{text-align:right!important;white-space:nowrap!important}
html body.mgrd-on.mgrd-p-cart .cart_totals table.shop_table td::before{display:none!important}

/* =====================================================================
   ITEM 6 – Desktop basket: items and summary side by side.
   >=1100px: two-column grid (items | 380px sticky summary).
   981–1099px: Divi's empty half-column hidden, summary centred under items.
   Only when the basket has items (empty basket keeps the plain layout).
   ===================================================================== */
@media (min-width:981px){
  html body.mgrd-on.mgrd-p-cart #main-content .et_pb_section:has(.et_pb_wc_cart_totals .cart_totals) .et_pb_column_empty{display:none!important}
  html body.mgrd-on.mgrd-p-cart #main-content .et_pb_section:has(.et_pb_wc_cart_totals .cart_totals) .et_pb_column:has(.et_pb_wc_cart_totals){width:100%!important;float:none!important;margin:0!important}
  html body.mgrd-on.mgrd-p-cart #main-content .et_pb_wc_cart_totals .cart_totals{float:none!important;margin:0 auto!important;width:min(100%,560px)!important}
}
@media (min-width:1100px){
  html body.mgrd-on.mgrd-p-cart #main-content .et_pb_section:has(.et_pb_wc_cart_totals .cart_totals){
    display:grid!important;grid-template-columns:minmax(0,1fr) 380px;column-gap:28px;align-items:start;
    padding-left:max(24px,calc((100% - 1400px) / 2))!important;padding-right:max(24px,calc((100% - 1400px) / 2))!important;box-sizing:border-box!important}
  html body.mgrd-on.mgrd-p-cart #main-content .et_pb_section:has(.et_pb_wc_cart_totals .cart_totals) > .et_pb_row{width:100%!important;max-width:none!important;margin:0!important;min-width:0}
  html body.mgrd-on.mgrd-p-cart #main-content .et_pb_section:has(.et_pb_wc_cart_totals .cart_totals) > .et_pb_row:has(.et_pb_wc_cart_totals){
    grid-column:2;grid-row:1 / span 30;position:sticky;top:calc(var(--mgrd-bh,0px) + var(--mgrd-hh,64px) + 16px);margin-top:var(--mgux-cart-sum-top,70px)!important}
  html body.mgrd-on.mgrd-p-cart #main-content .et_pb_section:has(.et_pb_wc_cart_totals .cart_totals) > .et_pb_row:not(:has(.et_pb_wc_cart_totals)){grid-column:1;grid-row:auto}
  html body.mgrd-on.mgrd-p-cart #main-content .et_pb_wc_cart_totals .cart_totals{width:100%!important}
}
/* 1.0.10: the same layout without CSS :has(). Browsers without :has() (Firefox before 121, Safari before 15.4, some
   in-app browsers) ignored every rule above, so Divi's own layout showed: the summary in the right half UNDER the
   table with an empty half-column (a big black area) to its left. mgrd.js now tags the Divi section/rows
   (.mgrd-cgrid / .mgrd-csum / .mgrd-citems, only while the basket has items) and these class rules do the same job.
   Kept as separate rules: one :has() in a selector list would make a browser without it drop the whole rule.
   Also: any extra Divi row in that section (notices, cross-sells) now stacks under the items instead of overlapping. */
@media (min-width:981px){
  html body.mgrd-on.mgrd-p-cart .et_pb_section.mgrd-cgrid .mgrd-csum .et_pb_column_empty{display:none!important}
  html body.mgrd-on.mgrd-p-cart .et_pb_section.mgrd-cgrid .mgrd-csum .et_pb_column:not(.et_pb_column_empty){width:100%!important;float:none!important;margin:0!important}
  html body.mgrd-on.mgrd-p-cart .et_pb_section.mgrd-cgrid .et_pb_wc_cart_totals .cart_totals{float:none!important;margin:0 auto!important;width:min(100%,560px)!important}
}
@media (min-width:1100px){
  html body.mgrd-on.mgrd-p-cart .et_pb_section.mgrd-cgrid{
    display:grid!important;grid-template-columns:minmax(0,1fr) 380px;column-gap:28px;align-items:start;
    padding-left:max(24px,calc((100% - 1400px) / 2))!important;padding-right:max(24px,calc((100% - 1400px) / 2))!important;box-sizing:border-box!important}
  html body.mgrd-on.mgrd-p-cart .et_pb_section.mgrd-cgrid > .et_pb_row{width:100%!important;max-width:none!important;margin:0!important;min-width:0}
  html body.mgrd-on.mgrd-p-cart .et_pb_section.mgrd-cgrid > .et_pb_row.mgrd-csum{
    grid-column:2;grid-row:1 / span 30;position:sticky;top:calc(var(--mgrd-bh,0px) + var(--mgrd-hh,64px) + 16px);margin-top:var(--mgux-cart-sum-top,70px)!important}
  html body.mgrd-on.mgrd-p-cart .et_pb_section.mgrd-cgrid > .et_pb_row.mgrd-citems{grid-column:1;grid-row:auto}
  html body.mgrd-on.mgrd-p-cart .et_pb_section.mgrd-cgrid .et_pb_wc_cart_totals .cart_totals{width:100%!important}
}
/* "Boost your chances" panel from 768px up (tablet table view and the narrower grid column): heading on
   top, bundle buttons in a 3-column grid (6 across from 1500px). At 768–980px the six buttons used to be
   clipped off the right-hand side. */
@media (min-width:768px){
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart .mg-cart-tier-panel{grid-template-columns:minmax(0,1fr)!important;row-gap:10px!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart .mg-cart-tier-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart .mg-cart-tier-options > button{width:auto!important;min-width:0!important;margin:0!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart .mg-cart-tier-heading{text-align:left!important}
}
@media (min-width:1500px){
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart .mg-cart-tier-options{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}

/* =====================================================================
   ITEM 7 – Phone FAQ: long questions ran under the "+" (mgrd.css sets
   padding:12px!important on the summary; the + sits 4–32px from the right).
   ===================================================================== */
html body.mgrd-on.mgrd-p-faq .mg-faq-item > summary{padding-right:48px!important}

/* =====================================================================
   ITEM 9 – Competition page: the WooCommerce magnifier covered the artwork
   title (e.g. STEAM DECK). Hidden: every competition image carries text or
   badges in all four corners, and tapping/clicking the image itself already
   opens the same full-screen viewer (checked on the live site), so nothing
   is lost. A zoom-in cursor keeps the hint on desktop.
   ===================================================================== */
html body.mgrd-on.mgrd-p-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger{display:none!important}
html body.mgrd-on.mgrd-p-product .woocommerce-product-gallery__image a{cursor:zoom-in}

/* =====================================================================
   ITEM 11 – Bundle cards: the "NN% OFF" ribbon sat 1px above the ticket
   number. More room at the top of each card and a 6px corner inset.
   ===================================================================== */
html body.mgrd-on.mgrd-p-product .mg-v5-options-grid .mg-v5-ticket-choice{padding-top:36px!important}
html body.mgrd-on.mgrd-p-product .mg-v5-options-grid .mg-v5-ticket-choice .mg-v5-discount{top:7px!important;right:7px!important}
/* same fix for the basket's "Boost your chances" bundle buttons (the "NN% OFF" badge touched "NNN ENTRIES") */
html body.mgrd-on.mgrd-p-cart .mg-cart-tier-options > button.mg-cart-tier-button{padding-top:30px!important}
html body.mgrd-on.mgrd-p-cart .mg-cart-tier-options > button.mg-cart-tier-button .mg-cart-tier-discount{top:7px!important;right:7px!important}

/* =====================================================================
   ITEM 12 – Desktop competition page: the image column (≈490px) sat beside
   a ≈1190px buy column, leaving a tall empty space under the image. The
   image column now stays in view (sticky) while the buy panel scrolls, so
   the space is used and nothing is hidden or reordered.
   ===================================================================== */
@media (min-width:981px){
  html body.mgrd-on.mgrd-p-product #main-content .et_pb_row:has(> .et_pb_column > .et_pb_wc_images){display:flex!important;align-items:flex-start!important}
  html body.mgrd-on.mgrd-p-product #main-content .et_pb_row:has(> .et_pb_column > .et_pb_wc_images) > .et_pb_column:has(> .et_pb_wc_images){position:sticky!important;top:calc(var(--mgrd-bh,0px) + var(--mgrd-hh,64px) + 20px);align-self:flex-start;float:none!important}
  html body.mgrd-on.mgrd-p-product #main-content .et_pb_row:has(> .et_pb_column > .et_pb_wc_images) > .et_pb_column:not(:has(> .et_pb_wc_images)){float:none!important}
}

/* =====================================================================
   1.0.9 additions (basket). Same rules as above: every selector starts
   with html body.mgrd-on.mgrd-p-cart; display only. ":not(#mgrd-z)" only
   adds weight (it matches every element) to beat inline snippet CSS.
   ===================================================================== */
/* 2. No widget area / search box on the basket (theme sidebar, Divi widget area, any search form) */
html body.mgrd-on.mgrd-p-cart #sidebar,
html body.mgrd-on.mgrd-p-cart #secondary,
html body.mgrd-on.mgrd-p-cart .et_pb_widget_area,
html body.mgrd-on.mgrd-p-cart .widget-area,
html body.mgrd-on.mgrd-p-cart .widget_search,
html body.mgrd-on.mgrd-p-cart .widget_product_search,
html body.mgrd-on.mgrd-p-cart .wp-block-search,
html body.mgrd-on.mgrd-p-cart .woocommerce-product-search,
html body.mgrd-on.mgrd-p-cart form[role="search"],
html body.mgrd-on.mgrd-p-cart form.search-form,
html body.mgrd-on.mgrd-p-cart .et_pb_search,
html body.mgrd-on.mgrd-p-cart #et_top_search,
html body.mgrd-on.mgrd-p-cart .et_search_outer,
html body.mgrd-on.mgrd-p-cart .site-search{display:none!important}
/* ...and the content takes the full width the sidebar left (Divi #left-area + its divider line, or a theme's #primary) */
html body.mgrd-on.mgrd-p-cart #left-area,
html body.mgrd-on.mgrd-p-cart #primary.content-area{width:100%!important;max-width:none!important;float:none!important;padding-right:0!important;margin-right:0!important}
html body.mgrd-on.mgrd-p-cart #main-content .container::before{display:none!important}

/* 3a. Desktop basket table header: brand bar, readable labels lined up with their columns (no theme white/grey cells) */
html body.mgrd-on.mgrd-p-cart table.shop_table.cart:not(#mgrd-z) thead{background:linear-gradient(90deg,var(--mg-pur,#2e0d75),var(--mg-card,#170838))!important}
html body.mgrd-on.mgrd-p-cart table.shop_table.cart:not(#mgrd-z) thead th{background:transparent!important;color:var(--mg-lav,#ece6fe)!important;
  font-size:12px!important;font-weight:900!important;letter-spacing:.06em!important;line-height:1.2!important;text-transform:uppercase!important;
  padding:14px 12px!important;vertical-align:middle!important;white-space:nowrap!important;text-align:left!important;border:0!important}
html body.mgrd-on.mgrd-p-cart table.shop_table.cart:not(#mgrd-z) thead th.product-quantity{text-align:center!important}
/* 3b. "Boost your chances": tiles wrap instead of running off the right edge, at any width and in any page builder layout */
@media (min-width:768px){
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart .mg-cart-tier-panel{overflow:visible!important;max-width:100%!important;box-sizing:border-box!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart .mg-cart-tier-options{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important;gap:8px!important;
    flex:1 1 auto!important;min-width:0!important;width:auto!important;max-width:100%!important;overflow:visible!important}
  html body.mgrd-on.mgrd-p-cart table.shop_table.cart .mg-cart-tier-options > button{min-width:0!important;width:auto!important;max-width:none!important;margin:0!important}
}
/* 3c. Stray white bars: the theme's 1em white rule above the basket buttons row, the white frame round Entry subtotal /
   Total to pay, and the white outline on "Update entries" all become the brand line colour */
html body.mgrd-on.mgrd-p-cart table.shop_table.cart:not(#mgrd-z) td.actions{border-top:0!important}
html body.mgrd-on.mgrd-p-cart .cart_totals:not(#mgrd-z) table.shop_table{border:1px solid var(--mg-line,#34197a)!important;background:var(--mg-card,#170838)!important}
html body.mgrd-on.mgrd-p-cart table.shop_table.cart:not(#mgrd-z) button[name="update_cart"]{border:2px solid var(--mg-line,#34197a)!important;border-radius:10px!important}

/* 5. "Secure your entries now →" shows one arrow: the text arrow stays, the theme's icon arrow (Divi on hover/tap,
   other themes always) goes. The busy spinner from mgrd.css may still use ::after while the next page loads. */
html body.mgrd-on.mgrd-p-cart a.checkout-button:not(.mgrd-busy):not(#mgrd-z)::after,
html body.mgrd-on.mgrd-p-cart a.checkout-button:not(#mgrd-z)::before{content:none!important;display:none!important}

/* 6. Empty basket, self-exclusion / time-out and other basket notices: same brand card wherever WooCommerce, Divi's
   notice module or the block notices print them (the rules above only reach notices inside .woocommerce) */
html body.mgrd-on.mgrd-p-cart .woocommerce-info:not(#mgrd-z),
html body.mgrd-on.mgrd-p-cart .woocommerce-message:not(.mg-cart-success):not(#mgrd-z),
html body.mgrd-on.mgrd-p-cart .woocommerce-error:not(#mgrd-z),
html body.mgrd-on.mgrd-p-cart .wc-block-components-notice-banner:not(#mgrd-z){
  background:var(--mg-card,#170838)!important;color:#fff!important;
  border:1px solid var(--mg-line,#34197a)!important;border-left:4px solid var(--mg-cy,#0eedff)!important;border-radius:10px!important;
  padding:14px 16px!important;margin:0 0 16px!important;font-size:15px!important;font-weight:600!important;line-height:1.45!important;
  box-shadow:none!important;list-style:none!important;font-family:inherit}
html body.mgrd-on.mgrd-p-cart .woocommerce-message:not(.mg-cart-success):not(#mgrd-z),
html body.mgrd-on.mgrd-p-cart .wc-block-components-notice-banner.is-success:not(#mgrd-z){border-left-color:var(--mg-ok,#23e85c)!important}
html body.mgrd-on.mgrd-p-cart .woocommerce-error:not(#mgrd-z),
html body.mgrd-on.mgrd-p-cart .wc-block-components-notice-banner.is-error:not(#mgrd-z){border-left-color:var(--mg-pk,#f40386)!important}
html body.mgrd-on.mgrd-p-cart .woocommerce-info:not(#mgrd-z)::before,
html body.mgrd-on.mgrd-p-cart .woocommerce-message:not(.mg-cart-success):not(#mgrd-z)::before,
html body.mgrd-on.mgrd-p-cart .woocommerce-error:not(#mgrd-z)::before{display:none!important}
html body.mgrd-on.mgrd-p-cart .wc-block-components-notice-banner:not(#mgrd-z) > svg{display:none!important}
html body.mgrd-on.mgrd-p-cart .woocommerce-error:not(#mgrd-z) li,
html body.mgrd-on.mgrd-p-cart .wc-block-components-notice-banner:not(#mgrd-z) *{color:#fff!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
html body.mgrd-on.mgrd-p-cart .woocommerce-info:not(#mgrd-z) a:not(.button),
html body.mgrd-on.mgrd-p-cart .woocommerce-message:not(.mg-cart-success):not(#mgrd-z) a:not(.button),
html body.mgrd-on.mgrd-p-cart .woocommerce-error:not(#mgrd-z) a:not(.button),
html body.mgrd-on.mgrd-p-cart .wc-block-components-notice-banner:not(#mgrd-z) a:not(.button){color:var(--mg-cy,#0eedff)!important;text-decoration:underline!important;font-weight:800}
html body.mgrd-on.mgrd-p-cart .return-to-shop:not(#mgrd-z){margin:4px 0 40px!important}
html body.mgrd-on.mgrd-p-cart .return-to-shop:not(#mgrd-z) a.button,
html body.mgrd-on.mgrd-p-cart a.wc-backward:not(#mgrd-z){
  display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:12px 24px!important;
  background:linear-gradient(90deg,#c80069,#d1006f)!important;color:#fff!important;border:0!important;border-radius:11px!important;
  font-size:15px!important;font-weight:800!important;letter-spacing:.3px;text-transform:none;line-height:1.2!important;text-decoration:none!important;font-family:inherit}
html body.mgrd-on.mgrd-p-cart .return-to-shop:not(#mgrd-z) a.button:not(.mgrd-busy)::after,
html body.mgrd-on.mgrd-p-cart a.wc-backward:not(.mgrd-busy):not(#mgrd-z)::after{display:none!important}
/* WooCommerce focuses a new notice for screen readers; show that as a brand ring, not the theme's white outline */
html body.mgrd-on.mgrd-p-cart .woocommerce-error:focus,
html body.mgrd-on.mgrd-p-cart .woocommerce-info:focus,
html body.mgrd-on.mgrd-p-cart .woocommerce-message:focus,
html body.mgrd-on.mgrd-p-cart .woocommerce-notices-wrapper:focus{outline:2px solid var(--mg-line,#34197a)!important;outline-offset:2px}

/*!
 * MegaGlitch UX sweep fixes – 2026-11-30 (to append to mg-ux-fixes.css)
 * CSS ONLY. Nothing here touches T&Cs, Privacy, payments, giveaway
 * settings or CookieYes copy. Each block names the REPORT.md item.
 *
 * Not live. Tested by injecting into a local headless browser against
 * the live HTML (the box WordPress copy on port 8136 was stopped for RAM).
 * The first inject used the wrong featured-image selector; this file
 * uses the real one: a.mgrd-him (aspect-ratio 4/3) and img inside it.
 */

/* =====================================================================
   ITEM 2 – Mobile first screen: the bottom tab bar covers the featured
   card price and the last part of the account form. The image on the
   home featured card uses aspect-ratio 4/3, which is too tall on a
   390x844 phone once the winners ticker, header, Black Friday bar and
   tab bar are counted. Flatten the image on short phones so the price
   stays in view. Also stop in-page jumps hiding under the sticky header.
   ===================================================================== */
@media (max-width: 980px) {
  html{scroll-padding-top:calc(var(--mgrd-hh,56px) + 44px + env(safe-area-inset-top,0px));scroll-padding-bottom:calc(var(--mgrd-bb,64px) + env(safe-area-inset-bottom,0px))}
}
@media (max-width: 767px) and (max-height: 900px) {
  html body.mgrd-on.mgrd-p-home .mgrd-hcard a.mgrd-him{
    aspect-ratio:16/10!important;
    max-height:220px!important;
  }
  html body.mgrd-on.mgrd-p-home .mgrd-hcard a.mgrd-him img{
    max-height:220px!important;
    object-fit:cover!important;
  }
  /* A little air at the bottom of the logged-out account form so the
     referral field is not sliced by the tab bar on first view. */
  html body.mgrd-on.mgrd-p-account .mgrd-acc,
  html body.mgrd-on.woocommerce-account #customer_login{
    padding-bottom:12px;
  }
}

/* =====================================================================
   ITEM 3 – CookieYes banner sits over the bottom tab bar on phones and
   tablets (the banner is bottom-left, the tab bar is bottom-full).
   This only moves our page's copy of the banner box up; it does not
   change CookieYes settings or wording.
   ===================================================================== */
@media (max-width: 980px) {
  html body.mgrd-on.mgrd-has-bbar .cky-consent-container.cky-box-bottom-left{
    bottom:calc(var(--mgrd-bb,64px) + env(safe-area-inset-bottom,0px))!important;
  }
}

/* =====================================================================
   ITEM 4 – The visible countdown already says "ROUND REVIEW IN". A
   leftover giveaway-plugin label "Current Countdown Ends:" is still in
   the page (0×0, not aria-hidden). Hide it from view and from
   assistive tech. Do not edit the giveaway plugin itself.
   ===================================================================== */
html body.mgrd-on p.lty-lottery-time-left-label,
html body.mgrd-on .lty-lottery-date-ranges .lty-lottery-countdown-timer,
html body.mgrd-on .lty-lottery-countdown-timer{
  display:none!important;
}

/* =====================================================================
   ITEM 12 – A few primary controls are just under the 44px tap target.
   The winners ticker is 42px on phones; competition-card "Enter now"
   buttons were 40px on some list views. CookieYes buttons are also
   short, but those settings are off-limits, so they are not changed.
   ===================================================================== */
@media (max-width: 980px) {
  html body.mgrd-on #mg-ws{min-height:44px;}
  html body.mgrd-on .mgrd-card a.mgrd-btn,
  html body.mgrd-on .mgrd-hcard a.mgrd-btn,
  html body.mgrd-on .mgrd-card button.mgrd-btn,
  html body.mgrd-on .mgrd-hcard button.mgrd-btn{
    min-height:44px!important;
  }
}

/* =====================================================================
   MegaGlitch mobile bug-check fixes - 2026-12-03 (appended to mg-ux-fixes.css)
   Items: 4 lights over open menu, 5 bow over "Today's featured", 15 tap
   targets + pink contrast, 16 winners strip offset/fit, 18 layout shift.
   Look is unchanged apart from the fix. CSS only. Delete this block to undo.
   ===================================================================== */

/* ITEM 4 - hide the header's fairy lights while the phone menu is open */
html.mgx-on body.mgrd-menu-open .mgrd-hdr::after,
html.mgx-on body.mgrd-menu-open .mgrd-hdr::before,
html.mgx-on body.mgrd-menu-open .mgrd-hdr-in::before,
html.mgx-on body.mgrd-menu-open .mgrd-hdr-in::after{
  display:none!important;
}

/* ITEM 5 - move the bow right of the "Today's featured" label on phones */
@media (max-width:480px){
  html.mgx-on body.mgrd-on .mgrd-hcard::before{
    background-position:68% 1px,0 0!important;
  }
}

/* ITEM 16 - winners strip is 44px, so the header and page start at 44px, not 42px.
   Long prize names: drop the date on phones to give the name room. */
@media (max-width:980px){
  html body.mgrd-on:has(#mg-ws .mg-ws-l2){--mgrd-bh:44px;padding-top:44px!important;}
}
@media (max-width:430px){
  html body.mgrd-on #mg-ws .mg-ws-l2 .mg-ws-d{display:none;}
}
@media (max-width:400px){
  html body.mgrd-on #mg-ws .mg-ws-l2 em{display:none;}
}

/* ITEM 15a - tap targets on phones. The box grows invisibly (padding with an
   equal negative margin) so nothing moves; inline links inside sentences are left alone. */
@media (max-width:767px){
  html body.mgrd-on .mgrd-cb h3 a,
  html body.mgrd-on .mgbf-xcb h3 a{
    display:block;padding:12px 0;margin:-12px 0;
  }
  html body.mgrd-on .mgrd-sec > a,
  html body.mgrd-on a.mgrd-rr{
    display:inline-block;padding:11px 0;margin:-11px 0;
  }
  html body.mgrd-on .mgrd-crumb a,
  html body.mgrd-on a.mg-v5-details-link{
    display:inline-flex;align-items:center;min-height:44px;
  }
  html body.mgrd-on a.mgrd-logo{padding:8px 0;margin:-8px 0;box-sizing:content-box;}
  html body.mgrd-on .mg-contact-email-card a{display:inline-block;padding:12px 0;}
  html body.mgrd-on .et-l--footer .et_pb_text_inner p > a{
    display:inline-block;padding:12px 0;margin:-4px 0;
  }
  html body.mgrd-on .et-l--footer .et_pb_social_media_follow li a.icon,
  html body.mgrd-on .et-l--footer .et_pb_social_icon a.icon{position:relative;}
  html body.mgrd-on .et-l--footer .et_pb_social_media_follow li a.icon::after,
  html body.mgrd-on .et-l--footer .et_pb_social_icon a.icon::after{
    content:"";position:absolute;left:-6px;right:-6px;top:-6px;bottom:-6px;
  }
}

/* ITEM 15b - white text on the brand pink was 4.04:1 (needs 4.5:1).
   Same pink, a touch deeper, only where text sits on it: 4.82:1. */
html body.mgrd-on a.mgbf-v,
html body.mgrd-on a.mgbf-b.mgbf-add,
html body.mgrd-on button.mgbf-qb.on,
html body.mgrd-on button.mgbf-nudge-go,
html body.mgrd-on li.lty-predefined-button.mg-v5-ticket-choice.mg-v5-selected,
html body.mgrd-on .mgrd-light .mgrd-steps i,
html body.mgrd-on a.mgwm-review,
html body.mgrd-on button.woocommerce-form-login__submit,
html body.mgrd-on button.woocommerce-form-register__submit{
  background-color:#dd0377!important;
}
html body.mgrd-on .woocommerce form .form-row .required,
html body.mgrd-on form.woocommerce-form span.required{color:#ff7a93!important;}

/* ITEM 18 - layout shift. These pages first paint with Divi's default 27px row
   padding or a 26px title, then a late Divi stylesheet changes them and the page
   jumps. Set the final values up front so nothing moves. */
html body.page-id-333501 .et_pb_section_0{padding-top:0;}
html body.page-id-333501 .et_pb_row_0{padding-top:0;padding-bottom:0;}
@media (min-width:981px){
  html body.page-id-333501 .et_pb_row_0{width:100%;max-width:1450px;}
}
@media (min-width:768px){
  html body.page-id-3 .et_pb_post_title_0 .entry-title,
  html body.page-id-42 .et_pb_post_title_0 .entry-title{font-size:44px;line-height:44px;}
}
