.document-coupon-widget {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.45rem 0.25rem 0.08rem !important;
}

.document-coupon-widget__card {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0.68rem 0.04rem 0.08rem;
  min-height: 0;
  cursor: default;
  box-shadow: none;
}

.document-coupon-widget__head {
  display: flex;
  align-items: flex-start;
  gap: 0.82rem;
  margin-bottom: 0.5rem;
}

.document-coupon-widget__icon {
  width: 3.08rem;
  height: 3.08rem;
  flex: 0 0 3.08rem;
  animation: document-coupon-icon-float 1.9s ease-in-out infinite;
  transform-origin: 50% 72%;
  border-radius: 0;
  display: block;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 0;
  color: transparent;
}

@keyframes document-coupon-icon-float {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-1px) rotate(-4deg) scale(1.02);
  }
  50% {
    transform: translateY(-2px) rotate(0deg) scale(1.04);
  }
  75% {
    transform: translateY(-1px) rotate(4deg) scale(1.02);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

.document-coupon-widget__head-meta {
  min-width: 0;
}

.document-coupon-widget__title {
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #f8fafc;
  text-shadow: 0 2px 8px rgba(2, 6, 23, 0.28);
  letter-spacing: 0.01em;
}

.document-coupon-widget__intro {
  margin-top: 0.22rem;
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.98rem;
  line-height: 1.35;
}

.document-coupon-widget__list {
  list-style: none;
  padding: 0;
  margin: 0.72rem 0 0;
  display: grid;
  gap: 0.44rem;
}

.document-coupon-widget__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, #fff7e8, #ffefcf);
  border: 1px solid rgba(242, 174, 73, 0.42);
  border-radius: 10px;
  padding: 0.5rem 0.68rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.document-coupon-widget__item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--theme-color, #3eaf7c) 55%, transparent);
  outline-offset: 1px;
}

.document-coupon-widget__item-left {
  color: #7a1f16;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.document-coupon-widget__item-right {
  color: rgba(122, 31, 22, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 10.8rem;
}

.document-coupon-widget__modal[hidden] {
  display: none !important;
}

.document-coupon-widget__modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
}

.document-coupon-widget__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.document-coupon-widget__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 360px);
  border-radius: 16px;
  background: var(--theme-front-color, #ffffff);
  color: var(--theme-text-color, #0f172a);
  padding: 0.9rem 0.9rem 1rem;
  border: 1px solid #ff5a63;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.22);
}

.document-coupon-widget__close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--theme-text-color, #0f172a);
  font-size: 1rem;
  cursor: pointer;
}

.document-coupon-widget__dialog-head {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--theme-color, #3eaf7c);
  margin-bottom: 0.55rem;
}

.document-coupon-widget__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.document-coupon-widget__tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  background: rgba(15, 23, 42, 0.08);
  color: var(--theme-text-secondary, #475569);
  cursor: pointer;
  font-size: 0.78rem;
  position: relative;
}

.document-coupon-widget__tab.is-active {
  background: color-mix(in srgb, var(--theme-color, #3eaf7c) 16%, #ffffff 84%);
  color: var(--theme-color, #3eaf7c);
  font-weight: 700;
}

.document-coupon-widget__tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid color-mix(in srgb, var(--theme-color, #3eaf7c) 24%, #ffffff 76%);
}

.document-coupon-widget__panel {
  display: none;
}

.document-coupon-widget__panel.is-active {
  display: block;
}

.document-coupon-widget__qr-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem;
}

.document-coupon-widget__qr {
  width: 100%;
  height: auto;
  display: block;
}

.document-coupon-widget__qr-empty {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.82rem;
}

.document-coupon-widget__desc {
  position: relative;
  margin-top: 0.6rem;
  border-top: 1px dashed var(--theme-header-border-color, rgba(148, 163, 184, 0.45));
  padding-top: 0.7rem;
}

.document-coupon-widget__desc::before,
.document-coupon-widget__desc::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--theme-front-color, #ffffff);
  border: 1px solid var(--theme-header-border-color, rgba(148, 163, 184, 0.5));
}

.document-coupon-widget__desc::before {
  left: -6px;
}

.document-coupon-widget__desc::after {
  right: -6px;
}

.document-coupon-widget__desc p {
  margin: 0.3rem 0;
  font-size: 0.82rem;
  color: var(--theme-text-color, #1e293b);
}

html.dark .document-coupon-widget__card,
html body.dark .document-coupon-widget__card {
  background: transparent;
}

html.dark .document-coupon-widget__title,
html body.dark .document-coupon-widget__title {
  color: #f8fafc;
}

html.dark .document-coupon-widget__intro,
html body.dark .document-coupon-widget__intro {
  color: rgba(226, 232, 240, 0.95);
}

html.dark .document-coupon-widget__icon,
html body.dark .document-coupon-widget__icon {
  background: transparent;
  border: 0;
  box-shadow: none;
}

html.dark .document-coupon-widget__item,
html body.dark .document-coupon-widget__item {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.2), rgba(91, 33, 182, 0.14));
  border-color: rgba(251, 191, 36, 0.35);
}

html.dark .document-coupon-widget__item-left,
html body.dark .document-coupon-widget__item-left {
  color: rgba(253, 230, 138, 0.98);
}

html.dark .document-coupon-widget__item-right,
html body.dark .document-coupon-widget__item-right {
  color: rgba(248, 250, 252, 0.86);
}

html.dark .document-coupon-widget__btn,
html body.dark .document-coupon-widget__btn {
  border-color: rgba(251, 191, 36, 0.62);
  background: linear-gradient(180deg, #f59e0b, #d97706);
  color: #0b1220;
  box-shadow: 0 8px 14px rgba(245, 158, 11, 0.28);
}

html.dark .document-coupon-widget__dialog,
html body.dark .document-coupon-widget__dialog {
  background: var(--theme-front-color, #111827);
  color: rgba(241, 245, 249, 0.96);
  border-color: #f5a000;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

html.dark .document-coupon-widget__close,
html body.dark .document-coupon-widget__close {
  background: rgba(148, 163, 184, 0.18);
  color: rgba(241, 245, 249, 0.92);
}

html.dark .document-coupon-widget__dialog-head,
html body.dark .document-coupon-widget__dialog-head {
  color: #fbbf24;
}

html.dark .document-coupon-widget__tab,
html body.dark .document-coupon-widget__tab {
  background: rgba(148, 163, 184, 0.16);
  color: rgba(226, 232, 240, 0.9);
}

html.dark .document-coupon-widget__tab.is-active,
html body.dark .document-coupon-widget__tab.is-active {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
}

html.dark .document-coupon-widget__tab.is-active::after,
html body.dark .document-coupon-widget__tab.is-active::after {
  border-top-color: rgba(52, 211, 153, 0.42);
}

html.dark .document-coupon-widget__desc,
html body.dark .document-coupon-widget__desc {
  border-top-color: rgba(148, 163, 184, 0.42);
}

html.dark .document-coupon-widget__desc::before,
html.dark .document-coupon-widget__desc::after,
html body.dark .document-coupon-widget__desc::before,
html body.dark .document-coupon-widget__desc::after {
  background: var(--theme-front-color, #111827);
  border-color: rgba(148, 163, 184, 0.42);
}

html.dark .document-coupon-widget__desc p,
html body.dark .document-coupon-widget__desc p {
  color: rgba(226, 232, 240, 0.9);
}
