.kssfp[hidden],
.kssfp [hidden] {
  display: none !important;
}

.kssfp .added_to_cart {
  display: none !important;
}

.kssfp-spacer {
  height: 0;
  pointer-events: none;
}

.kssfp {
  --kssfp-bottom-offset: 0px;
  box-sizing: border-box;
  position: fixed;
  z-index: 9995;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--kssfp-bottom-offset));
  left: 50%;
  width: min(1000px, calc(100% - 32px));
  border: 1px solid rgba(24, 64, 51, .22);
  border-radius: 4px;
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 10px 28px rgba(20, 44, 37, .14);
  color: #183f32;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.kssfp.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.kssfp[data-kssfp-cart="0"][data-kssfp-product="1"] {
  width: max-content;
  min-width: 320px;
  max-width: calc(100% - 32px);
}

.kssfp__inner {
  box-sizing: border-box;
  display: flex;
  min-height: 68px;
  padding: 10px 46px 10px 16px;
  align-items: center;
  gap: 18px;
}

.kssfp__purchase,
.kssfp__cart {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.kssfp__purchase:empty,
.kssfp__cart:empty {
  display: none;
}

.kssfp.is-cart-only .kssfp__purchase {
  display: none;
}

.kssfp__cart {
  margin-left: auto;
  font-size: 12px;
  line-height: 1.35;
}

.kssfp__price {
  overflow: hidden;
  min-width: 0;
  max-width: 230px;
  color: #183f32;
  font-size: 17px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kssfp__price del {
  color: #67736c;
  font-size: 12px;
}

.kssfp__button,
.kujira-site-shell .kssfp__button {
  box-sizing: border-box;
  display: inline-flex;
  min-width: 148px;
  min-height: 46px;
  margin: 0;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid #194b3b;
  border-radius: 3px;
  background: #194b3b;
  box-shadow: none;
  color: #fffdf8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.kssfp__button:hover,
.kssfp__button:focus-visible {
  background: #103b2e;
  color: #fffdf8;
}

.kssfp__shipping {
  color: #5d4a2d;
  font-weight: 700;
  white-space: nowrap;
}

.kssfp__shipping .woocommerce-Price-amount {
  font-weight: 700;
}

.kssfp__cart-total {
  white-space: nowrap;
}

.kssfp__cart-link {
  color: #194b3b;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #b3985c;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.kssfp__close,
.kujira-site-shell .kssfp__close {
  position: absolute;
  top: 13px;
  right: 8px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #52645a;
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.kssfp__button:focus-visible,
.kssfp__cart-link:focus-visible,
.kssfp__close:focus-visible {
  outline: 2px solid #ab8746;
  outline-offset: 2px;
}

body.kssfp-visible .kujira-shell-cart-toast {
  bottom: calc(var(--kssfp-height, 80px) + var(--kssfp-bottom-offset, 0px) + 28px + env(safe-area-inset-bottom, 0px));
}

body.kujira-shell-overlay-open .kssfp {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .kssfp {
    bottom: var(--kssfp-bottom-offset);
    left: 0;
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    transform: translateY(14px);
  }

  .kssfp[data-kssfp-cart="0"][data-kssfp-product="1"] {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .kssfp.is-visible {
    transform: translateY(0);
  }

  .kssfp__inner {
    display: grid;
    min-height: 64px;
    padding: 8px 44px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
    gap: 5px;
  }

  .kssfp__purchase {
    justify-content: space-between;
    gap: 10px;
  }

  .kssfp__price {
    max-width: calc(100% - 146px);
    font-size: 15px;
  }

  .kssfp__button,
  .kujira-site-shell .kssfp__button {
    min-width: 136px;
    min-height: 48px;
    padding: 8px 12px;
  }

  .kssfp__cart {
    display: flex;
    width: 100%;
    margin: 0;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
  }

  .kssfp__close {
    top: 10px;
  }

  body.kssfp-visible .kujira-shell-cart-toast {
    bottom: calc(var(--kssfp-height, 90px) + var(--kssfp-bottom-offset, 0px) + 12px);
  }
}

@media (max-width: 480px) {
  .kssfp[data-kssfp-product="1"]:not(.is-cart-only) .kssfp__cart-link {
    display: none;
  }
  .kssfp[data-kssfp-product="0"] .kssfp__cart {
    flex-wrap: wrap;
  }
  .kssfp[data-kssfp-product="0"] .kssfp__shipping {
    order: 3;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kssfp {
    transition: none;
  }
}

/* 2026-10-29: product mobile purchase bar; remove this block to roll back. */
@media (max-width: 760px) {
  body.single-product .kssfp {
    bottom: 0 !important;
  }
  body.single-product .kssfp:not(.is-cart-only) .kssfp__cart {
    display: none;
  }
  body.single-product .trp-floating-switcher {
    position: relative !important;
    inset: auto !important;
    width: 126px !important;
    max-width: calc(100% - 32px);
    margin: 16px 16px calc(var(--kssfp-height, 65px) + 16px) auto;
    z-index: 100;
  }
  body.single-product.kssfp-visible #ast-scroll-top {
    display: none !important;
  }
}
