@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

/* TrendyPicker My Page shell
   Shared by /mypage/* account pages (dashboard, profile, orders, …)

   1. Page chrome / tokens / nav
   2. Dashboard (profile, cards, activity)
   3. Newsletter
   4. Scroll reveal
   5. Avatar / logout dialogs
   6. Responsive — last
*/

/* ——— Page chrome ——— */

.bo-mypage,
.bo-mypage *,
.bo-mypage *::before,
.bo-mypage *::after,
.bo-mypage-shell,
.bo-mypage-shell *,
.bo-mypage-shell *::before,
.bo-mypage-shell *::after {
  box-sizing: border-box;
}

.bo-mypage-shell {
  --bo-purple: #7b2de2;
  --bo-purple-dark: #271070;
  --bo-text: #211b35;
  --bo-muted: #7d7691;
  --bo-line: #e7e0f1;
  --bo-card: #f9f8ff;
  --bo-card-shadow: 0 10px 24px rgba(33, 17, 65, 0.09);
  --bo-account-content-width: 1680px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: clamp(188px, 15.5vw, 220px) minmax(0, 1fr);
  align-items: start;
  justify-content: center;
  gap: clamp(20px, 2.4vw, 32px);
  width: 100%;
  max-width: none;
  min-height: 760px;
  margin: 0;
  padding: 36px clamp(16px, 2vw, 28px) 86px;
}

/* Firstmall's MENU toggle opened #subpageLNB, which this redesign replaced.
   Its handler lived in common/mypage_ui.js, a file this skin does not ship,
   so the button is inert everywhere — and below 1120px there is no sidebar
   left for it to open. */
.bo-mypage-shell #subAllButton,
.bo-mypage-shell .btn_sub_all {
  display: none !important;
}

html:has(.bo-mypage-shell),
body:has(.bo-mypage-shell) {
  overflow-x: hidden;
  background: #fff;
}

body:has(.bo-mypage-shell) #layout_wrap,
body:has(.bo-mypage-shell) #layout_body {
  background: #fff;
}

@view-transition {
  navigation: auto;
}

@keyframes page-transition-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes page-transition-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

::view-transition-old(root) {
  animation: 0.32s ease both page-transition-out;
}

::view-transition-new(root) {
  animation: 0.32s ease both page-transition-in;
}

html.is-page-leaving body {
  opacity: 0;
  transition: opacity 0.32s ease;
}

html.is-page-entering body {
  opacity: 0;
  animation: page-transition-in 0.32s ease both;
}

.bo-mypage-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 597px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 67% 5%, rgba(238, 161, 255, 0.92), transparent 30%),
    linear-gradient(108deg, #0b0326 0%, #29106a 47%, #ad42ea 100%);
}

.bo-mypage-shell > .bo-account-side {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-top: 60px !important;
}

.bo-mypage-shell #mypageLnbBasic {
  float: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(45, 31, 74, 0.12);
  border-radius: 8px;
  background: rgba(250, 248, 255, 0.94);
  box-shadow: 0 7px 18px rgba(18, 13, 30, 0.16);
}

.bo-mypage-shell .subpage_lnb > * {
  width: 100%;
  max-width: none;
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub {
  margin: 0;
  padding: 0;
  border: 0;
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub:first-of-type,
.bo-mypage-shell #mypageLnbBasic .lnb_sub:first-of-type > li:first-child,
.bo-mypage-shell #mypageLnbBasic .lnb_sub:first-of-type > li:first-child > a {
  border-radius: 8px 8px 0 0 !important;
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub.hide {
  display: none;
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li {
  margin: 0;
  padding: 0;
  border: 0;
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  min-height: 44px;
  padding: 0 26px;
  color: #211b2c;
  font-size: 14px;
  font-weight: 700;
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub a::before {
  content: "";
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(1) a::before {
  background-image: url("../../images/mypage/dashboard.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(2) a::before {
  background-image: url("../../images/mypage/profile.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(3) a::before {
  background-image: url("../../images/mypage/orders.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(4) a::before {
  background-image: url("../../images/mypage/review.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(5) a::before {
  background-image: url("../../images/mypage/wishllist.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(6) a::before {
  background-image: url("../../images/mypage/coupons.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(7) a::before {
  background-image: url("../../images/mypage/saved.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(8) a::before {
  background-image: url("../../images/mypage/membership.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(9) a::before {
  background-image: url("../../images/mypage/points.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(10) a::before {
  background-image: url("../../images/mypage/help.png");
}

/* The last row is Log Out or Log In depending on the session, so both are
   keyed on the href instead of :nth-child(11) like the rows above. Keeping
   the position selector here would make the two rules fight on specificity,
   and the nth-child one wins — which is how Log In first shipped wearing the
   logout icon. */
.bo-mypage-shell #mypageLnbBasic .lnb_sub a[href="/login_process/logout"]::before {
  background-image: url("../../images/mypage/logout.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub a[href="/member/login"]::before {
  background-image: url("../../images/mypage/login.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub a[href="/member/login"]:hover::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub a[href="/member/login"]:focus-visible::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub a[href="/member/login"].on::before {
  background-image: url("../../images/mypage/login_hover.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub a:hover,
.bo-mypage-shell #mypageLnbBasic .lnb_sub a:focus-visible,
.bo-mypage-shell #mypageLnbBasic .lnb_sub a.on {
  color: var(--bo-purple);
  background: #eadfff;
  font-weight: 700;
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub a.on::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 8px 0 0;
  background: var(--bo-purple);
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(1) a:hover::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(1) a:focus-visible::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(1) a.on::before {
  background-image: url("../../images/mypage/dashboard_hover.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(2) a:hover::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(2) a:focus-visible::before {
  background-image: url("../../images/mypage/profile_hover.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(3) a:hover::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(3) a:focus-visible::before {
  background-image: url("../../images/mypage/orders_hover.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(4) a:hover::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(4) a:focus-visible::before {
  background-image: url("../../images/mypage/review_hover.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(5) a:hover::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(5) a:focus-visible::before {
  background-image: url("../../images/mypage/wishllist_hover.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(6) a:hover::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(6) a:focus-visible::before {
  background-image: url("../../images/mypage/coupons_hover.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(7) a:hover::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(7) a:focus-visible::before {
  background-image: url("../../images/mypage/saved_hover.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(8) a:hover::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(8) a:focus-visible::before {
  background-image: url("../../images/mypage/membership_hover.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(9) a:hover::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(9) a:focus-visible::before {
  background-image: url("../../images/mypage/points_hover.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(10) a:hover::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub li:nth-child(10) a:focus-visible::before {
  background-image: url("../../images/mypage/help_hover.png");
}

.bo-mypage-shell #mypageLnbBasic .lnb_sub a[href="/login_process/logout"]:hover::before,
.bo-mypage-shell #mypageLnbBasic .lnb_sub a[href="/login_process/logout"]:focus-visible::before {
  background-image: url("../../images/mypage/logout_hover.png");
}

.bo-invite {
  min-height: 144px;
  padding: 18px 16px;
  border-radius: 9px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 85%, rgba(255, 190, 217, 0.9), transparent 32%),
    linear-gradient(145deg, #6f315e, #9e576b);
  box-shadow: 0 12px 26px rgba(62, 22, 68, 0.16);
}

.bo-invite h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.05;
}

.bo-invite p {
  margin: 13px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 9px;
  line-height: 1.4;
}

.bo-invite a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 11px;
  border-radius: 4px;
  color: #6a2d5b;
  background: #fff;
  font-size: 8px;
  font-weight: 800;
}

.bo-mypage {
  float: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--bo-text);
  font-family: Pretendard, "Apple SD Gothic Neo", Arial, sans-serif;
}

/* Firstmall user.css hides .title_container below 1023px — keep redesign titles visible */
.subpage_wrap.bo-mypage-shell .subpage_container .title_container {
  display: block;
}

/* ——— Dashboard ——— */
.bo-mypage > *,
.bo-profile > *,
.bo-card > *,
.bo-mobile-card > * {
  min-width: 0;
  max-width: 100%;
}

.bo-mypage a {
  color: inherit;
  text-decoration: none;
  gap: 5px;
}

.bo-profile {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: clamp(120px, 11vw, 140px) minmax(0, 1fr) clamp(190px, 17.5vw, 214px);
  grid-template-rows: auto auto;
  align-items: center;
  row-gap: 10px;
  min-height: clamp(208px, 17.5vw, 232px);
  overflow: hidden;
  padding: clamp(18px, 1.8vw, 24px);
  border: 1px solid rgba(246, 227, 255, 0.86);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 8%, rgba(213, 137, 255, 0.58), transparent 28%),
    radial-gradient(ellipse at 62% 110%, rgba(169, 100, 255, 0.4), transparent 42%),
    linear-gradient(118deg, #190854 0%, #2b0d6f 52%, #7631cd 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 18px rgba(199, 130, 255, 0.34),
    0 10px 26px rgba(36, 8, 92, 0.2);
}

.bo-profile__identity,
.bo-profile__welcome,
.bo-profile__progress,
.bo-profile__stats {
  position: relative;
  z-index: 1;
}

.bo-profile__identity {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 4px clamp(14px, 1.6vw, 20px) 4px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.bo-profile__avatar {
  position: relative;
  display: block;
  width: clamp(88px, 7.8vw, 104px);
  height: clamp(88px, 7.8vw, 104px);
  border: 4px solid rgba(247, 234, 255, 0.94);
  border-radius: 50%;
  background: #fff8ff;
  box-shadow: 0 0 0 3px rgba(160, 113, 255, 0.45), 0 0 20px rgba(232, 195, 255, 0.65);
}

.bo-profile__avatar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff8ff;
}

.bo-profile__avatar img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.bo-mypage button.bo-profile__edit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-width: 96px;
  height: 31px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(82, 37, 158, 0.62), rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 22px rgba(24, 5, 66, 0.18);
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bo-mypage button.bo-profile__edit::after {
  content: "";
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background: url("../../images/mypage/edit.png") center / contain no-repeat;
}

.bo-mypage button.bo-profile__edit:hover,
.bo-mypage button.bo-profile__edit:focus-visible,
.bo-profile__stats a:hover,
.bo-profile__stats a:focus-visible {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(213, 157, 255, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 28px rgba(24, 5, 66, 0.2);
  transform: translateY(-2px);
}

.bo-profile__welcome {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 2px clamp(18px, 2vw, 28px) 0;
}

.bo-profile__welcome p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.bo-profile__name-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(9px, 1vw, 14px);
  min-width: 0;
}

.bo-profile__name-row h1 {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: clamp(38px, 3.5vw, 40px);
  line-height: 0.92;
  font-weight: 900;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-profile__tier {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  max-width: 42%;
  overflow: hidden;
  width: fit-content;
  min-width: 0;
  min-height: clamp(26px, 2.2vw, 31px);
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: #3c148c;
  background: linear-gradient(135deg, #f5e7ff, #b88ff6);
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-profile__tier[data-tier-name="Silver" i] {
  color: #5934bd;
  background: linear-gradient(135deg, #f1ebff, #c9b7fa);
}

.bo-profile__tier[data-tier-name="Gold" i] {
  color: #9f285d;
  background: linear-gradient(135deg, #fff0f7, #ffd4e6);
}

.bo-profile__tier[data-tier-name="Black" i] {
  color: #007b79;
  background: linear-gradient(135deg, #eaffff, #c4f5f1);
}

.bo-profile__tier[data-tier-name="Platinum" i] {
  color: #875700;
  background: linear-gradient(135deg, #fff8e8, #ffdf95);
}

.bo-profile__progress {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0 clamp(18px, 2vw, 28px) 3px;
}

.bo-profile__progress p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.bo-profile__progress p span,
.bo-profile__progress p strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-profile__progress p span {
  flex: 1 1 auto;
}

.bo-profile__progress p strong {
  flex: 0 1 auto;
  max-width: 48%;
  text-align: right;
}

.bo-profile__progress.is-complete p span,
.bo-profile__progress.is-complete p strong {
  color: #ffdc72;
  font-weight: 700;
}

.bo-profile__progress p b {
  display: inline-block;
  color: #e3b8ff;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
  text-shadow: 0 0 5px rgba(226, 172, 255, 0.82);
}

.bo-profile__progress p em {
  color: #ffca18;
  font-style: normal;
  font-weight: 500;
}

.bo-profile__progress-track {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  appearance: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(231, 210, 255, 0.38);
}

.bo-profile__progress-track::-webkit-progress-bar {
  border-radius: inherit;
  background: rgba(231, 210, 255, 0.38);
}

.bo-profile__progress-track::-webkit-progress-value {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4dcff 0%, #a04cf8 100%);
}

.bo-profile__progress-track::-moz-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4dcff 0%, #a04cf8 100%);
}

.bo-profile__stats {
  grid-column: 3;
  grid-row: 1 / 3;
  display: grid;
  align-content: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  padding: 2px 0 2px clamp(14px, 1.7vw, 22px);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.bo-profile__stats a {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto 10px;
  align-items: center;
  gap: 8px;
  min-height: 49px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(205, 147, 255, 0.16));
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bo-profile__stat-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dfbdff, #7740e8);
  font-size: 13px;
  font-weight: 800;
}

.bo-profile__stats a:nth-child(1) .bo-profile__stat-icon {
  color: transparent;
  background:
    url("../../images/mypage/points_white.png") center / 19px no-repeat,
    linear-gradient(145deg, #dfbdff, #7740e8);
}

.bo-profile__stats a:nth-child(2) .bo-profile__stat-icon {
  background:
    url("../../images/mypage/coupons_white.png") center / 19px no-repeat,
    linear-gradient(145deg, #dfbdff, #7740e8);
}

.bo-profile__stats a:nth-child(3) .bo-profile__stat-icon {
  background:
    url("../../images/mypage/wishllist_white.png") center / 19px no-repeat,
    linear-gradient(145deg, #dfbdff, #7740e8);
}

.bo-profile__stats strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-profile__stats small {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-profile__stats i {
  font-size: 18px;
  font-style: normal;
}

.bo-card {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(45, 31, 74, 0.12);
  border-radius: 12px;
  background: rgba(250, 248, 255, 0.94);
  box-shadow: 0 7px 18px rgba(18, 13, 30, 0.16);
}

.bo-orders {
  border: 0;
  border-radius: 16px;
  background: var(--bo-card);
  box-shadow: var(--bo-card-shadow);
}

.bo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.bo-card__head h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #1a1522;
  font-family: "Pretendard", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-card__head a {
  flex: 0 0 auto;
  color: var(--bo-purple);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bo-track-all-mobile {
  display: none;
}

.bo-live-orders {
  min-width: 0;
}

.bo-live-order {
  --bo-order-image-size: 150px;
  --bo-order-copy-gap: 34px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #e7e0f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.bo-live-order + .bo-live-order,
.bo-live-order__product + .bo-live-order__product {
  display: none;
}

.bo-mypage .bo-live-order__product {
  display: grid;
  grid-template-columns: var(--bo-order-image-size) minmax(0, 1fr);
  align-items: start;
  gap: var(--bo-order-copy-gap);
}

.bo-live-order__image {
  position: relative;
  display: block;
  width: var(--bo-order-image-size);
  height: var(--bo-order-image-size);
}

.bo-live-order__image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: #d9f4ef;
  object-fit: cover;
}

.bo-live-order__image em {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--bo-purple);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.bo-live-order__copy {
  display: grid;
  justify-items: start;
  gap: 7px;
  min-width: 0;
}

.bo-live-order__copy mark {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--bo-purple);
  background: #eee3ff;
  font-size: 13px;
  font-weight: 700;
}

.bo-live-order__copy strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-live-order__copy small {
  color: var(--bo-muted);
  font-size: 13px;
}

.bo-live-order__timeline {
  --bo-order-icon-size: 36px;
  --bo-order-line-size: 2px;
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: -58px 0 18px calc(var(--bo-order-image-size) + var(--bo-order-copy-gap));
}

.bo-live-order__timeline::before {
  content: "";
  position: absolute;
  top: calc((var(--bo-order-icon-size) - var(--bo-order-line-size)) / 2);
  right: calc(var(--bo-order-icon-size) / 2);
  left: calc(var(--bo-order-icon-size) / 2);
  height: var(--bo-order-line-size);
  background: #ded5eb;
  opacity: 0.55;
}

.bo-live-order__timeline::after {
  content: "";
  position: absolute;
  top: calc((var(--bo-order-icon-size) - var(--bo-order-line-size)) / 2);
  left: calc(var(--bo-order-icon-size) / 2);
  z-index: 0;
  width: calc(100% - var(--bo-order-icon-size));
  height: var(--bo-order-line-size);
  background: var(--bo-purple);
  transform: scaleX(0);
  transform-origin: left center;
}

.bo-live-order__timeline:has(span:nth-child(2).is-current)::after {
  transform: scaleX(0.333333);
}

.bo-live-order__timeline:has(span:nth-child(3).is-current)::after {
  transform: scaleX(0.666667);
}

.bo-live-order__timeline:has(span:nth-child(4).is-current)::after {
  transform: scaleX(1);
}

.bo-live-order__timeline span {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--bo-order-icon-size);
  display: grid;
  justify-items: center;
  width: var(--bo-order-icon-size);
  min-width: var(--bo-order-icon-size);
  padding-bottom: 34px;
}

.bo-live-order__timeline span:not(.is-current) i::before {
  opacity: 0.42;
  filter: grayscale(0.25) saturate(0.72);
}

.bo-live-order__timeline .is-current small {
  color: #141224;
  font-weight: 800;
}

.bo-live-order__timeline i {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--bo-order-icon-size);
  height: var(--bo-order-icon-size);
  border: 0;
  border-radius: 50%;
  color: transparent;
  background: #fff;
  box-shadow: 0 0 0 4px #fff;
  font-size: 0;
  font-style: normal;
}

.bo-live-order__timeline i::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translate(-50%, -50%);
}

.bo-live-order__timeline span:nth-child(1) i::before {
  background-image: url("../../images/mypage/pending.png");
}

.bo-live-order__timeline span:nth-child(2) i::before {
  background-image: url("../../images/mypage/preparing.png");
}

.bo-live-order__timeline span:nth-child(3) i::before {
  background-image: url("../../images/mypage/shipped.png");
}

.bo-live-order__timeline span:nth-child(4) i::before {
  background-image: url("../../images/mypage/delivered.png");
}

.bo-live-order__timeline span i,
.bo-live-order__timeline .is-current i,
.bo-live-order__timeline .is-complete i {
  border: 0;
  color: transparent;
  background-color: #fff;
  font-size: 0;
}

.bo-live-order__timeline .is-current i {
  color: transparent;
  background-color: #fff;
}

.bo-live-order__timeline .is-complete i {
  color: transparent;
  background-color: #fff;
}

.bo-live-order__timeline small {
  position: absolute;
  top: calc(var(--bo-order-icon-size) + 6px);
  left: 50%;
  width: 112px;
  max-width: none;
  overflow: visible;
  color: var(--bo-muted);
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  transform: translateX(-50%);
}

.bo-live-order__timeline span:first-child small,
.bo-live-order__timeline span:last-child small {
  right: auto;
  left: 50%;
  text-align: center;
  transform: translateX(-50%);
}

.bo-live-order__timeline span:first-child small {
  width: 72px;
}

.bo-live-order__timeline span:last-child small {
  width: 94px;
}

.bo-live-order__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bo-live-order__foot p {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8f3fe;
}

.bo-live-order__foot p small {
  min-width: 0;
  overflow: hidden;
  color: var(--bo-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-live-order__foot p strong {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-live-order__actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.bo-live-order__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 38px;
  border: 1px solid #8a3ff0;
  border-radius: 10px;
  color: var(--bo-purple);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bo-live-order__actions a:last-child {
  color: #fff;
  background: linear-gradient(90deg, #9443f2, #6420d9);
}

.bo-live-order__actions a:hover,
.bo-live-order__actions a:focus-visible {
  box-shadow: 0 8px 18px rgba(95, 31, 205, 0.18);
  transform: translateY(-1px);
}

.bo-live-order__actions a:only-child {
  color: #fff;
  background: linear-gradient(90deg, #9443f2, #6420d9);
}

body.is-orders-modal-open {
  overflow: hidden;
}

.orders-modal-layer {
  --orders-purple: var(--bo-purple, #7b3fe4);
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  font-family: Pretendard, "Apple SD Gothic Neo", Arial, sans-serif;
}

.orders-modal-layer[hidden] {
  display: none;
}

.orders-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(14, 9, 22, 0.66);
  cursor: pointer;
}

.orders-dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(100%, 476px);
  max-height: min(720px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 25px 26px 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 10, 27, 0.32);
}

.orders-dialog-eyebrow,
.orders-dialog h2,
.orders-track-head p,
.orders-track-product strong,
.orders-track-product small {
  margin: 0;
}

.orders-dialog-eyebrow {
  color: var(--orders-purple);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}

.orders-track-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 7px;
}

.orders-track-head h2 {
  color: #17121f;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
}

.orders-track-head p {
  margin-top: 7px;
  color: #766f82;
  font-size: 14px;
  font-weight: 500;
}

.orders-track-head mark {
  align-self: start;
  min-width: 86px;
  height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: #7b3fe4;
  font-size: 13px;
  line-height: 31px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.orders-track-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 13px;
  background: #f7f4ff;
}

.orders-dialog-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 9px;
  background: linear-gradient(135deg, #e6fbff, #7ec8f5) center / cover no-repeat;
}

.orders-track-product strong {
  display: block;
  color: #17121f;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.orders-track-product small {
  display: block;
  margin-top: 7px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
}

.orders-track-steps {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.orders-track-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  min-height: 52px;
  color: #8b8495;
}

.orders-track-steps li::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: -2px;
  left: 11px;
  width: 2px;
  background: #e5ddf2;
}

.orders-track-steps li.is-complete::before {
  background: var(--orders-purple);
}

.orders-track-steps li:last-child::before {
  content: none;
}

.orders-track-steps b {
  position: relative;
  z-index: 1;
  display: block;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: 3px solid #e5ddf2;
  border-radius: 50%;
  background: #fff;
}

.orders-track-steps span {
  color: #30273d;
  font-size: 14px;
  font-weight: 800;
}

.orders-track-steps em {
  color: #8b8495;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.orders-track-steps li.is-complete b,
.orders-track-steps li.is-active b {
  border-color: var(--orders-purple);
  background: var(--orders-purple);
}

.orders-track-steps li.is-complete b::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 10px;
  background: url("../../images/mypage/check.png") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.orders-track-steps li.is-active b::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.orders-track-info {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 15px;
  border-radius: 12px;
  background: #f7f4ff;
}

.orders-track-info p {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

.orders-track-info span {
  color: #8d8598;
  font-size: 13px;
  font-weight: 500;
}

.orders-track-info b {
  overflow-wrap: anywhere;
  color: #201928;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.orders-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.orders-dialog-actions button {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.orders-dialog-secondary {
  border: 1px solid #ded8e8;
  color: #4e465c;
  background: #fff;
}

.orders-dialog-primary {
  border: 0;
  color: #fff;
  background: var(--orders-purple);
}

.orders-dialog-secondary:hover,
.orders-dialog-secondary:focus-visible {
  border-color: var(--orders-purple);
  color: var(--orders-purple);
}

.orders-dialog-primary:hover,
.orders-dialog-primary:focus-visible {
  background: #31136c;
  transform: translateY(-1px);
}

.bo-order-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 168px;
  padding: 30px 18px;
  border: 1px dashed #d8cde6;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.bo-order-empty > span {
  display: block;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  color: transparent;
  background: url("../../images/mypage/cancel.png") center / contain no-repeat;
  font-size: 0;
}

.bo-order-empty > strong {
  font-size: 17px;
}

.bo-order-empty p {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--bo-muted);
  font-size: 15px;
}

.bo-order-empty a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 5px;
  padding: 0 16px;
  border: 1px solid var(--bo-purple);
  border-radius: 999px;
  color: var(--bo-purple);
  font-size: 15px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.bo-order-empty a:hover,
.bo-order-empty a:focus-visible {
  color: #fff;
  background: linear-gradient(90deg, #9443f2, #6420d9);
  box-shadow: 0 10px 20px rgba(100, 32, 217, 0.22);
  transform: translateY(-2px);
}

.bo-order-empty a:active {
  box-shadow: 0 5px 12px rgba(100, 32, 217, 0.16);
  transform: translateY(0);
}

.bo-empty {
  padding: 34px 20px;
  border: 1px dashed #d8cde6;
  border-radius: 14px;
  text-align: center;
}

.bo-empty p {
  margin: 7px 0 0;
  color: var(--bo-muted);
  font-size: 12px;
}

.bo-product-rail,
.bo-recent-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.bo-product-rail::-webkit-scrollbar,
.bo-recent-rail::-webkit-scrollbar {
  display: none;
}

.bo-wishlist {
  padding: 24px 44px 28px;
}

.bo-wishlist .bo-card__head {
  margin-bottom: 16px;
}

.bo-product {
  flex: 0 0 calc((100% - 48px) / 5);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 262px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #fff;
}

.bo-product__image {
  display: block;
  width: 100%;
  height: 142px;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background: #e8f3f7;
}

.bo-product__image img,
.bo-recent-rail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bo-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 120px;
  padding: 8px 10px 9px;
  background: #fff;
}

.bo-product__brand {
  min-height: 17px;
  overflow: hidden;
  color: #6b6373;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-product__name {
  display: -webkit-box;
  min-height: 33px;
  margin-top: 3px;
  overflow: hidden;
  color: #171320;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bo-product__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-height: 18px;
  margin: 4px 0 0;
  white-space: nowrap;
}

.bo-product__price strong {
  overflow: hidden;
  color: #ff2637;
  font-size: 13px;
  text-overflow: ellipsis;
}

.bo-product__price del {
  overflow: hidden;
  color: #8f86a0;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.bo-product__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 6px;
  margin-top: auto;
  padding-top: 7px;
}

.bo-product__actions a {
  display: grid;
  place-items: center;
  height: 27px;
  border: 1px solid var(--bo-purple);
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bo-product__actions a:hover,
.bo-product__actions a:focus-visible {
  transform: translateY(-1px);
}

.bo-product__actions svg {
  display: none;
}

.bo-product__cart {
  color: #fff !important;
  background:
    url("../../images/mypage/cart.png") center / 16px no-repeat,
    var(--bo-purple);
}

.bo-product__cart:hover,
.bo-product__cart:focus-visible {
  background:
    url("../../images/mypage/cart.png") center / 16px no-repeat,
    #31136c;
}

.bo-product__wish {
  color: #ed1672 !important;
  background: #fff;
}

.bo-product__wish svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
}

.bo-product__wish:hover,
.bo-product__wish:focus-visible {
  color: #ed1672 !important;
  background: #fff;
  transform: none;
}

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

.bo-bottom-grid .bo-card {
  margin-top: 10px;
  padding: 20px 40px 22px;
}

.bo-bottom-grid .bo-card__head {
  margin-bottom: 14px;
}

.bo-recent-rail a {
  flex: 0 0 calc((100% - 36px) / 4);
  width: calc((100% - 36px) / 4);
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #eee8f6;
  background: #fff;
}

.bo-reel-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.bo-reel-stats a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  column-gap: 12px;
  min-height: 78px;
  padding: 14px 18px;
  border: 0;
  border-radius: 7px;
  color: #111;
  background: #e8dbff;
}

.bo-reel-stats span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--bo-purple);
  background: url("../../images/mypage/saved_hover.png") center / 14px 19px no-repeat;
}

.bo-reel-stats strong {
  max-width: 100%;
  overflow: hidden;
  color: #111;
  font-size: 26px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-reel-stats small {
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

.bo-mobile-card,
.bo-mobile-invite {
  display: none;
}

/* ——— Newsletter ——— */
.bo-newsletter {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  align-items: center;
  justify-self: center;
  gap: 34px;
  box-sizing: border-box;
  width: 100%;
  max-width: min(1488px, 100%);
  min-width: 0;
  min-height: 112px;
  margin-top: 56px;
  margin-left: auto;
  margin-right: auto;
  padding: 22px clamp(20px, 4vw, 72px);
  border-radius: 13px;
  color: #fff;
  background: #000;
}

.bo-newsletter h2,
.bo-newsletter p {
  margin: 0;
}

.bo-newsletter h2 {
  font-size: 23px;
  line-height: 1.15;
  font-weight: 600;
}

.bo-newsletter p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 500;
}

.bo-newsletter form {
  display: grid;
  grid-template-columns: 1fr 142px;
  width: 100%;
  height: 43px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
}

.bo-newsletter label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.bo-newsletter input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 24px;
  border: 0;
  outline: none;
  background: #fff;
  font-size: 13px;
}

.bo-newsletter button {
  height: auto;
  margin: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--bo-purple);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.bo-newsletter button:hover,
.bo-newsletter button:focus-visible {
  background: #31136c;
}

/* ——— Scroll reveal ———
   Short and starts immediately (see initDashboardReveal in
   trendypicker-mypage.js) — the old 0.82s duration plus up to 900ms of
   delay before it even started was long enough to read as cards vanishing
   and reappearing rather than a smooth entrance. */
.bo-page-reveal,
.bo-scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--bo-reveal-delay, 0s);
  will-change: opacity, transform;
}

.bo-page-reveal.is-inview,
.bo-scroll-reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  html.is-page-leaving body {
    opacity: 1;
    transition: none;
  }

  html.is-page-entering body {
    opacity: 1;
    animation: none;
  }

  .bo-page-reveal,
  .bo-scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ——— Avatar / logout dialogs ——— */
.mypage-avatar-dialog[hidden] {
  display: none !important;
}

.mypage-avatar-dialog {
  position: fixed !important;
  inset: 0 !important;
  z-index: 12000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 24px;
  font-family: Pretendard, "Apple SD Gothic Neo", Arial, sans-serif;
}

body.is-mypage-avatar-open {
  overflow: hidden;
}

.mypage-avatar-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(19, 12, 36, 0.42);
  cursor: default;
}

.mypage-avatar-modal {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 16px;
  box-sizing: border-box;
  width: min(380px, calc(100vw - 48px));
  margin: 0;
  padding: 30px 26px 24px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(37, 26, 62, 0.18);
}

.mypage-avatar-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #171320;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
}

.mypage-avatar-close:hover,
.mypage-avatar-close:focus-visible {
  color: #fff;
  background: var(--bo-purple, #7b3fe4);
}

.mypage-avatar-modal h2 {
  justify-self: start;
  margin: 0 32px 0 0;
  color: #111;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
}

.mypage-avatar-preview {
  position: relative;
  width: 122px;
  height: 122px;
  overflow: hidden;
  border: 3px solid #f0e5ff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(123, 63, 228, 0.18);
}

.mypage-avatar-preview i {
  position: absolute;
  inset: 28%;
  background: url("../../images/mypage/profile.png") center / contain no-repeat;
}

.mypage-avatar-preview-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mypage-avatar-preview-photo[hidden] {
  display: none;
}

.mypage-avatar-help {
  margin: -4px 0 0;
  color: #746d7f;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.mypage-avatar-upload {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border: 1px solid #ded8e8;
  border-radius: 999px;
  color: #171320;
  background: #f7f4fb;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mypage-avatar-upload:hover,
.mypage-avatar-upload:focus-within {
  border-color: var(--bo-purple, #7b3fe4);
  color: var(--bo-purple, #7b3fe4);
}

.mypage-avatar-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mypage-avatar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}

.mypage-avatar-cancel,
.mypage-avatar-save {
  min-height: 42px;
  margin: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mypage-avatar-cancel {
  border: 1px solid #ded8e8;
  color: #171320;
  background: #fff;
}

.mypage-avatar-cancel:hover,
.mypage-avatar-cancel:focus-visible {
  border-color: var(--bo-purple, #7b3fe4);
  color: var(--bo-purple, #7b3fe4);
}

.mypage-avatar-save {
  border: 0;
  color: #fff;
  background: var(--bo-purple, #7b3fe4);
}

.mypage-avatar-save:hover,
.mypage-avatar-save:focus-visible {
  background: #31136c;
}

.mypage-avatar-save:disabled {
  color: #aaa2b5;
  background: #ece8f1;
  cursor: not-allowed;
}

.mypage-logout-dialog[hidden] {
  display: none;
}

.mypage-logout-dialog {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  font-family: Pretendard, "Apple SD Gothic Neo", Arial, sans-serif;
}

body.is-mypage-logout-open {
  overflow: hidden;
}

.mypage-logout-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(19, 12, 36, 0.42);
  cursor: default;
}

.mypage-logout-modal {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: min(400px, calc(100vw - 48px));
  padding: 32px 28px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(37, 26, 62, 0.18);
  text-align: center;
}

.mypage-logout-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #171320;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
}

.mypage-logout-close:hover,
.mypage-logout-close:focus-visible {
  color: #fff;
  background: var(--bo-purple, #7b3fe4);
}

.mypage-logout-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f6f0ff;
}

.mypage-logout-icon::before {
  content: "";
  width: 28px;
  height: 28px;
  background: url("../../images/mypage/logout_hover.png") center / contain no-repeat;
}

.mypage-logout-modal h2 {
  margin: 4px 0 0;
  color: #111;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.mypage-logout-modal p {
  max-width: 30ch;
  margin: 0;
  color: #6d657c;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.mypage-logout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.mypage-logout-cancel,
.mypage-logout-confirm {
  min-height: 42px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mypage-logout-cancel {
  border: 1px solid #ded8e8;
  color: #171320;
  background: #fff;
}

.mypage-logout-cancel:hover,
.mypage-logout-cancel:focus-visible {
  border-color: var(--bo-purple, #7b3fe4);
  color: var(--bo-purple, #7b3fe4);
}

.mypage-logout-confirm {
  border: 0;
  color: #fff;
  background: var(--bo-purple, #7b3fe4);
}

.mypage-logout-confirm:hover,
.mypage-logout-confirm:focus-visible {
  background: #31136c;
}

/* ——— Responsive ——— */
@media (min-width: 1121px) {
  .bo-mypage-shell > .subpage_container.bo-mypage {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
    max-width: min(var(--bo-account-content-width), 100%);
    box-sizing: border-box;
  }

  .bo-mypage-shell .subpage_container.bo-mypage {
    padding-top: 60px;
  }
}

@media (max-width: 1280px) and (min-width: 1121px) {
  .bo-newsletter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 20px;
    padding-inline: clamp(20px, 3vw, 40px);
  }
}

@media (max-width: 1120px) {
  html:has(.bo-mypage-shell),
  body:has(.bo-mypage-shell),
  body:has(.bo-mypage-shell) #layout_wrap,
  body:has(.bo-mypage-shell) #layout_body {
    background: #fff;
  }

  .bo-mypage-shell {
    display: block;
    min-height: 0;
    padding-block: 30px 72px;
    padding-inline: clamp(16px, 4vw, 44px);
    background: transparent;
  }

  .bo-mypage-shell.bo-dashboard-shell {
    padding-top: 30px;
  }

  .bo-mypage-shell::before {
    display: none;
  }

  .bo-mypage-shell > .bo-account-side,
  .bo-mypage-shell #mypageLnbBasic,
  .bo-mypage-shell #mypageLnbBasic .lnb_sub,
  .bo-mypage-shell .bo-invite {
    display: none !important;
  }

  .bo-mypage-shell .subpage_container.bo-mypage {
    display: grid;
    column-gap: 0;
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 0;
    gap: 15px;
  }

  .bo-dashboard-shell .subpage_container.bo-mypage {
    row-gap: clamp(22px, 3.2vw, 32px);
  }

  .bo-profile {
    grid-template-columns: clamp(132px, 16vw, 156px) minmax(0, 1fr) clamp(210px, 25vw, 242px);
    min-height: clamp(250px, 31vw, 292px);
    padding: clamp(26px, 3.4vw, 34px);
    border-radius: clamp(20px, 2.8vw, 28px);
  }

  .bo-profile__welcome {
    padding: 2px clamp(20px, 3vw, 30px) 0;
  }

  .bo-profile__identity {
    padding-right: clamp(18px, 2.6vw, 26px);
  }

  .bo-profile__progress {
    padding: 0 clamp(20px, 3vw, 30px) 4px;
  }

  .bo-profile__avatar {
    width: clamp(108px, 13vw, 126px);
    height: clamp(108px, 13vw, 126px);
  }

  .bo-profile__stats {
    padding: 4px 0 4px clamp(18px, 2.8vw, 28px);
  }

  .bo-profile__stats a {
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, auto) 10px;
    gap: 6px;
    min-height: clamp(54px, 7vw, 64px);
    padding-inline: clamp(10px, 1.6vw, 14px);
  }

  .bo-profile__stat-icon {
    width: 40px;
    height: 40px;
  }

  .bo-profile__stats strong {
    font-size: clamp(16px, 2.2vw, 19px);
  }

  .bo-profile__stats small {
    font-size: clamp(11px, 1.6vw, 14px);
  }

  .bo-card {
    margin-top: 0;
    padding: clamp(24px, 4vw, 38px);
    border-radius: clamp(22px, 3.2vw, 30px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(52, 28, 93, 0.1);
  }

  .bo-card__head {
    margin-bottom: clamp(18px, 2.8vw, 25px);
  }

  .bo-card__head h2 {
    font-size: clamp(23px, 3.5vw, 30px);
  }

  .bo-card__head a {
    font-size: clamp(13px, 2vw, 17px);
  }

  .bo-orders {
    order: 1;
  }

  .bo-mobile-activity {
    order: 2;
  }

  .bo-mobile-service {
    order: 3;
  }

  .bo-desktop-dashboard-card {
    display: none;
  }

  .bo-mobile-card {
    display: block;
    padding: clamp(22px, 3.6vw, 34px);
    border: 1px solid #ece6f5;
    border-radius: clamp(22px, 3.2vw, 30px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(52, 28, 93, 0.08);
  }

  .bo-mobile-card__head {
    margin-bottom: clamp(16px, 2.6vw, 22px);
  }

  .bo-mobile-card__head h2 {
    margin: 0;
    color: #121126;
    font-size: clamp(22px, 3.5vw, 30px);
    line-height: 1;
    font-weight: 850;
  }

  .bo-mobile-activity__grid,
  .bo-mobile-service__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.8vw, 16px);
  }

  .bo-mobile-activity__grid a,
  .bo-mobile-service__grid a {
    min-width: 0;
    border: 1px solid #e8e0f2;
    color: #17122a;
    background: #fff;
    box-shadow: 0 14px 30px rgba(61, 35, 103, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .bo-mobile-activity__grid a:hover,
  .bo-mobile-activity__grid a:focus-visible,
  .bo-mobile-service__grid a:hover,
  .bo-mobile-service__grid a:focus-visible {
    border-color: #cbb3f6;
    box-shadow: 0 16px 32px rgba(91, 49, 154, 0.14);
    transform: translateY(-2px);
  }

  .bo-mobile-activity__grid a {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: clamp(96px, 14vw, 124px);
    padding: clamp(14px, 2.4vw, 22px) 10px;
    border-radius: clamp(18px, 2.8vw, 24px);
    text-align: center;
  }

  .bo-mobile-icon {
    display: grid;
    place-items: center;
    width: clamp(36px, 5.8vw, 48px);
    height: clamp(36px, 5.8vw, 48px);
    border-radius: 50%;
    background: #f0e8ff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
    font-size: 15px;
    font-weight: 800;
  }

  .bo-mobile-activity__grid a:nth-child(1) .bo-mobile-icon {
    background-image: url("../../images/mypage/review.png");
  }

  .bo-mobile-activity__grid a:nth-child(2) .bo-mobile-icon {
    background-image: url("../../images/mypage/wishllist.png");
  }

  .bo-mobile-activity__grid a:nth-child(3) .bo-mobile-icon {
    background-image: url("../../images/mypage/saved.png");
    background-size: 38% auto;
  }

  .bo-mobile-service__grid a:nth-child(1) .bo-mobile-icon {
    background-image: url("../../images/mypage/profile.png");
  }

  .bo-mobile-service__grid a:nth-child(2) .bo-mobile-icon {
    background-image: url("../../images/mypage/coupons.png");
  }

  .bo-mobile-service__grid a:nth-child(3) .bo-mobile-icon {
    background-image: url("../../images/mypage/points.png");
  }

  .bo-mobile-service__grid a:nth-child(4) .bo-mobile-icon {
    background-image: url("../../images/mypage/membership.png");
  }

  .bo-mobile-service__grid a:nth-child(5) .bo-mobile-icon {
    background-image: url("../../images/mypage/help.png");
  }

  /* Keyed on the href, not the position, for the same reason as the sidebar:
     this tile is Log Out or Log In depending on the session. */
  .bo-mobile-service__grid a[href="/login_process/logout"] .bo-mobile-icon {
    background-image: url("../../images/mypage/logout.png");
  }

  .bo-mobile-activity__grid a:nth-child(1):hover .bo-mobile-icon,
  .bo-mobile-activity__grid a:nth-child(1):focus-visible .bo-mobile-icon {
    background-image: url("../../images/mypage/review_hover.png");
  }

  .bo-mobile-activity__grid a:nth-child(2):hover .bo-mobile-icon,
  .bo-mobile-activity__grid a:nth-child(2):focus-visible .bo-mobile-icon {
    background-image: url("../../images/mypage/wishllist_hover.png");
  }

  .bo-mobile-activity__grid a:nth-child(3):hover .bo-mobile-icon,
  .bo-mobile-activity__grid a:nth-child(3):focus-visible .bo-mobile-icon {
    background-image: url("../../images/mypage/saved_hover.png");
  }

  .bo-mobile-service__grid a:nth-child(1):hover .bo-mobile-icon,
  .bo-mobile-service__grid a:nth-child(1):focus-visible .bo-mobile-icon {
    background-image: url("../../images/mypage/profile_hover.png");
  }

  .bo-mobile-service__grid a:nth-child(2):hover .bo-mobile-icon,
  .bo-mobile-service__grid a:nth-child(2):focus-visible .bo-mobile-icon {
    background-image: url("../../images/mypage/coupons_hover.png");
  }

  .bo-mobile-service__grid a:nth-child(3):hover .bo-mobile-icon,
  .bo-mobile-service__grid a:nth-child(3):focus-visible .bo-mobile-icon {
    background-image: url("../../images/mypage/points_hover.png");
  }

  .bo-mobile-service__grid a:nth-child(4):hover .bo-mobile-icon,
  .bo-mobile-service__grid a:nth-child(4):focus-visible .bo-mobile-icon {
    background-image: url("../../images/mypage/membership_hover.png");
  }

  .bo-mobile-service__grid a:nth-child(5):hover .bo-mobile-icon,
  .bo-mobile-service__grid a:nth-child(5):focus-visible .bo-mobile-icon {
    background-image: url("../../images/mypage/help_hover.png");
  }

  .bo-mobile-service__grid a[href="/login_process/logout"]:hover .bo-mobile-icon,
  .bo-mobile-service__grid a[href="/login_process/logout"]:focus-visible .bo-mobile-icon {
    background-image: url("../../images/mypage/logout_hover.png");
  }

  /* Same last-tile swap as the sidebar above: Log In replaces Log Out when
     the visitor is signed out, so it needs its own icon. */
  .bo-mobile-service__grid a[href="/member/login"] .bo-mobile-icon {
    background-image: url("../../images/mypage/login.png");
  }

  .bo-mobile-service__grid a[href="/member/login"]:hover .bo-mobile-icon,
  .bo-mobile-service__grid a[href="/member/login"]:focus-visible .bo-mobile-icon {
    background-image: url("../../images/mypage/login_hover.png");
  }

  .bo-mobile-activity__grid strong {
    color: #121126;
    font-size: clamp(20px, 3.2vw, 28px);
    line-height: 1;
    font-weight: 900;
  }

  .bo-mobile-activity__grid .bo-mobile-activity__view {
    font-size: clamp(15px, 2.3vw, 19px);
  }

  .bo-mobile-activity__grid small {
    color: #4e485f;
    font-size: clamp(12px, 1.9vw, 16px);
  }

  .bo-mobile-service__grid a {
    display: grid;
    grid-template-columns: clamp(36px, 5.4vw, 46px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(8px, 1.6vw, 14px);
    min-height: clamp(74px, 10.5vw, 96px);
    padding: clamp(12px, 2.2vw, 20px);
    border-radius: clamp(18px, 2.8vw, 24px);
  }

  .bo-mobile-service__grid strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #252036;
    font-size: clamp(14px, 2.2vw, 19px);
    line-height: 1.15;
    font-weight: 700;
  }

  .bo-mobile-invite {
    position: relative;
    order: 4;
    display: block;
    min-height: clamp(168px, 23vw, 208px);
    overflow: hidden;
    padding: clamp(26px, 4vw, 38px) clamp(28px, 5vw, 44px);
    border-radius: clamp(22px, 3vw, 30px);
    color: #fff;
    background:
      radial-gradient(circle at 80% 61%, rgba(255, 255, 255, 0.34) 0 12%, transparent 13%),
      radial-gradient(circle at 73% 94%, rgba(255, 226, 240, 0.48) 0 18%, transparent 19%),
      linear-gradient(135deg, #6f3ad7 0%, #9b60ed 52%, #b88dff 100%);
    box-shadow: 0 16px 30px rgba(105, 55, 183, 0.18);
  }

  .bo-mobile-invite h2,
  .bo-mobile-invite p {
    position: relative;
    z-index: 2;
    max-width: 58%;
  }

  .bo-mobile-invite h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.04;
    font-weight: 850;
  }

  .bo-mobile-invite p {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(13px, 2vw, 17px);
    line-height: 1.4;
  }

  .bo-mobile-invite > a {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(40px, 5.6vw, 50px);
    margin-top: clamp(14px, 2.4vw, 22px);
    padding: 0 clamp(20px, 3.4vw, 30px);
    border-radius: 9px;
    color: #6f39e5;
    background: #fff;
    font-size: clamp(12px, 1.9vw, 16px);
    font-weight: 850;
  }

  .bo-mobile-invite__gift {
    position: absolute;
    right: clamp(18px, 5vw, 46px);
    bottom: clamp(12px, 3vw, 24px);
    width: clamp(104px, 18vw, 148px);
    aspect-ratio: 1;
    border-radius: 24px;
    background:
      linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.72) 43% 56%, transparent 57%),
      linear-gradient(0deg, transparent 44%, rgba(255, 255, 255, 0.68) 45% 58%, transparent 59%),
      linear-gradient(135deg, #ffc6cf, #d56b84);
    box-shadow: -18px -20px 0 -9px rgba(255, 215, 226, 0.75);
    transform: rotate(-8deg);
  }

  .bo-newsletter {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 28px;
    padding: 20px clamp(16px, 4vw, 22px);
  }

  .bo-newsletter form {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 132px);
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .bo-mypage-shell {
    padding-block: 30px 76px;
    padding-inline: clamp(8px, 2.5vw, 14px);
  }

  .bo-mypage-shell.bo-dashboard-shell {
    padding-top: 30px;
  }

  .bo-profile {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: clamp(16px, 4.4vw, 20px);
    row-gap: 20px;
    min-height: 0;
    padding: clamp(15px, 4vw, 18px) clamp(14px, 4.2vw, 17px);
    border-radius: 26px;
  }

  .bo-profile__identity {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: center;
    gap: 0;
    width: clamp(74px, 21vw, 82px);
    height: auto;
    padding: 0;
    border: 0;
  }

  .bo-profile__avatar {
    width: clamp(74px, 21vw, 82px);
    height: clamp(74px, 21vw, 82px);
  }

  .bo-mypage button.bo-profile__edit {
    position: absolute;
    right: -2px;
    bottom: -2px;
    z-index: 2;
    gap: 0;
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    border-color: #d8c4f6;
    color: transparent;
    background: #fff;
    box-shadow: 0 4px 12px rgba(24, 5, 66, 0.22);
    font-size: 0;
  }

  .bo-mypage button.bo-profile__edit::after {
    width: 13px;
    height: 13px;
    background-image: url("../../images/mypage/edit_black.png");
  }

  .bo-profile__welcome {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 0;
  }

  .bo-profile__welcome p {
    margin-bottom: 5px;
    font-size: clamp(12px, 3.3vw, 14px);
  }

  .bo-profile__name-row {
    gap: 7px;
  }

  .bo-profile__name-row h1 {
    font-size: clamp(27px, 7.9vw, 34px);
  }

  .bo-profile__tier {
    min-width: 0;
    min-height: 25px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .bo-profile__progress {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 5px;
    width: 100%;
    padding: 0;
  }

  .bo-profile__progress p {
    display: flex;
    gap: 9px;
    font-size: 14px;
  }

  .bo-profile__progress p strong {
    max-width: 50%;
  }

  .bo-profile__progress-track {
    height: 8px;
  }

  .bo-profile__stats {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    height: auto;
    margin-top: 0;
    padding: 0;
    border: 0;
  }

  .bo-profile__stats a {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 76px;
    padding: 9px 6px;
    border-radius: 13px;
    text-align: center;
  }

  .bo-profile__stat-icon {
    width: 27px;
    height: 27px;
    font-size: 11px;
  }

  .bo-profile__stats strong {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.2;
  }

  .bo-profile__stats small {
    font-size: 13px;
    line-height: 1.3;
  }

  .bo-profile__stats i {
    display: none;
  }

  .bo-card {
    padding: 24px clamp(14px, 4vw, 18px) 27px;
    border-radius: 26px;
  }

  .bo-card__head {
    margin-bottom: 18px;
  }

  .bo-card__head h2 {
    font-size: 20px;
  }

  .bo-card__head a {
    font-size: 14px;
    color: #6f39e5;
  }

  .bo-track-all-desktop {
    display: none;
  }

  .bo-track-all-mobile {
    display: inline;
  }

  .bo-live-order {
    --bo-order-image-size: 104px;
    --bo-order-copy-gap: 20px;
    padding: 14px;
    border-radius: 18px;
  }

  .bo-mypage .bo-live-order__product {
    align-items: start;
  }

  .bo-live-order__image em {
    top: auto;
    right: 7px;
    bottom: 7px;
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 9px;
    color: var(--bo-purple);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(57, 22, 104, 0.14);
    font-size: 15px;
    line-height: 1;
  }

  .bo-live-order__copy {
    align-content: start;
    gap: 7px;
    padding-top: 0;
  }

  .bo-live-order__copy mark {
    min-height: 24px;
    padding: 5px 11px;
    font-size: 13px;
  }

  .bo-live-order__copy strong {
    display: -webkit-box;
    font-size: 16px;
    line-height: 1.18;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .bo-live-order__copy small {
    font-size: 13px;
  }

  .bo-live-order__timeline {
    --bo-order-icon-size: 34px;
    margin: 14px 0;
  }

  .bo-live-order__timeline span {
    gap: 8px;
  }

  .bo-live-order__timeline small {
    min-height: 28px;
    overflow: visible;
    font-size: clamp(10px, 3vw, 12px);
    line-height: 1.15;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
  }

  .bo-live-order__foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .bo-live-order__foot p {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 100%;
    text-align: center;
  }

  .bo-live-order__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-left: 0;
  }

  .bo-live-order__actions a {
    min-width: 0;
    min-height: 43px;
  }

  .orders-modal-layer {
    align-items: end;
    padding: 12px;
  }

  .orders-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .orders-track-head {
    gap: 10px;
  }

  .orders-track-head h2 {
    font-size: 21px;
  }

  .orders-track-head mark {
    min-width: 0;
    height: 28px;
    font-size: 12px;
    line-height: 28px;
  }

  .orders-track-product {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .orders-dialog-thumb {
    width: 64px;
    height: 64px;
  }

  .orders-track-steps li {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .orders-track-steps em {
    grid-column: 2;
    margin-top: -5px;
  }

  .orders-track-info p {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .bo-mobile-card {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .bo-mobile-card__head {
    margin-bottom: 18px;
  }

  .bo-mobile-card__head h2 {
    font-size: 20px;
  }

  .bo-mobile-activity__grid {
    gap: 8px;
  }

  .bo-mobile-activity__grid a {
    min-height: 91px;
    padding: 12px 8px;
    border-radius: 18px;
  }

  .bo-mobile-icon {
    width: 34px;
    height: 34px;
  }

  .bo-mobile-activity__grid strong {
    font-size: 20px;
  }

  .bo-mobile-activity__grid .bo-mobile-activity__view {
    font-size: 20px;
  }

  .bo-mobile-activity__grid small {
    font-size: 12px;
  }

  .bo-mobile-service__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .bo-mobile-service__grid a {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 17px;
  }

  .bo-mobile-service__grid strong {
    font-size: 14px;
  }

  .bo-mobile-invite {
    min-height: 150px;
    padding: 24px 22px;
    border-radius: 20px;
  }

  .bo-mobile-invite h2,
  .bo-mobile-invite p {
    max-width: 62%;
  }

  .bo-mobile-invite h2 {
    font-size: 23px;
  }

  .bo-mobile-invite p {
    font-size: 12px;
  }

  .bo-mobile-invite > a {
    min-height: 38px;
    margin-top: 13px;
    padding-inline: 18px;
    font-size: 12px;
  }

  .bo-mobile-invite__gift {
    right: 11px;
    bottom: 8px;
    width: 108px;
  }
}

@media (max-width: 420px) {
  .bo-mobile-card {
    padding-inline: 14px;
  }

  .bo-mobile-activity__grid,
  .bo-mobile-service__grid {
    gap: 7px;
  }

  .bo-mobile-service__grid a {
    padding-inline: 9px;
  }

  .bo-mobile-service__grid strong {
    font-size: 13px;
  }
}

/* Hold the sidebar's height until the nav arrives.
   mypage_lnb.html is now the single definition of the account nav, so the
   <aside> ships empty and trendypicker-mypage.js fills it — which cannot run
   until the page's own scripts have. Reserving the space stops the column
   from popping in from nothing. Height = 11 nav rows x 44px + 1px borders. */
.bo-mypage-shell > .bo-account-side[data-mypage-lnb]:not([data-mypage-lnb-loaded]),
.bo-profile-shell > .bo-account-side[data-mypage-lnb]:not([data-mypage-lnb-loaded]) {
  min-height: 486px;
}

.bo-dashboard-shell > .newsletter-section {
  grid-column: 1 / -1;
}
