/* Shared controls and full-width panels requested in the saved visual comments. */
:is(#gaeru-k9-root, #gaeru-site-header) .gaeru-header-controls {
  display: none;
}

:is(dialog.gaeru-header-panel, dialog.gaeru-product-search, dialog.gaeru-cart-panel) {
  z-index: 1500;
  position: fixed;
  top: var(--gaeru-panel-top, 132px);
  right: auto;
  bottom: auto;
  left: 0;
  box-sizing: border-box;
  width: 100vw;
  min-width: 0;
  max-width: none;
  height: var(--gaeru-panel-height, calc(100dvh - 132px));
  max-height: var(--gaeru-panel-height, calc(100dvh - 132px));
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .87);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
  color: #111;
  box-shadow: 0 12px 24px #16376812;
  overflow: hidden;
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}
:is(dialog.gaeru-header-panel, dialog.gaeru-product-search, dialog.gaeru-cart-panel)[open] {
  display: flex;
  flex-direction: column;
}
:is(dialog.gaeru-header-panel, dialog.gaeru-product-search, dialog.gaeru-cart-panel):not([open]) {
  display: none;
}
:is(dialog.gaeru-header-panel, dialog.gaeru-product-search, dialog.gaeru-cart-panel)::backdrop {
  background: transparent;
}
:is(.gaeru-header-panel, .gaeru-product-search, .gaeru-cart-panel) * {
  box-sizing: border-box;
}
:is(.gaeru-header-panel, .gaeru-product-search, .gaeru-cart-panel) :is(.gaeru-panel-heading, .gaeru-search-heading) {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid #1d4ed81a;
  background: transparent;
}
:is(.gaeru-header-panel, .gaeru-product-search, .gaeru-cart-panel) :is(.gaeru-panel-heading, .gaeru-search-heading) h2 {
  min-width: 0;
  margin: 0;
  color: #111;
  font: 700 22px/1.35 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
}
:is(.gaeru-header-panel, .gaeru-product-search, .gaeru-cart-panel) :is(.gaeru-panel-close, .gaeru-search-close) {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  box-shadow: none;
  font: 600 16px/1.4 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
:is(.gaeru-header-panel, .gaeru-product-search, .gaeru-cart-panel) :is(.gaeru-panel-close, .gaeru-search-close) svg {
  display: block;
  width: 18px;
  height: 18px;
}
.gaeru-panel-content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 40px) calc(24px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* The local review inserts its controls as a separate row in the panel. */
:is(.gaeru-header-panel, .gaeru-product-search, .gaeru-cart-panel) > .gaeru-review-toolbar {
  flex: 0 0 auto;
  align-self: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 0;
  padding: 8px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid #1d4ed81a;
}
.gaeru-product-search-form {
  margin: 0;
}
.gaeru-product-search > .gaeru-product-search-form {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 40px);
  overflow: auto;
}
.gaeru-product-search label {
  display: block;
  margin-bottom: 8px;
  color: #111;
  font-weight: 600;
}
.gaeru-product-search input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
}
.gaeru-product-search .gaeru-search-submit,
.gaeru-header-panel .gaeru-panel-primary,
.gaeru-header-panel .gaeru-panel-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid #1d4ed8;
  border-radius: 12px;
  background: #1d4ed8;
  color: #fff;
  font: 700 15px/1.5 Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.gaeru-product-search .gaeru-search-submit {
  width: 100%;
  margin-top: 12px;
}
.gaeru-header-panel .gaeru-panel-secondary {
  border-color: #c5d3e4;
  background: #fff;
  color: #17324d;
}
.gaeru-search-suggestions,
.gaeru-search-pages {
  margin-top: 24px;
}
.gaeru-search-suggestions :is(header, h3),
.gaeru-search-pages h3 {
  margin: 0 0 12px;
  color: #17324d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.gaeru-search-suggestions > :is(ul, ol),
.gaeru-search-suggestions .gaeru-suggestion-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gaeru-suggestion-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 1px solid #dbe5f3;
  border-radius: 12px;
  background: #ffffffd9;
  color: #17324d;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.gaeru-suggestion-card img {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0;
  object-fit: contain;
  border-radius: 8px;
  background: #f4f7fc;
}
.gaeru-suggestion-card > :not(img) { min-width: 0; }
.gaeru-suggestion-card :is(h3, h4, strong) {
  display: block;
  margin: 0;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
.gaeru-suggestion-card :is(p, small) {
  display: block;
  margin: 4px 0 0;
  color: #526174;
  font-size: 13px;
  line-height: 1.5;
}
.gaeru-suggestion-card a {
  color: #173fa6;
  text-decoration: none;
}
.gaeru-suggestion-card:is(:hover, :focus-visible) {
  border-color: #a4bde8;
  background: #f4f8ff;
}
.gaeru-search-pages > :is(ul, ol, div) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gaeru-search-pages a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 8px 8px 0;
  padding: 10px 12px;
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  background: #ffffffd9;
  color: #17324d;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.gaeru-cart-items {
  display: grid;
  gap: 0;
  min-width: 0;
}
.gaeru-cart-panel-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid #dbe5f3;
  overflow-wrap: anywhere;
}
.gaeru-cart-panel-check { grid-column: 1; grid-row: 1; width: 24px; height: 24px; margin: 20px 4px; accent-color: #1d4ed8; cursor: pointer; }
.gaeru-cart-option-images { grid-column: 2; display: flex; flex-wrap: nowrap; gap: 8px; min-width: 0; overflow-x: auto; }
.gaeru-cart-option-images img { flex: 0 0 72px; width: 72px; height: 72px; border: 1px solid #dbe5f3; }
.gaeru-cart-panel-copy { grid-column: 2; }
.gaeru-cart-panel-prices { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 15px; }
.gaeru-cart-panel-prices del { font-size: 12px; color: #697586; }
.gaeru-cart-panel .gaeru-cart-panel-remove { grid-column: 2; justify-self: end; padding: 10px 16px; min-width: 44px; min-height: 44px; border: 1px solid #f2c7cf; border-radius: 10px; background: #fff5f6; color: #b5152b; font: 600 14px/1.5 Arial,sans-serif; cursor: pointer; }
.gaeru-cart-unselected { background: #f5f7fb80; }
.gaeru-cart-panel :is(button,input):disabled { opacity: .55; cursor: wait; }
.gaeru-cart-panel [aria-disabled="true"] { opacity: .55; pointer-events: none; }
.gaeru-cart-panel-item:first-child { padding-top: 0; }
.gaeru-cart-panel-item img {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0;
  object-fit: contain;
  border-radius: 10px;
  background: #f4f7fc;
}
.gaeru-cart-panel-item .gaeru-cart-option-images img { width: 72px; height: 72px; }
.gaeru-cart-panel-item > :not(img) { min-width: 0; }
.gaeru-cart-panel-item h3 {
  margin: 0 0 5px;
  color: #111;
  font-size: 16px;
  line-height: 1.4;
}
.gaeru-cart-panel-item h3 a { color: inherit; text-decoration: none; }
.gaeru-cart-panel-item p {
  margin: 4px 0;
  color: #526174;
  font-size: 14px;
  line-height: 1.5;
}
.gaeru-cart-panel-item :is(strong, .gaeru-cart-line-total) { color: #17324d; }
.gaeru-cart-line-total { display: block; margin-top: 6px; }
.gaeru-cart-panel-summary {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #dbe5f3;
  border-radius: 12px;
  background: #ffffffd9;
  color: #17324d;
}
.gaeru-cart-panel-summary > :first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}
.gaeru-cart-panel-summary :is(p, small) {
  margin: 0;
  color: #526174;
  font-size: 13px;
  line-height: 1.6;
}
.gaeru-cart-panel-summary strong { color: #111; font-size: 20px; }
.gaeru-cart-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.gaeru-cart-panel-actions > :is(a, button) {
  flex: 1 1 180px;
}
.gaeru-panel-error,
.gaeru-panel-status {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  background: #f7faff;
  color: #526174;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.gaeru-panel-error {
  border-color: #e8b7be;
  background: #fff4f5;
  color: #a41d32;
}
:is(.gaeru-panel-error, .gaeru-panel-status):empty,
:is(.gaeru-panel-error, .gaeru-panel-status)[hidden] {
  display: none;
}
:is(.gaeru-header-panel, .gaeru-product-search, .gaeru-cart-panel) :is(a, button, input):focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  :is(#gaeru-k9-root, #gaeru-site-header) .header { gap: 8px; }
  :is(#gaeru-k9-root, #gaeru-site-header) .gaeru-header-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
  }
  :is(#gaeru-k9-root, #gaeru-site-header) .gaeru-header-controls > :is(button, a) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111;
    box-shadow: none !important;
    text-decoration: none;
    cursor: pointer;
  }
  :is(#gaeru-k9-root, #gaeru-site-header) .gaeru-header-controls svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }
  :is(#gaeru-k9-root, #gaeru-site-header) .gaeru-header-controls > :is(button, a):focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
  }
  :is(#gaeru-k9-root, #gaeru-site-header) .gaeru-header-cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 12px;
    background: #1d4ed8;
    color: #fff;
    font: 700 10px/1 Arial, Helvetica, sans-serif;
  }
  :is(#gaeru-k9-root, #gaeru-site-header) .gaeru-header-cart-count[hidden] { display: none; }
}
@media (max-width: 600px) {
  :is(#gaeru-k9-root, #gaeru-site-header) .header > .button { display: none; }
  :is(#gaeru-k9-root, #gaeru-site-header) .header { gap: 6px; }
  :is(#gaeru-k9-root, #gaeru-site-header) .header > .menu {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }
  :is(.gaeru-header-panel, .gaeru-product-search, .gaeru-cart-panel) :is(.gaeru-panel-heading, .gaeru-search-heading) h2 { font-size: 20px; }
  .gaeru-panel-content { padding-top: 16px; }
  .gaeru-search-suggestions > :is(ul, ol),
  .gaeru-search-suggestions .gaeru-suggestion-list { grid-template-columns: minmax(0, 1fr); }
  .gaeru-cart-panel-actions > :is(a, button) { flex-basis: 100%; }
}
@media (prefers-reduced-transparency: reduce) {
  :is(dialog.gaeru-header-panel, dialog.gaeru-product-search, dialog.gaeru-cart-panel) {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
