/* ==========================================================================
   BNA Portal — Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 0.3s var(--ease-spring),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.3s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-spring);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn--primary {
  background: var(--lime-500);
  color: var(--ink-950);
  box-shadow: 0 14px 30px -18px rgba(255, 101, 74, 0.9);
}

.btn--primary:hover {
  background: var(--lime-400);
  box-shadow: var(--shadow-glow);
}

.btn--dark {
  background: var(--forest-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--dark:hover {
  background: var(--forest-800);
}

.btn--outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--forest-800);
  background: var(--white);
}

.btn--ghost {
  min-height: 44px;
  padding-inline: 16px;
  color: var(--forest-800);
}

.btn--ghost:hover {
  background: rgba(47, 35, 75, 0.06);
}

.btn--light {
  background: var(--paper);
  color: var(--ink-950);
}

.btn--light:hover {
  background: var(--white);
}

.btn--sm {
  min-height: 44px;
  padding-inline: 20px;
  font-size: 13.5px;
}

.btn--lg {
  min-height: 58px;
  padding-inline: 32px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn--link {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  color: var(--leaf-600);
  font-size: 14px;
}

.btn--link:hover {
  color: var(--forest-900);
  transform: none;
}

.btn--link .icon {
  width: 16px;
  height: 16px;
}

.section--dark .btn--outline,
.section--ink .btn--outline {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.section--dark .btn--outline:hover,
.section--ink .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Tags, chips, badges
   -------------------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.65);
  color: var(--forest-800);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.tag .icon {
  width: 14px;
  height: 14px;
  color: var(--leaf-500);
}

.tag--lime {
  border-color: transparent;
  background: var(--lime-500);
  color: var(--ink-950);
  font-weight: 700;
}

.tag--dark {
  border-color: transparent;
  background: var(--forest-900);
  color: var(--white);
}

.tag--terra {
  border-color: transparent;
  background: var(--terra-500);
  color: var(--white);
}

.tag--glass {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.tag--glass .icon {
  color: var(--lime-400);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--bone);
  color: var(--forest-800);
  font-size: 11px;
  font-weight: 600;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-500);
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Cards / panels
   -------------------------------------------------------------------------- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.card--paper {
  background: var(--paper);
}

.card--pad {
  padding: clamp(1.35rem, 2.5vw, 2rem);
}

.panel-dark {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 101, 74, 0.14), transparent 40%),
    linear-gradient(145deg, var(--forest-800), var(--ink-950));
  color: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-lg);
}

.panel-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 60% 40%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, black, transparent 78%);
  pointer-events: none;
}

.panel-dark__inner {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Icon tiles
   -------------------------------------------------------------------------- */

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--lime-100), rgba(255, 255, 255, 0.8));
  color: var(--forest-800);
}

.icon-tile .icon {
  width: 26px;
  height: 26px;
}

.icon-tile--sm {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.icon-tile--sm .icon {
  width: 20px;
  height: 20px;
}

.icon-tile--dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--lime-400);
}

.icon-tile--terra {
  background: linear-gradient(145deg, #f7dfd2, #fff8f4);
  color: var(--terra-600);
}

.icon-tile--sky {
  background: linear-gradient(145deg, var(--sky-100), #fdfbf7);
  color: var(--sky-500);
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.check-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--leaf-500);
  flex: 0 0 auto;
}

.check-list strong {
  color: var(--ink);
  font-weight: 700;
}

.section--dark .check-list li,
.section--ink .check-list li {
  color: rgba(255, 255, 255, 0.7);
}

.section--dark .check-list strong,
.section--ink .check-list strong {
  color: var(--white);
}

.section--dark .check-list .icon,
.section--ink .check-list .icon {
  color: var(--lime-400);
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bullet-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime-500);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label,
.field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--forest-800);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

.field label .req {
  color: var(--terra-500);
}

.field__hint {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #9aa8a1;
  font-weight: 400;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--line-strong);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--leaf-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 101, 74, 0.16);
}

.input:user-invalid,
.select:user-invalid,
.textarea:user-invalid {
  border-color: #c05a51;
  box-shadow: 0 0 0 4px rgba(192, 90, 81, 0.1);
}

.input--mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.textarea {
  min-height: 108px;
  resize: vertical;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23114433' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(93, 134, 163, 0.22);
  border-radius: 14px;
  background: var(--sky-100);
  color: #31566e;
  font-size: 12px;
  line-height: 1.6;
}

.form-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  margin: 0;
  border: 0;
}

.form-section + .form-section {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.form-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section__num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--forest-900);
  color: var(--lime-400);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.form-section__title {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
}

.form-section__sub {
  color: var(--muted-2);
  font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bone);
}

.tab {
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.tab:hover {
  color: var(--forest-900);
}

.tab[aria-selected="true"],
.tab.is-active {
  background: var(--white);
  color: var(--forest-900);
  box-shadow: 0 6px 16px -10px rgba(23, 15, 38, 0.35);
}

.section--dark .tabs,
.section--ink .tabs {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.section--dark .tab,
.section--ink .tab {
  color: rgba(255, 255, 255, 0.55);
}

.section--dark .tab[aria-selected="true"],
.section--ink .tab[aria-selected="true"] {
  background: var(--lime-500);
  color: var(--ink-950);
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 15, 11, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.modal__dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s var(--ease-spring);
}

.modal.is-open .modal__dialog {
  transform: none;
}

.modal__head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 250, 244, 0.96);
  backdrop-filter: blur(8px);
}

.modal__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.modal__title .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-500);
}

.modal__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--forest-900);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.modal__close:hover {
  background: var(--lime-500);
  transform: rotate(90deg);
}

.modal__close .icon {
  width: 18px;
  height: 18px;
}

.modal__body {
  padding: 22px;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 0 22px 22px;
}

/* --------------------------------------------------------------------------
   Slip / receipt
   -------------------------------------------------------------------------- */

.slip {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px dashed #b9c4bc;
  border-radius: 20px;
  background: var(--white);
}

.slip::before {
  content: "BNA";
  position: absolute;
  right: -10px;
  bottom: -28px;
  color: rgba(47, 35, 75, 0.045);
  font-family: var(--font-latin);
  font-size: 118px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.slip__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.slip__logo {
  width: 92px;
  height: auto;
}

.slip__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--forest-900);
}

.slip__sub {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.slip__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  font-size: 12px;
}

.slip__label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: 10px;
}

.slip__value {
  display: block;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.slip__fee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.slip__fee strong {
  color: var(--forest-900);
  font-family: var(--font-display);
  font-size: 22px;
}

.slip__stamp {
  position: absolute;
  right: 22px;
  top: 96px;
  width: 88px;
  opacity: 0.75;
  transform: rotate(-12deg);
  pointer-events: none;
}

.slip__foot {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(calc(100% - 32px), 390px);
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.97);
  transition:
    opacity 0.3s ease,
    transform 0.35s var(--ease-spring);
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime-500);
  color: var(--ink-950);
}

.toast__icon .icon {
  width: 16px;
  height: 16px;
}

.toast__text {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding-right: clamp(1.5rem, 3vw, 2.75rem);
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest-800);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.marquee__item .icon {
  width: 18px;
  height: 18px;
  color: var(--leaf-500);
}

.marquee__dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--terra-500);
}

/* --------------------------------------------------------------------------
   Stats / proof
   -------------------------------------------------------------------------- */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}

.stat {
  min-width: 120px;
  padding: 0 26px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat__num {
  display: flex;
  align-items: baseline;
  color: var(--forest-900);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__num .suffix {
  color: var(--leaf-500);
  font-size: 0.6em;
}

.stat__label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.section--dark .stat,
.section--ink .stat {
  border-left-color: rgba(255, 255, 255, 0.14);
}

.section--dark .stat__num,
.section--ink .stat__num {
  color: var(--white);
}

.section--dark .stat__label,
.section--ink .stat__label {
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Rating / avatars
   -------------------------------------------------------------------------- */

.rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold-500);
}

.rating .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -8px;
  overflow: hidden;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--leaf-500);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 4px 10px -4px rgba(23, 15, 38, 0.35);
}

.avatar-stack span img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.avatar-stack span.is-fallback {
  font-size: 8.5px;
  letter-spacing: -0.02em;
}

.avatar-stack span:first-child {
  margin-left: 0;
}

.avatar-stack span:nth-child(2) {
  background: var(--terra-500);
}

.avatar-stack span:nth-child(3) {
  background: var(--sky-500);
}

.avatar-stack span:nth-child(4) {
  background: var(--forest-900);
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.hr {
  height: 1px;
  border: 0;
  background: var(--line);
}

.kicker-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker-line::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.dot-grid {
  background-image: radial-gradient(rgba(47, 35, 75, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
}

@media (max-width: 640px) {
  .btn {
    min-height: 50px;
    padding-inline: 22px;
    font-size: 14px;
  }

  .btn--lg {
    min-height: 54px;
    font-size: 15px;
  }

  .form-grid,
  .form-grid--3 {
    grid-template-columns: 1fr;
  }

  .stat {
    min-width: 0;
    padding: 0 18px;
  }

  .toast {
    right: 16px;
    bottom: 84px;
  }

  .modal {
    padding: 12px;
  }

  .modal__head {
    gap: 12px;
    padding: 14px 16px;
  }

  .modal__title {
    gap: 8px;
    font-size: 13px;
  }

  .modal__close {
    flex: none;
    width: 34px;
    height: 34px;
  }

  .slip {
    padding: 16px;
    border-radius: 16px;
  }

  .slip__head {
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
  }

  .slip__logo {
    width: 74px;
  }

  .slip__title {
    font-size: 11px;
  }

  .slip__sub {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .slip__grid {
    grid-template-columns: 1fr;
    gap: 12px;
    font-size: 11.5px;
  }

  .slip__label {
    font-size: 9.5px;
  }

  .slip__stamp {
    right: 16px;
    top: 76px;
    width: 58px;
  }

  .slip__fee strong {
    font-size: 20px;
  }

  .slip__foot {
    font-size: 9.5px;
  }

  .modal__body {
    padding: 12px;
  }

  .modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
  }

  .modal__actions .btn {
    width: 100%;
    min-height: 46px;
    padding-inline: 10px;
    gap: 6px;
    font-size: 12px;
  }

  .modal__actions #waSendBtn {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .modal__actions #printSlipBtn {
    grid-row: 2;
    grid-column: 1;
  }

  .modal__actions [data-close-modal] {
    grid-row: 2;
    grid-column: 2;
  }
}

@media (max-width: 360px) {
  .modal {
    padding: 8px;
  }

  .modal__head {
    padding: 12px 14px;
  }

  .modal__body {
    padding: 8px;
  }

  .slip {
    padding: 13px;
  }

  .slip__logo {
    width: 68px;
  }

  .slip__stamp {
    display: none;
  }

  .slip__title {
    font-size: 10.5px;
  }

  .slip__sub {
    font-size: 7.5px;
    letter-spacing: 0.06em;
  }

  .modal__actions {
    padding: 0 10px 10px;
  }
}
