/* SideEco buyback banner: self-contained styles for product-detail templates.
   Uses the existing seh-buyback markup and no homepage or JavaScript dependency.
   Container queries follow the banner's available width, including sidebars.
   Browsers without container queries keep the safe, two-row base layout. */
.seh-buyback {
  container-name: seh-buyback;
  container-type: inline-size;
  display: block;
  clear: both;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 32px 0 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #242170;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  scroll-margin-top: 140px;
}
.seh-buyback,
.seh-buyback *,
.seh-buyback *::before,
.seh-buyback *::after { box-sizing: border-box; }

.seh-buyback a.seh-buyback-link {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 20px 12px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  float: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 20px 12px 25px;
  border: 4px solid #242170;
  border-radius: 12px;
  background: linear-gradient(120deg, #ffeb6b 0%, #ffde35 48%, #ffd22f 100%);
  color: #242170;
  box-shadow: 0 7px 0 #242170;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  transition: background .15s;
}
.seh-buyback a.seh-buyback-link:visited { color: #242170; text-decoration: none; }
.seh-buyback a.seh-buyback-link:hover {
  background: linear-gradient(120deg, #fff090 0%, #ffe24b 48%, #ffd738 100%);
  color: #242170;
  text-decoration: none;
}
.seh-buyback a.seh-buyback-link:focus-visible { outline: 3px solid #242170; outline-offset: 5px; }
.seh-buyback .seh-buyback-link::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -65px;
  right: -70px;
  width: 180px;
  height: 180px;
  border: 24px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  pointer-events: none;
}
.seh-buyback .seh-buyback-link::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 12px;
  bottom: 10px;
  width: 64px;
  height: 8px;
  background: repeating-linear-gradient(-45deg, transparent 0, transparent 7px, rgba(36, 33, 112, .2) 7px, rgba(36, 33, 112, .2) 10px);
  pointer-events: none;
}
.seh-buyback .seh-buyback-link > * { position: relative; z-index: 1; }
.seh-buyback .seh-buyback-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0;
  padding: 0;
  border: 3px solid #242170;
  border-radius: 50%;
  background: #fff9db;
  color: #242170;
  box-shadow: 0 5px 0 rgba(36, 33, 112, .22);
  transform: rotate(-7deg);
}
.seh-buyback .seh-buyback-icon svg { display: block; flex: 0 0 auto; width: 44px; height: 44px; margin: 0; padding: 0; }
.seh-buyback .seh-buyback-copy { min-width: 0; margin: 0; padding: 0; }
.seh-buyback .seh-buyback-copy p.seh-buyback-eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 7px;
  border: 0;
  border-radius: 3px;
  background: #242170;
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: normal;
  text-align: left;
  text-decoration: none;
}
.seh-buyback .seh-buyback-copy h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  clear: none;
  gap: 3px 6px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #242170;
  box-shadow: none;
  font-family: inherit;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: normal;
  text-align: left;
  text-decoration: none;
}
.seh-buyback .seh-buyback-copy h2::before,
.seh-buyback .seh-buyback-copy h2::after { display: none; content: none; }
.seh-buyback .seh-buyback-title-main {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.seh-buyback .seh-buyback-title-sub { font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: normal; white-space: nowrap; }
.seh-buyback .seh-buyback-copy p.seh-buyback-description {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #242170;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: normal;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.seh-buyback .seh-buyback-action {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 14px 12px;
  border: 2px solid #b42b1c;
  border-radius: 9px;
  background: #cf3422;
  color: #fff;
  box-shadow: 0 5px 0 #861c11;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.seh-buyback a.seh-buyback-link:hover .seh-buyback-action { background: #b92b1b; color: #fff; }
.seh-buyback .seh-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@container seh-buyback (min-width: 340px) {
  .seh-buyback a.seh-buyback-link { grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; padding-left: 16px; padding-right: 16px; }
  .seh-buyback .seh-buyback-icon { width: 72px; height: 72px; }
  .seh-buyback .seh-buyback-icon svg { width: 52px; height: 52px; }
  .seh-buyback .seh-buyback-copy p.seh-buyback-description { font-size: 13px; }
}
@container seh-buyback (min-width: 540px) {
  .seh-buyback a.seh-buyback-link { grid-template-columns: 88px minmax(0, 1fr); column-gap: 20px; padding: 26px 22px 30px; border-radius: 14px; }
  .seh-buyback .seh-buyback-icon { width: 88px; height: 88px; }
  .seh-buyback .seh-buyback-icon svg { width: 62px; height: 62px; }
  .seh-buyback .seh-buyback-copy p.seh-buyback-eyebrow { margin-bottom: 9px; padding: 4px 10px; font-size: 12px; }
  .seh-buyback .seh-buyback-copy h2 { column-gap: 8px; margin-bottom: 10px; font-size: 48px; }
  .seh-buyback .seh-buyback-title-main { font-size: 48px; }
  .seh-buyback .seh-buyback-title-sub { font-size: 26px; }
  .seh-buyback .seh-buyback-copy p.seh-buyback-description { font-size: 14px; line-height: 1.7; }
  .seh-buyback .seh-buyback-action { min-height: 66px; padding: 15px 20px; }
}
@container seh-buyback (min-width: 840px) {
  .seh-buyback a.seh-buyback-link { grid-template-columns: 104px minmax(0, 1fr) auto; gap: 26px; padding: 28px 28px 32px; }
  .seh-buyback .seh-buyback-link::before { top: -88px; right: -48px; width: 210px; height: 210px; border-width: 30px; }
  .seh-buyback .seh-buyback-link::after { left: 15px; width: 76px; height: 12px; }
  .seh-buyback .seh-buyback-icon { width: 104px; height: 104px; }
  .seh-buyback .seh-buyback-icon svg { width: 72px; height: 72px; }
  .seh-buyback .seh-buyback-copy h2,
  .seh-buyback .seh-buyback-title-main { font-size: 52px; }
  .seh-buyback .seh-buyback-action { grid-column: auto; width: auto; min-width: 244px; }
}
@container seh-buyback (max-width: 279px) {
  .seh-buyback a.seh-buyback-link { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .seh-buyback .seh-buyback-icon { justify-self: center; }
  .seh-buyback .seh-buyback-copy { text-align: center; }
  .seh-buyback .seh-buyback-copy h2 { justify-content: center; text-align: center; }
  .seh-buyback .seh-buyback-copy p.seh-buyback-description { text-align: center; }
  .seh-buyback .seh-buyback-action { gap: 10px; padding-left: 10px; padding-right: 10px; font-size: 16px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .seh-buyback a.seh-buyback-link { transition: none; }
}

/* Purchase-panel shipping notice. The existing PHP template decides whether
   all configured delivery methods are free; these rules only change layout.
   Put spacing on the rendered notice so an empty wrapper takes no space. */
.se-product-shipping {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.se-product-shipping,
.se-product-shipping * { box-sizing: border-box; }
.se-product-shipping .se-store-shipping.se-store-shipping--compact {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px;
  border: 1px solid #242170;
  border-radius: 8px;
  background: #242170;
  color: #fff;
  overflow: hidden;
}
.se-product-shipping .se-store-shipping--compact .se-store-shipping__inner {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 14px;
}
.se-product-shipping .se-store-shipping--compact .se-store-shipping__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  text-align: center;
}
.se-product-shipping .se-store-shipping--compact .se-store-shipping__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: #fff;
  line-height: 1.2;
}
.se-product-shipping .se-store-shipping--compact .se-store-shipping__nation {
  display: inline-block;
  padding: 4px 6px;
  border: 1px solid #b6dc64;
  color: #d6efa5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .05em;
  white-space: nowrap;
}
.se-product-shipping .se-store-shipping--compact .se-store-shipping__title {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .06em;
  white-space: nowrap;
}
.se-product-shipping .se-store-shipping--compact .se-store-shipping__note {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  border: 0;
  color: #f0f0fa;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .se-product-shipping .se-store-shipping--compact .se-store-shipping__inner { padding: 14px 12px; }
  .se-product-shipping .se-store-shipping--compact .se-store-shipping__title { font-size: 26px; }
  .se-product-shipping .se-store-shipping--compact .se-store-shipping__note { font-size: 11px; }
}
