/* Sticker pack purchase sheets (Franz, X-1 through X-8).
   Cream, tomato, produce, and sage are the aisle tokens. Odds text is
   13/500 #5F5A54 so it clears AA on cream. */
.stk-pack-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(28, 25, 23, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.stk-pack-sheet {
  width: 100%;
  max-width: 480px;
  max-height: calc(100% - 24px);
  overflow: auto;
  box-sizing: border-box;
  background: #F7F1E6;
  border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #1C1917;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

.stk-pack-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #E4DDD2;
  margin: 4px 0 12px;
  flex: 0 0 auto;
  position: relative;
  touch-action: none;
}

/* Invisible grab area so a thumb can tap or drag the 36×4 bar. */
.stk-pack-handle::before {
  content: '';
  position: absolute;
  left: -24px;
  right: -24px;
  top: -14px;
  bottom: -12px;
}

.stk-pack-eyebrow {
  margin: 4px 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1F7A4D;
}

.stk-pack-title {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #1C1917;
}

.stk-pack-have {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #1C1917;
}

.stk-pack-break {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #5F5A54;
}

.stk-pack-body {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: #5F5A54;
}

.stk-pack-tray {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 8px;
}

.stk-pack-tray img {
  width: 56px;
  height: 56px;
  display: block;
}

.stk-pack-offer,
.stk-pack-plans,
.stk-pack-note {
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  margin-top: 12px;
}

.stk-pack-offer {
  background: #fff;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  text-align: left;
}

.stk-pack-offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stk-pack-offer-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1C1917;
}

.stk-pack-offer-sub {
  margin: 0;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: #5F5A54;
}

.stk-pack-price {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #1C1917;
  white-space: nowrap;
}

.stk-pack-plans {
  background: #E7F2E4;
  padding: 14px 16px;
  text-align: left;
}

.stk-pack-plan {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: #5F5A54;
}

.stk-pack-note {
  background: #D7E6D4;
  padding: 14px 16px;
  text-align: left;
}

.stk-pack-note-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1C1917;
}

.stk-pack-note-body {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: #1C1917;
}

.stk-pack-odds {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #5F5A54;
}

.stk-pack-odds button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: #1F7A4D;
  cursor: pointer;
}

.stk-pack-ios-note {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #5F5A54;
}

.stk-pack-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 16px;
}

.stk-pack-primary {
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: #C9362A;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stk-pack-primary:disabled {
  cursor: default;
}

.stk-pack-primary.is-success {
  background: #1F7A4D;
}

.stk-pack-primary.is-wait {
  background: #E7A9A2;
}

.stk-pack-primary:focus-visible,
.stk-pack-quiet:focus-visible,
.stk-pack-odds button:focus-visible,
.stk-pack-manage-buy:focus-visible {
  outline: 2px solid #1F7A4D;
  outline-offset: 2px;
}

.stk-pack-spin {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: stk-pack-spin 0.7s linear infinite;
}

@keyframes stk-pack-spin {
  to { transform: rotate(360deg); }
}

.stk-pack-count.is-pop {
  animation: stk-pack-pop 400ms ease-out;
}

@keyframes stk-pack-pop {
  from { transform: translateY(6px); opacity: 0.35; }
  to { transform: none; opacity: 1; }
}

.stk-pack-quiet {
  min-height: 44px;
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: #5F5A54;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.stk-pack-quiet:disabled {
  color: #C4BEB6;
  cursor: default;
}

.stk-pack-link {
  min-height: 44px;
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: #1C1917;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.stk-pack-foot {
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: #5F5A54;
}

.stk-pack-odds-list {
  width: 100%;
  margin: 12px 0 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border-radius: 16px;
  text-align: left;
}

.stk-pack-odds-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-top: 1px solid rgba(28, 25, 23, 0.06);
  font-size: 16px;
  font-weight: 600;
}

.stk-pack-odds-row:first-child {
  border-top: 0;
}

.stk-pack-odds-row img {
  width: 28px;
  height: 28px;
  display: block;
}

.stk-pack-odds-row span:last-child {
  margin-left: auto;
  font-weight: 500;
  color: #5F5A54;
}

.stk-pack-manage {
  margin: 8px 0 4px;
}

.stk-pack-manage-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.stk-pack-manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 0;
  background: #fff;
  color: #1C1917;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

/* Launch perks S3: before launch the Buy Stickers row is the closed line,
   in the shared 16px ink look (profile-account.css .plans-closed-line). */
.stk-pack-manage-closed {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid rgba(28, 25, 23, 0.08);
  background: #fff;
}

.stk-pack-manage-buy {
  border-top: 1px solid rgba(28, 25, 23, 0.08);
  cursor: pointer;
}

.stk-pack-manage-value {
  font-weight: 500;
}

.stk-pack-manage-chevron {
  color: #8A837A;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.stk-pack-manage-break,
.stk-pack-restore-note {
  margin: 8px 2px 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #5F5A54;
}

.stk-pack-restore-note {
  margin-top: 4px;
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .stk-pack-spin,
  .stk-pack-count.is-pop {
    animation: none;
  }
}

button.aisle-stk-line.aisle-stk-balance {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: #1F7A4D;
  cursor: pointer;
  text-decoration: none;
}
