/* V4 review styling; the original release snapshot is immutable. */
.g-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.g-menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.g-mobile-menu {
  display: grid;
  gap: 4px;
  margin-top: 22px;
}
.g-mobile-menu a,
.g-mobile-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: white;
  font: inherit;
  text-align: left;
  color: var(--ink);
  padding: 12px 8px;
  text-decoration: none;
  cursor: pointer;
}
.g-mobile-menu a:hover,
.g-mobile-menu button:hover {
  color: var(--brand);
  background: #fff5fa;
}
.g-mobile-menu span {
  color: var(--brand);
}
.g-menu-foot {
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0 0;
}
body:has(dialog[open] .g-mobile-menu) .mobile-dock {
  visibility: hidden;
}
#offers {
  padding: 26px 0 30px;
}
#offers > .wrap {
  max-width: var(--wrap);
}
#offers .section-heading {
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
#offers .section-heading h2 {
  font-size: 28px;
  line-height: 1.3;
  margin: 6px 0 0;
}
#offers .section-heading .eyebrow {
  font-size: 10px;
}
#offers .text-button {
  font-size: 13px;
  white-space: nowrap;
  min-height: 44px;
  padding: 7px 0;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 5px;
}
#growth-benefits {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 24px 18px 0;
  overflow: visible;
  border-radius: 20px;
  border: 1px solid #e7bfd1;
  background: linear-gradient(100deg, #ffe3ef 0%, #fff7fb 63%, #fff0ca 100%);
}
.g-ticket-value {
  position: relative;
  border-right: 2px dashed #d9a9bf;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ac174f;
  min-height: 100px;
}
.g-ticket-value:before,
.g-ticket-value:after {
  content: "";
  position: absolute;
  right: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff8fb;
  border: 1px solid #e7bfd1;
}
.g-ticket-value:before {
  top: -26px;
}
.g-ticket-value:after {
  bottom: -26px;
}
.g-ticket-value small {
  font-size: 12px;
}
.g-ticket-value strong {
  font-size: 39px;
  line-height: 1.25;
  font-weight: 600;
}
.g-ticket-value > span {
  font-size: 18px;
}
.g-ticket-copy {
  align-self: center;
}
.g-ticket-kicker {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #9f335f;
  font-weight: 500;
}
#growth-benefits h3 {
  font-size: 21px;
  margin: 5px 0;
}
#growth-benefits p {
  font-size: 13px;
  line-height: 1.7;
  color: #735665;
}
.g-ticket-action {
  align-self: center;
}
.g-ticket-action .button {
  white-space: nowrap;
  min-height: 46px;
  font-size: 14px;
}
.g-coupons-visible #growth-launcher {
  visibility: hidden;
}
#growth-mobile-wallet {
  display: none !important;
}
.teacher-photo {
  position: relative;
  transform: rotate(-2deg);
  background: #fff5ba;
  border-radius: 30px;
  overflow: visible;
  isolation: isolate;
}
.teacher-photo img {
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 30px;
}
.teacher-photo > span {
  font-size: 17px;
  left: 18px;
  bottom: 20px;
  padding: 12px 18px;
  max-width: calc(100% - 36px);
  transform: rotate(2deg);
}
.g-teacher-spark {
  position: absolute;
  right: -15px;
  top: -24px;
  font-style: normal;
  color: #cf2368;
  font-size: 76px;
  line-height: 1;
  text-shadow: 3px 3px white;
  transform: rotate(12deg);
}
.g-reviews {
  padding: 60px 0;
  background: #f7eef9;
  border-block: 1px solid #eaddee;
  scroll-margin-top: 100px;
}
.g-reviews[hidden] {
  display: none;
}
.g-reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.g-reviews-head h2 {
  font-size: 36px;
  line-height: 1.35;
  margin: 10px 0 0;
  letter-spacing: -0.6px;
}
.g-reviews-head h2 em {
  color: #bc235f;
  font-style: normal;
}
.g-reviews-head p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.g-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.g-review-card {
  border: 1px solid #e3d0e6;
  border-radius: 24px;
  background: white;
  overflow: hidden;
  box-shadow: 0 5px 0 #e7d9e9;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s;
}
.g-review-card:hover {
  transform: translateY(-4px);
}
.g-review-main {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
}
.g-review-main:focus-visible {
  outline-offset: -4px;
}
.g-review-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  position: relative;
  width: 100%;
  height: 210px;
  background: #d8edf2;
  padding: 20px;
  overflow: hidden;
}
.g-review-card:nth-child(2) .g-review-art {
  background: #eee3ff;
}
.g-review-card:nth-child(3) .g-review-art {
  background: #fff0a9;
}
.g-review-book {
  width: 112px;
  height: 158px;
  object-fit: contain;
  transform: rotate(-7deg);
  box-shadow: 6px 8px #34233318;
  z-index: 1;
}
.g-review-art-label {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
  transform: rotate(4deg);
  z-index: 1;
  color: #334954;
}
.g-review-star {
  position: absolute;
  right: 8px;
  top: -30px;
  font-size: 140px;
  color: #ffffff85;
}
.g-review-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  position: relative;
  width: 100%;
  padding: 25px 23px 18px;
}
.g-review-quote-mark {
  position: absolute;
  right: 22px;
  top: 6px;
  color: #ead5e4;
  font-size: 54px;
  font-family: Georgia, serif;
}
.g-review-quote {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.65;
  position: relative;
  min-height: 94px;
}
.g-review-author {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0 22px;
  line-height: 1.6;
}
.g-review-course {
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 17px;
  margin-top: auto;
}
.g-review-tutor {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 17px;
}
.g-review-tutor img {
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
.g-review-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d6adc2;
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 14px;
  color: #b32661;
  font-size: 14px;
  font-weight: 500;
}
.g-review-main:hover .g-review-cta {
  background: #c32766;
  color: white;
}
.g-review-source {
  font-size: 11px;
  color: #715365;
  text-align: center;
  display: block;
  padding: 12px;
  min-height: 44px;
  border-top: 1px solid #f3e7ee;
  text-underline-offset: 3px;
}
.g-review-note {
  font-size: 11px;
  color: #746477;
  margin: 22px 0 0;
  line-height: 1.8;
}
#learning-demo {
  padding: 0;
  background: #fffcfe;
  scroll-margin-top: 100px;
}
#learning-demo[hidden] {
  display: none;
}
#learning-demo > details > summary {
  max-width: 1180px;
  margin: auto;
  min-height: 65px;
  cursor: pointer;
  padding: 22px 16px;
  font-size: 14px;
  color: #665267;
  display: flex;
  justify-content: space-between;
  list-style: none;
  border-bottom: 1px solid var(--border);
}
#learning-demo > details[open] > .play-grid {
  padding-block: 35px;
}
.g-banner-info {
  padding: 20px;
  background: #fff4c8;
  border-radius: 16px;
  margin: 20px 0;
}
.g-banner-info > strong {
  font-size: 42px;
}
.g-banner-info > strong > span {
  font-size: 22px;
}
.g-admin-facts {
  padding-left: 20px;
  line-height: 1.9;
  font-size: 14px;
}
@media (max-width: 1024px) {
  .g-menu-toggle {
    display: flex;
  }
  .header nav {
    display: none;
  }
  .header-contact {
    display: none;
  }
  .header-inner {
    flex-wrap: nowrap;
  }
  .header-actions {
    margin-left: auto;
    gap: 8px;
  }
  .g-reviews-head h2 {
    font-size: 30px;
  }
  .g-review-art {
    gap: 14px;
  }
  .g-review-art-label {
    font-size: 16px;
  }
}
@media (max-width: 760px) {
  .growth-review-bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px 8px;
  }
  .growth-review-bar > span {
    display: none;
  }
  .growth-review-bar button {
    padding: 6px;
    font-size: 11px;
    min-height: 32px;
  }
  .header-inner {
    min-height: 68px;
  }
  .header-actions .bag-label {
    display: none;
  }
  .header-actions .bag-button {
    width: auto;
    padding: 8px 10px;
    min-height: 44px;
  }
  .header .brand small {
    font-size: 8px;
  }
  .g-subject-art {
    height: 81px;
    margin-bottom: 10px;
  }
  .g-subject-art img {
    height: 81px;
    max-width: 58px;
  }
  .g-subject-art > span {
    font-size: 32px;
  }
  .g-subject-go {
    font-size: 12px;
  }
  #offers {
    padding: 20px 0 24px;
  }
  #offers .section-heading {
    gap: 8px;
    margin-bottom: 14px;
  }
  #offers .section-heading h2 {
    font-size: 23px;
  }
  #offers .section-heading .heading-spark {
    display: none;
  }
  #offers .text-button {
    font-size: 12px;
  }
  #offers .section-heading .eyebrow {
    font-size: 9px;
  }
  #growth-benefits {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 8px 13px;
    padding: 14px 14px 14px 0;
    border-radius: 17px;
  }
  .g-ticket-value {
    grid-row: 1/3;
    min-height: 126px;
  }
  .g-ticket-value strong {
    font-size: 32px;
  }
  .g-ticket-value:before {
    top: -22px;
  }
  .g-ticket-value:after {
    bottom: -22px;
  }
  .g-ticket-copy {
    min-width: 0;
  }
  #growth-benefits h3 {
    font-size: 16px;
    line-height: 1.45;
    margin: 3px 0;
  }
  #growth-benefits p {
    font-size: 11px;
    line-height: 1.65;
  }
  .g-ticket-kicker {
    font-size: 9px;
  }
  .g-ticket-action {
    grid-column: 2;
  }
  .g-ticket-action .button {
    min-height: 42px;
    width: 100%;
    font-size: 13px;
    padding: 8px;
  }
  .g-launcher {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    border-radius: 50%;
    box-shadow: 0 3px 12px #42223825;
  }
  .g-launcher span {
    display: none;
  }
  .g-launcher svg {
    width: 23px;
    height: 23px;
  }
  .g-launcher:after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffe354;
    top: 2px;
    right: 2px;
    border: 2px solid white;
  }
  .teacher-photo {
    max-width: 340px;
    width: calc(100% - 24px);
    margin: auto;
  }
  .teacher-photo > span {
    font-size: 15px;
    padding: 10px 13px;
  }
  .g-teacher-spark {
    font-size: 60px;
    right: -12px;
    top: -20px;
  }
  .g-reviews {
    padding: 34px 0;
  }
  .g-reviews-head {
    display: block;
    margin-bottom: 22px;
  }
  .g-reviews-head h2 {
    font-size: 27px;
    line-height: 1.4;
    margin: 8px 0 10px;
  }
  .g-reviews-head p {
    font-size: 13px;
  }
  .g-reviews-head .eyebrow {
    font-size: 10px;
  }
  .g-review-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .g-review-art {
    height: 170px;
    gap: 34px;
  }
  .g-review-book {
    width: 90px;
    height: 126px;
  }
  .g-review-art-label {
    font-size: 20px;
  }
  .g-review-body {
    padding: 20px 20px 14px;
  }
  .g-review-quote {
    font-size: 19px;
    min-height: 0;
  }
  .g-review-author {
    margin: 10px 0 16px;
  }
  .g-review-note {
    font-size: 10px;
  }
  .g-review-tutor {
    margin: 10px 0 14px;
  }
}
@media (max-width: 360px) {
  .header .brand img {
    width: 32px;
    height: 32px;
  }
  .header .brand span {
    font-size: 21px;
  }
  .header-inner {
    gap: 6px;
  }
  .header-actions {
    gap: 5px;
  }
  #offers .section-heading h2 {
    font-size: 21px;
  }
  #growth-benefits {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px 10px;
    padding-right: 11px;
  }
  .g-ticket-value strong {
    font-size: 28px;
  }
  #growth-benefits h3 {
    font-size: 15px;
  }
  .g-review-art {
    gap: 22px;
  }
  .g-reviews-head h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .g-review-card,
  .g-subject-circle {
    transition: none !important;
    transform: none !important;
  }
}

/* Keep campaign access inside the existing mobile bar so it covers no content. */
#offers .section-heading {
  display: flex;
}
#promotions:has(.no-promotion) {
  display: none;
}
.g-dock-gift {
  display: none;
}
@media (max-width: 760px) {
  #growth-launcher {
    display: none;
  }
  .mobile-dock {
    gap: 8px;
  }
  .mobile-dock > .button {
    flex: 1;
    min-width: 0;
  }
  .g-dock-gift:not(:empty) {
    display: block;
    flex: 0 0 46px;
  }
  .g-dock-gift .g-launcher {
    position: relative;
    right: auto;
    bottom: auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    box-shadow: none;
  }
  body:has(dialog[open]) .g-dock-gift {
    display: none;
  }
  #offers .section-heading {
    justify-content: space-between;
  }
}

/* Four visible category shortcuts: one row, no carousel and no repeated book cards. */
.hub-subjects {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 650px);
  align-items: center;
  gap: 24px;
  padding: 28px 0 20px;
  scroll-margin-top: 95px;
}
.g-subject-heading {
  text-align: left;
  margin: 0;
}
.g-subject-heading h2 {
  font-size: 25px;
  line-height: 1.4;
  margin: 0 0 6px;
}
.g-subject-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.hub-subjects nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  align-items: start;
}
.hub-subjects a.g-subject-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  padding: 5px 0 7px;
  background: none;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
.g-subject-circle {
  --icon-ink: #28768a;
  --icon-wash: #b7e4ec;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  border: 1px solid #bddde5;
  border-radius: 50%;
  background: #eaf7fb;
  color: var(--icon-ink);
  box-shadow: 0 3px 0 #dceef3;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}
.foundation .g-subject-circle {
  --icon-ink: #94621f;
  --icon-wash: #f8d883;
  background: #fff6d9;
  border-color: #eadcae;
  box-shadow: 0 3px 0 #f3e9c8;
}
.physics .g-subject-circle {
  --icon-ink: #7650a6;
  --icon-wash: #dfcdf4;
  background: #f2eaff;
  border-color: #d8c8ef;
  box-shadow: 0 3px 0 #e8ddf5;
}
.business .g-subject-circle {
  --icon-ink: #b23369;
  --icon-wash: #f1bdd4;
  background: #ffedf5;
  border-color: #ecc6d8;
  box-shadow: 0 3px 0 #f7dfeb;
}
.g-subject-circle svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.g-subject-circle .g-icon-soft {
  fill: var(--icon-wash);
  stroke: none;
}
.g-subject-circle .g-icon-dot {
  fill: currentColor;
  stroke: none;
}
.g-subject-label {
  display: block;
  max-width: 100%;
  line-height: 1.5;
}
.g-subject-label strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.g-subject-label small {
  display: block;
  font-size: 13px;
  color: #6d5968;
  white-space: nowrap;
  margin-top: 1px;
}
.g-subject-link:hover .g-subject-circle,
.g-subject-link:focus-visible .g-subject-circle {
  transform: translateY(-3px);
  border-color: currentColor;
  box-shadow: 0 5px 12px #34233316;
}
.g-subject-link:active .g-subject-circle {
  transform: scale(0.95);
}
.hub-subjects a.g-subject-link:hover {
  background: none;
  color: var(--brand);
}
@media (max-width: 760px) {
  .hub-subjects {
    display: block;
    padding: 26px 0 18px;
  }
  .g-subject-heading {
    margin-bottom: 17px;
  }
  .g-subject-heading h2 {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .g-subject-heading p {
    font-size: 13px;
  }
  .hub-subjects nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .hub-subjects a.g-subject-link {
    gap: 10px;
    padding: 5px 0 4px;
    border-radius: 10px;
  }
  .g-subject-circle {
    width: 64px;
    height: 64px;
  }
  .g-subject-circle svg {
    width: 39px;
    height: 39px;
  }
  .g-subject-label strong {
    font-size: 13px;
  }
  .g-subject-label small {
    font-size: 11.5px;
  }
}
@media (max-width: 360px) {
  .g-subject-circle {
    width: 56px;
    height: 56px;
  }
  .g-subject-circle svg {
    width: 35px;
    height: 35px;
  }
  .g-subject-label strong {
    font-size: 12px;
  }
  .g-subject-label small {
    font-size: 10.5px;
  }
  .hub-subjects nav {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .g-subject-circle {
    transition: none !important;
    transform: none !important;
  }
}

.g-menu-toggle {
  min-width: 48px;
  min-height: 48px;
}
.g-mobile-menu a,
.g-mobile-menu button {
  min-height: 48px;
  font-size: 18px;
}
.g-mobile-menu a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.dialog-top {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 3;
}
.dialog-top [data-action="close"] {
  min-width: 48px;
  min-height: 48px;
}
.g-review-source,
.g-review-note,
.g-review-author,
.g-review-tutor {
  font-size: 14px;
}
.g-review-main {
  font-size: 16px;
}
.g-review-book {
  content-visibility: auto;
}
.g-review-course {
  font-size: 16px;
}
.g-review-cta {
  min-height: 48px;
  font-size: 16px;
}
@media (max-width: 760px) {
  .g-subject-label small {
    font-size: 12px;
  }
  .g-review-note,
  .g-review-source {
    font-size: 14px;
  }
  .g-subject-heading p {
    font-size: 16px;
  }
}

/* LINE SHOP first release: readable controls and a clear external checkout handoff. */
.header-help {
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
}
.header-help:hover {
  color: var(--brand);
}
.header nav [hidden] {
  display: none;
}
.purchase-steps {
  padding-left: 24px;
  margin: 24px 0;
  display: grid;
  gap: 18px;
}
.purchase-steps li::marker {
  color: var(--brand);
  font-weight: 600;
}
.purchase-steps strong {
  font-size: 18px;
}
.purchase-steps p {
  font-size: 16px;
  line-height: 1.8;
  margin: 6px 0 0;
}
.purchase-followup {
  padding: 18px;
  margin: 20px 0;
  border: 1px solid #e5cad7;
  background: #fff5fa;
  border-radius: 16px;
}
.purchase-followup p {
  margin: 8px 0;
  font-size: 16px;
}
.purchase-followup .text-button {
  min-height: 44px;
}
.cart-buy-list .short-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
}
.cart-buy-list .short-item > .fine {
  grid-column: 1/-1;
  grid-row: 2;
  margin: 0;
}
.cart-buy-list .short-item > .button {
  grid-column: 2;
  grid-row: 1;
}
#offers .no-promotion {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid #e5c6d3;
  border-radius: 20px;
  background: linear-gradient(100deg, #ffe7f1, #fff8e1);
  color: var(--ink);
  text-align: left;
  margin: 0;
}
.no-promotion strong {
  font-size: 20px;
}
.no-promotion p {
  font-size: 16px;
  margin: 4px 0 0;
  line-height: 1.6;
}
.no-promotion .button {
  margin-left: auto;
  white-space: nowrap;
}
.g-offer-mark {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  height: 58px;
  border-radius: 16px;
  background: white;
  color: var(--brand);
  font-size: 30px;
  font-weight: 600;
}
#offers .text-button,
.g-reviews-head p,
.g-review-author,
.g-review-tutor,
.g-review-source,
.g-review-note {
  font-size: 14px;
}
.g-review-art-label {
  flex-shrink: 0;
}
#dialog-content p,
#dialog-content li {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  #offers .section-heading {
    align-items: flex-start;
  }
  #offers .section-heading h2 {
    font-size: 22px;
  }
  #offers .text-button {
    white-space: normal;
    text-align: right;
  }
  #offers .no-promotion {
    gap: 12px;
    padding: 16px;
    flex-wrap: wrap;
  }
  .no-promotion > div {
    flex: 1;
    min-width: 150px;
  }
  .no-promotion strong {
    font-size: 18px;
  }
  .no-promotion .button {
    width: 100%;
    min-height: 44px;
  }
  .cart-buy-list .short-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .cart-buy-list .short-item > .button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
  .cart-buy-list .short-item > .fine {
    grid-row: auto;
  }
  #dialog-content .dialog-description,
  #dialog-content .notice,
  .cart-notice {
    font-size: 16px;
  }
  .g-review-art-label {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .g-review-card {
    transition: none;
  }
}

#line-connect-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
  margin: auto;
  border: 1px solid #edd4df;
  border-radius: 24px;
  background: #fffcff;
  color: #321b2c;
  box-shadow: 0 16px 60px #30152b33;
}
#line-connect-dialog::backdrop {
  background: rgb(25 13 23 / 0.48);
  backdrop-filter: blur(3px);
}
#line-connect-dialog h2 {
  font-size: 23px;
  line-height: 1.4;
  margin: 0;
}
#line-connect-dialog p {
  margin: 14px 0;
  line-height: 1.7;
  font-size: 15px;
}
#line-connect-dialog .actions-row {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
#line-connect-dialog button {
  font: inherit;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #dc005b;
  border-radius: 14px;
  background: #dc005b;
  color: white;
  cursor: pointer;
}
#line-connect-dialog button.secondary {
  background: white;
  color: #b9004a;
}
#line-connect-dialog button.quiet {
  background: transparent;
  color: #6b5363;
  border-color: transparent;
}
#line-connect-dialog button:focus-visible {
  outline: 3px solid #ad8bdf;
  outline-offset: 3px;
}
#line-connect-dialog button:disabled {
  opacity: 0.6;
  cursor: wait;
}
#line-connect-dialog small {
  display: block;
  margin-top: 16px;
  color: #6b5363;
  line-height: 1.6;
}
body:has(#line-connect-dialog[open]) {
  overflow: hidden;
}
