/* Product walkthrough: illustration first, one sentence, one next step. */
.walkthrough-dialog {
  width: min(100% - 48px, 470px);
  height: min(680px, 100dvh - 48px);
  padding: 22px 28px 26px;
  background-color: #f9f6fb;
  background-image: url("./paper-grain.svg"), radial-gradient(ellipse at 50% 30%, #ffffff 2%, #f3edf8 78%);
}
.walkthrough-dialog[open] { grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; }
.walkthrough-dialog .offer-toolbar { background: transparent; padding: 0; }
.walkthrough-dialog .offer-brand { font-size: 13px; gap: 8px; }
.walkthrough-dialog .offer-close { width: 44px; height: 44px; font-size: 23px; background: #ffffff70; }
.walkthrough-stage { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 27px; padding: 4px 0 8px; min-height: 0; text-align: center; }
.walkthrough-copy { width: 100%; }
.walkthrough-stage h2 { max-width: 370px; margin: 0 auto; font-size: 32px; line-height: 1.16; letter-spacing: -1.15px; text-wrap: balance; }
.walkthrough-stage .hint { max-width: 292px; margin: 12px auto 0; font-size: 14px; line-height: 1.6; text-wrap: balance; color: #807486; }
.walkthrough-illustration { position: relative; isolation: isolate; display: block; width: 100%; max-width: 338px; height: 270px; flex: none; }
.walkthrough-illustration::before { content: ""; position: absolute; z-index: -1; width: 245px; height: 245px; top: 13px; left: calc(50% - 122px); border: 0; border-radius: 50%; background: radial-gradient(circle, #e4d8ee 0%, #e8dff28c 49%, #e8dff200 72%); filter: blur(8px); }
.walkthrough-orbit { position: absolute; z-index: -1; top: 23px; left: 50%; width: 264px; height: 226px; border: 1px solid #dacee87d; border-radius: 50%; transform: translateX(-50%) rotate(-27deg); }
.walkthrough-orbit.orbit-two { width: 303px; height: 185px; top: 48px; transform: translateX(-50%) rotate(24deg); border-color: #dacee84d; }
.walkthrough-product-card { position: absolute; top: 36px; left: 50%; width: 272px; padding: 17px; border: 1px solid #ffffffef; border-radius: 22px; background: linear-gradient(145deg, #ffffff, #fdfbfe); box-shadow: 0 0 0 1px #ded3e650, 0 7px 10px #4e3b6310, 0 28px 32px -19px #71558752; transform: translateX(-50%) rotate(-5deg); text-align: left; }
.walkthrough-card-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.walkthrough-card-identity { display: flex; flex-direction: column; gap: 3px; }
.walkthrough-card-identity strong { color: #493650; font-size: 12px; font-weight: 600; }
.walkthrough-card-time { color: #a296a7; font-size: 9px; }
.walkthrough-card-menu { margin-left: auto; align-self: flex-start; color: #9c8da6; font-size: 17px; line-height: 18px; letter-spacing: 1px; }
.walkthrough-person { position: relative; display: block; flex: 0 0 37px; width: 37px; height: 37px; overflow: hidden; border-radius: 13px; background: #eee3da; border: 1px solid #80674d09; }
.person-body { position: absolute; width: 31px; height: 23px; left: 3px; bottom: -9px; border-radius: 50% 50% 0 0; background: #92789e; }
.person-face { position: absolute; width: 15px; height: 19px; left: 10px; top: 8px; border-radius: 44% 44% 45% 45%; background: #e8ae8d; box-shadow: inset -2px -1px #cb927746; }
.person-face::after { content: ""; position: absolute; top: 8px; left: 4px; width: 1.5px; height: 2px; border-radius: 50%; background: #755042; box-shadow: 6px 0 #755042; }
.person-hair { position: absolute; width: 18px; height: 10px; top: 5px; left: 8px; border-radius: 10px 10px 7px 3px; transform: rotate(-9deg); background: #725246; }
.person-hair::before { content: ""; position: absolute; width: 5px; height: 10px; left: 0; top: 5px; border-radius: 3px; background: inherit; }
.person-alex { background: #dce7de; }
.person-alex .person-face { background: #c08a6a; }
.person-alex .person-body { background: #6d8c7a; }
.person-alex .person-hair { background: #493c39; }
.person-sam { background: #e9e1f3; }
.person-sam .person-body { background: #667fa7; }
.person-sam .person-hair { background: #ac734b; height: 13px; }
.walkthrough-message { width: fit-content; max-width: 100%; margin: 0; padding: 12px; border: 1px solid #e9e0ef; border-radius: 4px 13px 13px; background: #f1eaf7; color: #5e496b; font-size: 11px; line-height: 1.4; }
.walkthrough-message.message-second { margin-top: 6px; padding-block: 9px; background: #f5eff9; }
.walkthrough-card-bottom { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #ece5f1; color: #a095a6; font-size: 8px; }
.walkthrough-mini-icon { width: 15px; height: 15px; border-radius: 4px; }
.walkthrough-floating-status { position: absolute; z-index: 3; right: 0; bottom: 16px; display: flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid #ffffff; border-radius: 50px; background: #fcfafd; color: #6f587c; box-shadow: 0 2px 3px #37264008, 0 9px 18px -7px #60416f32; font-size: 10px; font-weight: 500; transform: rotate(2deg); }
.walkthrough-status-symbol { position: relative; width: 13px; height: 10px; border: 1.3px solid #9d89ac; border-radius: 50%; }
.walkthrough-status-symbol::before { content: ""; position: absolute; width: 3px; height: 3px; top: 2px; left: 4px; border-radius: 50%; background: #9d89ac; }
.status-unopened .walkthrough-status-symbol::after { content: ""; position: absolute; width: 17px; height: 1.3px; top: 3px; left: -3px; background: #9d89ac; transform: rotate(-42deg); box-shadow: 0 1px #fcfafd; }
.illustration-snap .walkthrough-product-card { width: 218px; top: 9px; padding: 13px; border-radius: 19px; transform: translateX(-50%) rotate(5deg); }
.illustration-snap .walkthrough-card-heading { margin-bottom: 10px; gap: 8px; }
.illustration-snap .walkthrough-person { width: 30px; height: 30px; flex-basis: 30px; border-radius: 10px; }
.illustration-snap .person-face { left: 7px; top: 5px; }
.illustration-snap .person-hair { left: 5px; top: 2px; }
.illustration-snap .person-body { left: 0; }
.walkthrough-photo { position: relative; height: 167px; border-radius: 11px; overflow: hidden; background: #e7cad3; }
.walkthrough-landscape { display: block; width: 100%; height: 100%; object-fit: cover; }
.walkthrough-photo-caption { position: absolute; top: 99px; left: 0; right: 0; padding: 6px 4px; background: #3e355443; color: white; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 12px; font-weight: 500; text-align: center; }
.illustration-snap .walkthrough-floating-status { right: 5px; bottom: 7px; transform: rotate(-3deg); }
.illustration-swipe .walkthrough-product-card { width: 264px; top: 27px; padding: 16px; transform: translateX(-50%) rotate(-4deg); }
.walkthrough-swipe-chat { position: relative; display: flex; align-items: center; gap: 7px; height: 47px; padding: 10px; overflow: hidden; border: 1px solid #e8dff1; border-radius: 10px; color: #967ea7; font-size: 10px; }
.walkthrough-chat-square { width: 12px; height: 11px; border: 1.5px solid #a18ac1; border-radius: 3px; }
.walkthrough-chat-date { margin-left: 2px; font-size: 9px; color: #b7abbf; }
.walkthrough-peeking-panel { position: absolute; left: 54%; top: 0; bottom: 0; width: 68%; padding: 9px 12px; border-left: 1px solid #d4c2e5; border-radius: 7px 0 0 7px; background: #faf8fd; box-shadow: -7px 0 15px #70538a16; }
.walkthrough-peek-line { display: block; width: 76%; height: 7px; margin-bottom: 6px; border-radius: 3px; background: #e9dff2; }
.walkthrough-peek-line.short { width: 53%; }
.walkthrough-notification { position: absolute; z-index: 4; left: 0; right: 0; top: 150px; display: flex; align-items: center; gap: 10px; padding: 16px 14px; border: 1px solid #ffffff; border-radius: 18px; background: linear-gradient(130deg, #fbf8ffff, #eee4f9f7); box-shadow: 0 2px 4px #4736530b, 0 16px 24px -12px #74548742; text-align: left; transform: rotate(2deg); }
.walkthrough-notification-icon { width: 39px; height: 39px; border-radius: 12px; box-shadow: 0 2px 4px #54396113; }
.walkthrough-notification-copy { display: flex; flex-direction: column; gap: 5px; }
.walkthrough-notification-copy strong { font-size: 11px; font-weight: 600; color: #604b70; }
.walkthrough-notification-copy span { font-size: 10px; color: #90799f; }
.illustration-swipe .walkthrough-floating-status { right: 10px; bottom: 8px; padding: 8px 11px; transform: rotate(-2deg); }
.illustration-support { height: 250px; }
.walkthrough-app-tile { position: absolute; top: 33px; left: 50%; margin-left: -119px; width: 153px; height: 153px; padding: 8px; border: 1px solid #fff; border-radius: 40px; background: linear-gradient(150deg, #fff, #f0e6fa); box-shadow: inset 0 0 0 1px #ffffffa1, 0 4px 5px #6c557910, 0 28px 35px -19px #75518e78; transform: rotate(-10deg); }
.walkthrough-app-tile .walkthrough-ghost { position: static; display: block; width: 100%; height: 100%; border-radius: 32px; border: 0; box-shadow: none; transform: none; }
.walkthrough-free-ticket { position: absolute; top: 81px; left: calc(50% - 12px); z-index: -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 158px; height: 157px; padding: 15px 12px; border: 1px solid #fff; border-radius: 15px; background: #fffefa; box-shadow: 0 0 0 1px #e8dfeb70, 0 12px 20px -12px #785b9160; transform: rotate(10deg); }
.free-ticket-label { color: #a393ac; font-size: 8px; letter-spacing: 1.3px; }
.free-ticket-price { color: #5c406e; font-family: Fraunces, Georgia, serif; font-size: 58px; font-weight: 400; line-height: 1.05; letter-spacing: -4px; }
.free-ticket-note { color: #9f90a9; font-size: 8px; }
.walkthrough-heart { position: absolute; left: calc(50% - 118px); bottom: 19px; z-index: 3; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #fff; border-radius: 50%; background: #f5e7f0; color: #b188a1; font-size: 23px; box-shadow: 0 5px 14px #75518e15; transform: rotate(-12deg); }
.walkthrough-footer { display: grid; gap: 17px; }
.walkthrough-steps { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 5px; min-height: 18px; }
.walkthrough-steps[hidden] { display: none; }
.walkthrough-page-count { margin: 0 auto 0 0; color: #9b8da5; font-size: 11px; letter-spacing: .2px; }
.walkthrough-dot { width: 21px; height: 3px; border-radius: 3px; background: #e1d7e9; }
.walkthrough-dot.current { width: 21px; border-radius: 3px; background: #8c709e; }
.walkthrough-actions { display: flex; align-items: center; gap: 13px; }
.walkthrough-actions .button.primary { min-height: 50px; border-radius: 14px; font-size: 14px; }
.walkthrough-actions .walkthrough-back { width: 55px; min-width: 55px; padding-inline: 0; color: #9b8ca5; font-size: 12px; }
.walkthrough-page-support .walkthrough-stage { gap: 28px; }

@media (max-width: 600px) {
  .walkthrough-dialog { width: 100%; height: 100dvh; max-height: 100dvh; padding: calc(17px + env(safe-area-inset-top)) 24px calc(20px + env(safe-area-inset-bottom)); }
  .walkthrough-dialog[open] { gap: 12px; }
  .walkthrough-stage { gap: 30px; padding-block: 8px 16px; }
  .walkthrough-stage h2 { font-size: 32px; }
  .walkthrough-illustration { max-width: 320px; }
  .walkthrough-footer { gap: 15px; }
  .walkthrough-page-support .walkthrough-stage { gap: 30px; }
}
@media (max-width: 360px) {
  .walkthrough-dialog { padding-inline: 20px; }
  .walkthrough-stage h2 { font-size: 29px; }
  .walkthrough-stage .hint { font-size: 13px; }
  .walkthrough-illustration { transform: scale(.92); }
}
@media (max-height: 680px) {
  .walkthrough-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; overflow: hidden; }
  .walkthrough-stage { gap: 15px; padding-block: 0; overflow-y: auto; }
  .walkthrough-illustration { height: 240px; transform: scale(.91); transform-origin: center; margin-block: -10px; }
  .walkthrough-stage h2 { font-size: 30px; }
  .walkthrough-stage .hint { margin-top: 9px; font-size: 13px; }
  .walkthrough-footer { gap: 12px; }
  .walkthrough-page-support .walkthrough-stage { gap: 16px; }
}
@media (max-height: 520px) {
  .walkthrough-stage { display: block; padding: 16px 0; }
  .walkthrough-illustration { margin: -14px auto 0; }
  .walkthrough-copy { margin-top: 14px; }
}
