.om-everyday-sticky[hidden],
.om-everyday-fv [hidden],
.om-everyday-fv .om-everyday-fv__old-thumbs,
.controllerFooter,
.om-everyday-removed-size,
.om-buybox__cap:is([data-om-sel="1kg"], [data-om-sel="5kg2"], [data-cap="1kg"], [data-cap="5kg2"]),
.om-buybox__cart-item:is([data-cap="1kg"], [data-cap="5kg2"], [id="w-1kg"], [id="w-5kg2"]) {
  display: none !important;
}

@media (max-width: 700px) {
  .om-everyday-sticky {
    --heading: "Zen Kaku Gothic New", "Yu Gothic", Meiryo, sans-serif;
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    max-height: 54vh;
    max-height: 54dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #272624;
    font-family: var(--heading);
  }

  .om-everyday-sticky *,
  .om-everyday-sticky *::before,
  .om-everyday-sticky *::after { box-sizing: border-box; }

  .om-everyday-sticky .om-everyday-sticky__title {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 6px 14px;
    border-radius: 8px 8px 0 0;
    overflow-wrap: anywhere;
    background: #31435c;
    color: #fff;
    font: 700 16px/1.4 var(--heading);
  }

  .om-everyday-sticky__panel {
    padding: 7px max(14px, env(safe-area-inset-right))
      max(7px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: #efd5a7 url("../../assets/tome-guide/wood.jpg") center top / 300px auto repeat;
  }

  .om-everyday-sticky__fields,
  .om-everyday-sticky__checkout {
    display: grid;
    gap: 6px;
  }

  .om-everyday-sticky__fields {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.2fr) minmax(0, .65fr);
  }

  .om-everyday-sticky__fields label { font: 700 12px/1.35 var(--heading); }

  .om-everyday-sticky__fields select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    margin-top: 3px;
    padding-inline: 4px;
    border: 1px solid #cdc7bf;
    border-radius: 0;
    background: #fff;
    color: #272624;
    font: 400 16px/1.2 var(--heading);
  }

  .om-everyday-sticky__checkout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    line-height: 1.15;
  }

  .om-everyday-sticky__checkout small { display: block; font-size: 10px; }
  .om-everyday-sticky__checkout output { font-size: 28px; font-weight: 700; }

  .om-everyday-sticky__checkout button {
    width: 100%;
    min-height: 44px;
    padding: 8px 6px;
    border: 0;
    border-radius: 0;
    background: #513f23;
    color: #fff;
    font: 600 13px/1.3 var(--heading);
    cursor: pointer;
  }

  .om-everyday-sticky__checkout button:disabled { opacity: .6; cursor: default; }
  .om-everyday-sticky :focus-visible { outline: 2px solid #31435c; outline-offset: 2px; }

  .om-everyday-sticky-visible::after {
    display: block;
    height: var(--om-everyday-sticky-height, 0);
    content: "";
  }

  html:has(.om-everyday-sticky-visible) {
    scroll-padding-bottom: var(--om-everyday-sticky-height, 0px);
  }
}

@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .om-everyday-sticky:not([hidden]) { animation: om-everyday-sticky-slide-in 240ms ease-out both; }
}

@keyframes om-everyday-sticky-slide-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
