/* Mobile-only visual layer for the subsite opening flow. */
[data-app="mall-mobile"] .mso-hero,
[data-app="mall-mobile"] .mso-benefits,
[data-app="mall-mobile"] .mso-open-button,
[data-app="mall-mobile"] .mso-dialog {
  box-sizing: border-box;
}

[data-app="mall-mobile"] .mso-hero {
  position: relative;
  min-height: 184px;
  margin: 0 0 18px;
  padding: 28px 24px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #f36b3f 0%, #f28b36 48%, #f5aa4a 100%);
  box-shadow: 0 14px 28px rgba(221, 95, 43, .18);
}

[data-app="mall-mobile"] .mso-hero > div {
  position: relative;
  z-index: 1;
  max-width: 70%;
}

[data-app="mall-mobile"] .mso-hero span,
[data-app="mall-mobile"] .mso-hero p,
[data-app="mall-mobile"] .mso-hero em {
  display: block;
  margin: 0;
}

[data-app="mall-mobile"] .mso-hero span {
  font-size: 12px;
  line-height: 18px;
  opacity: .82;
}

[data-app="mall-mobile"] .mso-hero h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 11px 0 4px;
  font-size: 26px;
  line-height: 34px;
  letter-spacing: 0;
}

[data-app="mall-mobile"] .mso-hero h3 svg {
  width: 22px;
  height: 22px;
  color: #ffe3a0;
}

[data-app="mall-mobile"] .mso-hero p {
  font-size: 14px;
  line-height: 22px;
  opacity: .9;
}

[data-app="mall-mobile"] .mso-hero em {
  margin-top: 19px;
  overflow: hidden;
  color: rgba(255, 255, 255, .74);
  font-size: 11px;
  font-style: normal;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-app="mall-mobile"] .mso-orb {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  pointer-events: none;
}

[data-app="mall-mobile"] .mso-orb.one {
  right: -40px;
  top: -62px;
  width: 190px;
  height: 190px;
  background: rgba(255, 255, 255, .1);
}

[data-app="mall-mobile"] .mso-orb.two {
  right: 25px;
  bottom: -58px;
  width: 126px;
  height: 126px;
  background: rgba(255, 212, 143, .16);
}

[data-app="mall-mobile"] .mso-benefits {
  margin: 0 0 108px;
  padding: 21px 16px 18px;
  border: 1px solid #f0e8e2;
  border-radius: 16px;
  background: #fff;
}

[data-app="mall-mobile"] .mso-benefits header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

[data-app="mall-mobile"] .mso-benefits header span {
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: #f07843;
}

[data-app="mall-mobile"] .mso-benefits h3 {
  margin: 0;
  color: #263245;
  font-size: 17px;
  line-height: 24px;
}

[data-app="mall-mobile"] .mso-benefits ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

[data-app="mall-mobile"] .mso-benefits li {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  color: #687387;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

[data-app="mall-mobile"] .mso-benefits li > span:last-child {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-app="mall-mobile"] .mso-benefit-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
}

[data-app="mall-mobile"] .mso-benefit-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

[data-app="mall-mobile"] .mso-benefit-icon.orange { color: #ee762f; background: #fff0e7; }
[data-app="mall-mobile"] .mso-benefit-icon.coral { color: #ed6255; background: #ffebea; }
[data-app="mall-mobile"] .mso-benefit-icon.blue { color: #4b7fe8; background: #eaf1ff; }
[data-app="mall-mobile"] .mso-benefit-icon.green { color: #39a476; background: #e8f8ef; }
[data-app="mall-mobile"] .mso-benefit-icon.gold { color: #c88b21; background: #fff6dc; }
[data-app="mall-mobile"] .mso-benefit-icon.violet { color: #8063cf; background: #f0ebff; }
[data-app="mall-mobile"] .mso-benefit-icon.pink { color: #d35a9a; background: #ffedf6; }

[data-app="mall-mobile"] .mso-open-button {
  position: fixed;
  z-index: 12;
  right: 16px;
  bottom: calc(67px + env(safe-area-inset-bottom));
  left: 16px;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: #ef713f;
  box-shadow: 0 9px 24px rgba(220, 94, 47, .25);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

[data-app="mall-mobile"] .mso-open-button:active { transform: scale(.98); background: #df5f31; }

[data-app="mall-mobile"] .mso-dialog {
  width: min(100% - 24px, 480px);
  max-width: 480px;
  max-height: min(760px, calc(100dvh - 24px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #2a3445;
  box-shadow: 0 24px 70px rgba(20, 29, 44, .22);
}

[data-app="mall-mobile"] .mso-dialog::backdrop { background: rgba(17, 24, 39, .48); }
[data-app="mall-mobile"] .mso-dialog > form { max-height: inherit; overflow: auto; }

[data-app="mall-mobile"] .mso-form > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 20px 17px;
  border-bottom: 1px solid #f0f1f4;
}

[data-app="mall-mobile"] .mso-form > header h2 { margin: 0; color: #222c3c; font-size: 20px; line-height: 28px; }
[data-app="mall-mobile"] .mso-form > header p { margin: 3px 0 0; color: #8b95a5; font-size: 12px; line-height: 18px; }
[data-app="mall-mobile"] .mso-dialog-close { width: 44px; height: 44px; margin: -9px -8px 0 8px; border: 0; border-radius: 50%; color: #778294; background: transparent; font-size: 26px; line-height: 44px; cursor: pointer; }
[data-app="mall-mobile"] .mso-dialog-close:active { background: #f3f4f6; }

[data-app="mall-mobile"] .mso-form-fields { display: grid; gap: 15px; padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); }
[data-app="mall-mobile"] .mso-form-fields > label,
[data-app="mall-mobile"] .mso-more label { display: grid; gap: 7px; color: #566276; font-size: 13px; line-height: 18px; }
[data-app="mall-mobile"] .mso-form-fields label > span > b { color: #eb6e4a; font-weight: 600; }
[data-app="mall-mobile"] .mso-form-fields input,
[data-app="mall-mobile"] .mso-form-fields select { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #dce1e9; border-radius: 10px; outline: 0; background: #fff; color: #273346; font: inherit; font-size: 16px; }
[data-app="mall-mobile"] .mso-form-fields input:focus,
[data-app="mall-mobile"] .mso-form-fields select:focus { border-color: #ee7948; box-shadow: 0 0 0 3px rgba(238, 121, 72, .12); }
[data-app="mall-mobile"] .mso-domain-inputs { grid-template-columns: minmax(0, 1fr) 8px minmax(112px, .8fr); gap: 5px; }
[data-app="mall-mobile"] .mso-domain-preview { margin: 8px 0 0; color: #8c96a5; }
[data-app="mall-mobile"] .mso-domain-preview svg { color: #ef7541; }
[data-app="mall-mobile"] .mso-more { border-top: 1px solid #f0f1f4; border-bottom: 1px solid #f0f1f4; }
[data-app="mall-mobile"] .mso-more summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; color: #687487; font-size: 13px; cursor: pointer; list-style: none; }
[data-app="mall-mobile"] .mso-more summary::-webkit-details-marker { display: none; }
[data-app="mall-mobile"] .mso-more summary svg { width: 16px; height: 16px; transition: transform .18s ease; }
[data-app="mall-mobile"] .mso-more[open] summary svg { transform: rotate(180deg); }
[data-app="mall-mobile"] .mso-more > label { padding-bottom: 14px; }
[data-app="mall-mobile"] .mso-amount { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 10px; padding: 14px 15px; border-radius: 12px; background: #fff6ef; }
[data-app="mall-mobile"] .mso-amount span { color: #7d6d63; font-size: 12px; }
[data-app="mall-mobile"] .mso-amount strong { color: #e76535; font-size: 23px; line-height: 28px; font-variant-numeric: tabular-nums; }
[data-app="mall-mobile"] .mso-amount small { grid-column: 1 / -1; color: #a08e83; font-size: 11px; }
[data-app="mall-mobile"] .mso-plan-description { margin:0; color:#697381; font-size:13px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
[data-app="mall-mobile"] .mso-submit { min-height: 48px; border: 0; border-radius: 11px; color: #fff; background: #ef713f; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
[data-app="mall-mobile"] .mso-submit:disabled { opacity: .5; cursor: not-allowed; }
[data-app="mall-mobile"] .mso-form .subsite-payment-note { margin: -6px 0 0; font-size: 11px; }
[data-app="mall-mobile"] .mso-apply-error { margin: -2px 0 0; font-size: 12px; }
[data-app="mall-mobile"] .mso-review-alert { margin: 0 0 16px; border-radius: 12px; }

@media (max-width: 375px) {
  [data-app="mall-mobile"] .mso-hero { padding-right: 18px; padding-left: 18px; }
  [data-app="mall-mobile"] .mso-benefits { padding-right: 12px; padding-left: 12px; }
  [data-app="mall-mobile"] .mso-benefit-icon { width: 38px; height: 38px; }
  [data-app="mall-mobile"] .mso-benefit-icon svg { width: 18px; height: 18px; }
  [data-app="mall-mobile"] .mso-benefits li { font-size: 10px; }
  [data-app="mall-mobile"] .mso-form-fields { padding-right: 16px; padding-left: 16px; }
  [data-app="mall-mobile"] .mso-domain-inputs { grid-template-columns: minmax(0, 1fr) 5px minmax(96px, .8fr); gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-app="mall-mobile"] .mso-open-button,
  [data-app="mall-mobile"] .mso-more summary svg { transition: none; }
}
