/* UK designs adapted to the US native 3clicks markup, 25 November 2026.
   Sources: ep-uk-phone-service.css (hero/cards), ep-uk-services-gallery.css
   (two-column gallery), ep-uk-service-point-v2.css (location panels), and
   ep-uk-typography.css (fixed heading token). Content and native handlers stay native. */
body.ep-us-design {
  --ep-font-size-h1:34px; --ep-line-height-h1:1.2;
  --ep-blue:#0073aa; --ep-navy:#2c3e50; --ep-muted:#596b78;
  --ep-line:#d7e3eb; --ep-pale:#edf5fa;
  color:var(--ep-navy); font:16px/1.65 Helvetica,Arial,sans-serif;
}
body.ep-us-design #g1-content { color:var(--ep-navy); background:#fff; }
body.ep-us-design #g1-content h1 { font-size:var(--ep-font-size-h1)!important; line-height:var(--ep-line-height-h1)!important; }
body.ep-us-design #g1-content :is(h1,h2,h3,h4) { font-family:Helvetica,Arial,sans-serif; color:var(--ep-navy); text-transform:none!important; letter-spacing:0; }
body.ep-us-design #g1-content h1 { font-weight:700!important; }
body.ep-us-design #g1-content h2 { font-size:25px; line-height:1.3; font-weight:700; }
body.ep-us-design #g1-content h3 { font-size:20px; line-height:1.35; }
body.ep-us-design #g1-content p { line-height:1.7; }
body.ep-us-design #g1-content a:not(.g1-button) { color:var(--ep-blue); text-underline-offset:4px; }
body.ep-us-design :is(#g1-header,#g1-content,#g1-footer) :is(a,button,input,summary):focus-visible { outline:3px solid var(--ep-blue)!important; outline-offset:4px; }
body.ep-us-design #g1-content :is(img,iframe,video) { max-width:100%; }
body.ep-us-design #g1-content :is(p,h1,h2,h3,li,td) { overflow-wrap:break-word; }
body.ep-us-design #g1-content > .g1-layout-inner,
body.ep-us-design #g1-precontent > .g1-layout-inner { width:calc(100% - 48px)!important; max-width:980px!important; margin-left:auto!important; margin-right:auto!important; }
body.ep-us-design #g1-content { padding-top:28px; }
body.ep-us-design #breadcrumbs { font-size:12px; line-height:1.6; margin:0 0 24px; }
body.ep-us-design #content > article > .entry-header { margin:0 0 36px; padding:0; border:0; }
body.ep-us-design #content > article > .entry-header .g1-hgroup { border:0; padding:0; }
body.ep-us-design #content > article > .entry-header h1 { margin:0; }
body.ep-us-design #content > article > .entry-header .g1-hgroup:after,
body.ep-us-design #content > article > .entry-header h1:after { display:none; }
body.ep-us-design #content > article > .entry-header :is(.g1-hgroup,h1) { background:none!important; border:0!important; padding-bottom:0!important; }
/* The native navigation items/targets and theme disclosure remain the owners. */
body.ep-us-design #g1-header { background:#f1f1f1; box-shadow:0 2px 12px #0000000d; }
body.ep-us-design #g1-id { padding-top:14px; padding-bottom:12px; }
body.ep-us-design #g1-header .site-description { margin:0; font-size:11px; line-height:1.3; }
body.ep-us-design #g1-header #g1-logo { max-width:194px; }
body.ep-us-design #g1-footer { margin-top:60px; }
body.ep-us-design #g1-footer :is(h2,h3) { font-size:20px; text-transform:none; }
body.ep-us-design #g1-footer a { text-underline-offset:4px; }
@media(min-width:1025px) {
  body.ep-us-design #g1-primary-nav { float:none; display:table; margin:0 auto 16px; background:#fff; border:1px solid #c3c8cd; border-radius:5px; box-shadow:0 3px 7px #0003; }
  body.ep-us-design #g1-primary-nav-menu > li > a { font-size:15px; line-height:1.5; padding:12px 15px; }
}
/* UK national service hero: same pale frame, image split and typography.
   US titles/intro copy and every link remain generated by WordPress. */
body.ep-us-service #content > article > .entry-header {
  min-height:300px; display:flex; align-items:center; box-sizing:border-box;
  padding:44px; padding-right:48%; border:1px solid var(--ep-line); border-radius:10px;
  background:var(--ep-pale) var(--ep-device-art,none) right center / 45% auto no-repeat;
}
body.ep-us-service #content > article > .entry-header h1 { font-weight:700; }
body.ep-us-service.page-id-2917 { --ep-device-art:url('art/phone.webp'); }
body.ep-us-service.page-id-2914 { --ep-device-art:url('art/tablet.webp'); }
body.ep-us-service.page-id-2911 { --ep-device-art:url('art/laptop.webp'); }
body.ep-us-service.page-id-2905 { --ep-device-art:url('art/computer.webp'); }
body.ep-us-service:is(.page-id-2908,.page-id-169635,.page-id-485724) { --ep-device-art:url('art/console.webp'); }
body.ep-us-service:is(.page-id-118910,.page-id-77350,.page-id-455919) { --ep-device-art:url('art/drone.webp'); }
body.ep-us-service.page-id-20198 { --ep-device-art:url('art/headphone.webp'); }
body.ep-us-service:is(.page-id-28835,.page-id-455605,.page-id-496844,.page-id-544020) { --ep-device-art:url('art/audio.webp'); }
body.ep-us-service.page-id-28837 { --ep-device-art:url('art/pcb.webp'); }
/* Native US columns, accordions, chat and reviews retain their DOM and IDs. */
body.ep-us-design .entry-content > .g1-grid:has(> .g1-three-fourth:first-child + .g1-one-fourth:last-child) { display:grid; grid-template-columns:minmax(0,1fr) 230px; gap:30px; margin:0; width:auto; }
body.ep-us-design .entry-content > .g1-grid:has(> .g1-three-fourth:first-child + .g1-one-fourth:last-child) > .g1-column { width:auto; float:none; margin:0; min-width:0; }
body.ep-us-design .entry-content > .g1-grid:has(> .g1-three-fourth:first-child + .g1-one-fourth:last-child)::before,
body.ep-us-design .entry-content > .g1-grid:has(> .g1-three-fourth:first-child + .g1-one-fourth:last-child)::after { content:none; display:none; }
body:is(.ep-us-service,.ep-us-services) .entry-content > .g1-grid:has(> .g1-three-fourth:first-child + .g1-one-fourth:last-child) { grid-template-columns:minmax(0,1fr); }
body:is(.ep-us-service,.ep-us-services) .entry-content > .g1-grid:has(> .g1-three-fourth:first-child + .g1-one-fourth:last-child) > .g1-one-fourth { display:grid; grid-template-columns:200px minmax(0,1fr); gap:24px; }
body.ep-us-design .entry-content .g1-divider { border-color:var(--ep-line); }
body.ep-us-design .entry-content .g1-toggle { border:1px solid var(--ep-line); background:#f5f9fc; margin:0 0 10px; border-radius:5px; }
body.ep-us-design .entry-content .g1-toggle__title { padding:16px; font-size:15px; line-height:1.5; font-weight:700; }
body.ep-us-design .entry-content .g1-toggle__content { padding:0 16px 16px; }
body.ep-us-design .entry-content .g1-list--simple > ul > li { padding:10px 0; border-color:var(--ep-line); }
body.ep-us-design .entry-content a.g1-button { border-radius:5px; font-size:14px; line-height:1.5; min-height:22px; padding:12px 20px; text-shadow:none; }
body.ep-us-design .entry-content .g1-button--solid { background:var(--ep-blue); border-color:var(--ep-blue); color:#fff!important; }
body.ep-us-design .entry-content .g1-button--solid:hover { background:#005b87; border-color:#005b87; }
body.ep-us-design .entry-content .g1-box:has(.mwai-chat) { box-shadow:none; border:1px solid var(--ep-line); border-radius:10px; background:#fff; }
/* The UK Services gallery grid, applied to all nine existing US device tiles. */
body.ep-us-services .entry-content > .g1-grid:has(> .g1-three-fourth:first-child + .g1-one-fourth:last-child) > .g1-three-fourth { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 32px; }
body.ep-us-services .entry-content > .g1-grid:has(> .g1-three-fourth:first-child + .g1-one-fourth:last-child) > .g1-three-fourth > :not(.g1-grid) { grid-column:1 / -1; }
body.ep-us-services .entry-content .g1-grid:has(> .g1-column > .repair_category) { display:contents; }
body.ep-us-services .entry-content .g1-grid:has(> .g1-column > .repair_category)::before,
body.ep-us-services .entry-content .g1-grid:has(> .g1-column > .repair_category)::after { display:none!important; content:none!important; }
body.ep-us-services .entry-content .g1-grid:has(> .g1-column > .repair_category) > .g1-column { width:auto; float:none; margin:0; padding:0; min-width:0; background:none!important; }
body.ep-us-services .entry-content .heading-divider { display:none; }
body.ep-us-services .repair_category { margin:0!important; padding:14px 0!important; border:0!important; border-bottom:1px solid var(--ep-line)!important; box-shadow:none!important; border-radius:0!important; min-height:110px; background:transparent!important; }
body.ep-us-services .repair_category .g1-box__inner { display:grid; grid-template-columns:128px minmax(0,1fr); align-items:center; gap:20px; padding:0!important; border:0!important; border-radius:0!important; box-shadow:none!important; background:none!important; text-align:left; }
body.ep-us-services .repair_category::before,
body.ep-us-services .repair_category::after,
body.ep-us-services .repair_category .g1-box__inner::before,
body.ep-us-services .repair_category .g1-box__inner::after { content:none!important; display:none!important; }
body.ep-us-services .repair_category p { margin:0; }
body.ep-us-services .repair_category h3 { margin:0; font-size:20px; font-weight:700; }
body.ep-us-services .repair_category img { width:128px; height:96px; object-fit:contain; margin:0; }
body.ep-us-services .repair_category:has(a[href$='/phone-repair/']) img { content:url('art/gallery-phone.webp'); }
body.ep-us-services .repair_category:has(a[href$='/tablet-repair/']) img { content:url('art/gallery-tablet.webp'); }
body.ep-us-services .repair_category:has(a[href$='/laptop-repair/']) img { content:url('art/gallery-laptop.webp'); }
body.ep-us-services .repair_category:has(a[href$='/computer-repair/']) img { content:url('art/gallery-computer.webp'); }
body.ep-us-services .repair_category:has(a[href$='/console-repair/']) img { content:url('art/gallery-console.webp'); }
body.ep-us-services .repair_category:has(a[href$='/drone-repair/']) img { content:url('art/gallery-drone.webp'); }
body.ep-us-services .repair_category:has(a[href$='/hifi-repair/']) img { content:url('art/gallery-audio.webp'); }
body.ep-us-services .repair_category:has(a[href$='/headphone-repair/']) img { content:url('art/gallery-headphone.webp'); }
body.ep-us-services .repair_category:has(a[href$='/pcb-repair/']) img { content:url('art/gallery-pcb.webp'); }
/* About, business, home: UK pale cards and clean section rhythm on native copy. */
body.ep-us-about .entry-content .g1-four-fifth { width:100%; margin:0; }
body.ep-us-about .entry-content h2 { padding-top:26px; margin-top:26px; border-top:1px solid var(--ep-line); }
body.ep-us-about #content > article > .entry-header,
body.ep-us-business #content > article > .entry-header { padding:38px; background:var(--ep-pale); border:1px solid var(--ep-line); border-radius:10px; }
body.ep-us-business .entry-content .g1-box { border:1px solid var(--ep-line); border-radius:8px; box-shadow:none; }
body.ep-us-home #g1-precontent { background-color:var(--ep-pale); }
body.ep-us-home :is(#g1-precontent,.entry-content) .g1-box { border:1px solid var(--ep-line); border-radius:10px; box-shadow:none; }
body.ep-us-home :is(#g1-precontent,.entry-content) .g1-box__inner { padding:24px; }
body.ep-us-home :is(#g1-precontent,.entry-content) .g1-box__inner { box-shadow:none!important; border:0!important; }
body.ep-us-home #g1-precontent h3 { font-size:var(--ep-font-size-h1); line-height:var(--ep-line-height-h1); color:var(--ep-navy); }
body.ep-us-home .entry-content .fp_box { background:#f4f9fc; }
/* Shared UK review panel styling; US rating/review data and read-more stay native. */
body.ep-us-design #g1-content .google-business-reviews-rating { border:1px solid var(--ep-line); border-radius:10px; padding:22px; background:linear-gradient(110deg,#edf5fa,#f7fbfd); box-sizing:border-box; }
body.ep-us-design #g1-content .google-business-reviews-rating .listing { margin-top:18px; }
body.ep-us-design #g1-content .google-business-reviews-rating .review { border:1px solid var(--ep-line); border-radius:6px; background:#fff; padding:16px; }
/* Help/FAQ filters use their existing Isotope control and native article links. */
body.ep-us-support .isotope-toolbar { padding:20px; border:1px solid var(--ep-line); background:var(--ep-pale); border-radius:10px; margin-bottom:28px; }
body.ep-us-support .isotope-toolbar a { display:inline-block; padding:9px 14px; border:1px solid var(--ep-line); border-radius:5px; background:#fff; margin:3px; }
body.ep-us-support .g1-collection__item { border:1px solid var(--ep-line); border-radius:8px; padding:20px; box-sizing:border-box; background:#fff; }
/* Location/locator/directory templates keep their original public records/maps. */
body.ep-us-location #content > article > .entry-header,
body.ep-us-directory .page-header,
body.ep-us-locator #content > article > .entry-header { background:var(--ep-pale); padding:32px; border:1px solid var(--ep-line); border-radius:12px; }
body.ep-us-design :is(.wpseo-location,.location-item,.store-locator-result,.location-card) { border:1px solid var(--ep-line); border-radius:10px; padding:22px; background:#fff; }
body.ep-us-directory .g1-collection__item { border-color:var(--ep-line); }
body.ep-us-locator :is(#wpseo-storelocator-form,.wpseo-storelocator-form) { padding:24px; background:var(--ep-pale); border:1px solid var(--ep-line); border-radius:10px; box-sizing:border-box; }
body.ep-us-legal .entry-content { font-size:16px; line-height:1.75; }
body.ep-us-legal .entry-content h2 { margin-top:38px; padding-top:22px; border-top:1px solid var(--ep-line); }
body.ep-us-legal .entry-content :is(table,pre) { max-width:100%; overflow:auto; }
@media(max-width:760px) {
  body.ep-us-design #g1-content > .g1-layout-inner,
  body.ep-us-design #g1-precontent > .g1-layout-inner { width:calc(100% - 32px)!important; }
  body.ep-us-design #g1-content { padding-top:20px; }
  body.ep-us-design .entry-content > .g1-grid:has(> .g1-three-fourth:first-child + .g1-one-fourth:last-child) { grid-template-columns:minmax(0,1fr); gap:28px; }
  body:is(.ep-us-service,.ep-us-services) .entry-content > .g1-grid:has(> .g1-three-fourth:first-child + .g1-one-fourth:last-child) > .g1-one-fourth { grid-template-columns:minmax(0,1fr); }
  body.ep-us-service #content > article > .entry-header { min-height:0; padding:28px 24px 230px; background-size:auto 210px; background-position:center bottom; }
  body.ep-us-services .entry-content > .g1-grid:has(> .g1-three-fourth:first-child + .g1-one-fourth:last-child) > .g1-three-fourth { grid-template-columns:minmax(0,1fr); gap:0; }
  body.ep-us-services .repair_category .g1-box__inner { grid-template-columns:96px minmax(0,1fr); gap:16px; }
  body.ep-us-services .repair_category img { width:96px; height:80px; }
  body.ep-us-services .repair_category h3 { font-size:19px; }
  body.ep-us-design #g1-content .google-business-reviews-rating { padding:16px; }
  body.ep-us-design #g1-footer { margin-top:36px; }
  body.ep-us-about #content > article > .entry-header,
  body.ep-us-business #content > article > .entry-header,
  body.ep-us-location #content > article > .entry-header,
  body.ep-us-locator #content > article > .entry-header { padding:24px; }
}
/* The older US parent theme uses a text pseudo-label; UK uses an icon. */
@media(max-width:1024px) {
  body.ep-us-design #g1-primary-bar { position:static!important; }
  body.ep-us-design #g1-primary-nav::before { content:none!important; display:none!important; }
  body.ep-us-design #g1-primary-nav #g1-primary-nav-switch { position:relative!important; }
  body.ep-us-design #g1-primary-nav-switch::before { content:'\f0c9'!important; font-family:FontAwesome!important; }
  body.ep-us-design #g1-primary-nav-switch::after { display:none!important; }
}

/* Native mobile menu: same UK stylesheet, US body scope. */
/* UK public header only. Native menu/submenu handlers and desktop rules remain.
 * Panel width follows the usable header width, including visible-viewport resizing.
 * Chat pages share their actual VisualViewport height; other pages use dvh.
 */
@media (max-width: 1024px) {
  .ep-us-design #g1-header .g1-layout-inner {
    position: relative; min-height: 62px; width: calc(100% - 24px) !important;
    max-width: none !important; margin: 0 auto !important;
  }
  .ep-us-design #g1-header #g1-id { display: block !important; padding-right: 56px; }
  .ep-us-design #g1-primary-bar #g1-primary-nav {
    position: absolute !important; inset: 6px 0 auto 0; float: none !important;
    width: 100% !important; height: 44px; margin: 0 !important; padding: 0;
    border: 0; background: transparent; box-shadow: none; border-radius: 0;
    display: block; pointer-events: none;
  }
  .ep-us-design #g1-primary-nav #g1-primary-nav-switch {
    box-sizing: border-box; display: block; width: 44px !important; height: 44px;
    margin: 0 0 0 auto !important; padding: 0 !important; border: 1px solid #bbc2cb !important;
    border-radius: 8px; background: #fff; float: none; font-size: 0;
    text-indent: 0; overflow: hidden; line-height: 42px; color: #253143;
    box-shadow: 0 1px 4px #0002; pointer-events: auto;
  }
  .ep-us-design #g1-primary-nav-switch::before,
  .ep-us-design #g1-primary-nav-switch::after {
    position: absolute; inset: 0; width: 42px; height: 42px; font-size: 20px;
    line-height: 42px; margin: 0; padding: 0;
  }
  .ep-us-design #g1-primary-nav-menu {
    position: absolute; top: 50px; right: 0; left: auto; clear: none;
    box-sizing: border-box; width: 100%; max-width: 100%; pointer-events: auto;
    margin: 0; padding: 8px; border: 1px solid #bbc2cb; border-radius: 10px;
    background: #fff; color: #253143; box-shadow: 0 8px 24px #0003;
    max-height: calc(var(--ep-booking-vh, 100dvh) - 80px); overflow-y: auto;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .ep-us-design #g1-primary-nav-menu::before,
  .ep-us-design #g1-primary-nav-menu::after { display: none; }
  .ep-us-design #g1-primary-nav-menu > li { padding-left: 0; }
  .ep-us-design #g1-primary-nav-menu a { line-height: 1.5; font-size: 16px; }
  .ep-us-design #g1-primary-nav-switch:focus-visible { outline: 3px solid #005fcc; outline-offset: 2px; }
}
