.sopchy-tb {
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
  background: var(--tb-bg);
  color: var(--tb-text);
  font-family: var(--font-text-regular, inherit);
  font-size: var(--tb-fs-d);
  line-height: 1.35;
}

.sopchy-tb *,
.sopchy-tb *::before,
.sopchy-tb *::after {
  box-sizing: border-box;
}

.sopchy-tb__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 100%;
  padding: var(--tb-pad-d) 56px var(--tb-pad-d) 24px;
}

.sopchy-tb--sticky {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100000;
}

@media (max-width: 600px) {
  .sopchy-tb--sticky {
    top: 0;
  }
}

.sopchy-tb--no-close .sopchy-tb__inner {
  padding-right: 24px;
}

.sopchy-tb__text {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: center;
  min-width: 0;
}

.sopchy-tb__text strong,
.sopchy-tb__text b {
  font-family: var(--font-display-bold, inherit);
  font-weight: 700;
}

.sopchy-tb__text a {
  color: inherit;
  text-decoration: underline;
}

.sopchy-tb__icon {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: var(--tb-icon-d);
  max-width: none;
}

.sopchy-tb__icon--m,
.sopchy-tb__text--m {
  display: none;
}

.sopchy-tb__inner--applied,
.sopchy-tb.is-applied .sopchy-tb__inner--normal {
  display: none;
}

.sopchy-tb.is-applied .sopchy-tb__inner--applied {
  display: flex;
}

.sopchy-tb--hide-applied.is-applied {
  display: none;
}

.sopchy-tb__coupon {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  margin: 0;
  padding: 6px 14px;
  background: var(--tb-coupon-bg);
  color: var(--tb-coupon-text);
  border: 1px dashed var(--tb-coupon-border);
  border-radius: 4px;
  font-family: var(--font-display-regular, inherit);
  font-size: 1em;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.sopchy-tb__coupon:hover {
  opacity: 0.85;
}

.sopchy-tb__coupon:focus-visible,
.sopchy-tb__close:focus-visible {
  outline: 2px solid var(--tb-text);
  outline-offset: 2px;
}

.sopchy-tb__sep {
  width: 1px;
  height: 1.1em;
  background: var(--tb-coupon-border);
}

.sopchy-tb__copy-icon {
  flex: 0 0 auto;
}

.sopchy-tb__copy-label {
  white-space: nowrap;
}

.sopchy-tb__check-icon {
  display: none;
  flex: 0 0 auto;
  color: var(--tb-bg);
}

.sopchy-tb__coupon.is-copied .sopchy-tb__copy-icon {
  display: none;
}

.sopchy-tb__coupon.is-copied .sopchy-tb__check-icon {
  display: block;
  animation: sopchy-tb-pop 0.25s ease-out;
}

@keyframes sopchy-tb-pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.sopchy-tb__close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--tb-close);
  border: 0;
  cursor: pointer;
}

.sopchy-tb__test {
  position: absolute;
  top: 4px;
  left: 6px;
  padding: 1px 6px;
  background: #1c1c1c;
  color: #fff;
  border-radius: 3px;
  font: 700 10px/1.4 sans-serif;
  letter-spacing: 0.08em;
  pointer-events: none;
}

html.sopchy-tb-active #header {
  top: var(--sopchy-tb-offset, 0px) !important;
}

@media (min-width: 992px) {
  html.sopchy-tb-active .header-cart-container {
    top: calc(60px + var(--sopchy-tb-offset, 0px));
    transition: all 0.3s ease-in-out, top 0s;
  }
}

@media (max-width: 991.98px) {
  .sopchy-tb {
    font-size: var(--tb-fs-m);
  }

  .sopchy-tb__inner {
    justify-content: space-between;
    gap: 12px;
    padding: var(--tb-pad-m) 48px var(--tb-pad-m) 16px;
  }

  .sopchy-tb--no-close .sopchy-tb__inner {
    padding-right: 16px;
  }

  .sopchy-tb__icon--d,
  .sopchy-tb__text--d {
    display: none !important;
  }

  .sopchy-tb__icon--m {
    display: block !important;
  }

  .sopchy-tb__text--m {
    display: block;
    flex: 1 1 auto;
    text-align: left;
  }

  .sopchy-tb__coupon {
    gap: 8px;
    padding: 6px 10px;
  }

  .sopchy-tb__copy-label {
    display: none;
  }

  .sopchy-tb__close {
    right: 6px;
  }

  html.sopchy-tb-active nav.main-navigation-menu-mobile::after {
    top: var(--sopchy-tb-offset, 0px);
    height: calc(100% - var(--sopchy-tb-offset, 0px));
  }

  html.sopchy-tb-active nav.main-navigation-menu-mobile {
    top: calc(60px + var(--sopchy-tb-offset, 0px)) !important;
    height: calc(100dvh - 60px - var(--sopchy-tb-offset, 0px));
    max-height: calc(100dvh - 60px - var(--sopchy-tb-offset, 0px));
  }
}

@media (max-width: 360px) {
  .sopchy-tb__code {
    letter-spacing: 0.06em;
  }

  .sopchy-tb__inner {
    gap: 8px;
  }
}
