body {
  background: #f5f7f9;
}

.service-shell {
  min-height: 100vh;
  background: #f5f7f9;
}

.service-main {
  padding: 16px var(--page-side) calc(100px + var(--safe-bottom));
}

.service-main--plain {
  padding-bottom: 32px;
}

.service-main--with-submit {
  padding-bottom: calc(100px + var(--safe-bottom));
}

.hero-card,
.review-card,
.timeline-card,
.option-card,
.consent-card,
.demo-card {
  border-radius: var(--h5-card-radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(24, 28, 35, 0.03);
}

.hero-card {
  padding: 18px 16px;
  background: linear-gradient(135deg, #0f8a54 0%, #0c6c43 100%);
  color: #fff;
}

.hero-card h1 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.hero-card p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.65;
}

.review-card,
.timeline-card,
.consent-card,
.demo-card {
  padding: 18px 16px;
}

.review-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.review-product img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: #f2f4f7;
}

.review-product h2 {
  color: #111827;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.review-product p {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
}

.star-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.star-button {
  width: 32px;
  height: 32px;
  color: #d1d5db;
  font-size: 28px;
  line-height: 1;
}

.star-button.is-active {
  color: #f59e0b;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-toggle {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef2f5;
  color: #536171;
  font-size: 13px;
  font-weight: 600;
}

.tag-toggle.is-active {
  background: rgba(15, 138, 84, 0.12);
  color: #0f8a54;
}

.review-textarea {
  width: 100%;
  min-height: 124px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: #f8f9fb;
  color: #111827;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
}

.upload-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.upload-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 1px dashed rgba(17, 24, 39, 0.16);
  border-radius: 18px;
  background: #f8f9fb;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

.tracking-summary {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.tracking-summary img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  background: #eef2f5;
}

.tracking-summary h2 {
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.tracking-summary p {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.65;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: -10px;
  width: 2px;
  background: rgba(17, 24, 39, 0.08);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dbe1e8;
  box-shadow: inset 0 0 0 4px #fff;
}

.timeline-item.is-active::after {
  background: #0f8a54;
}

.timeline-item strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.5;
}

.timeline-item p,
.timeline-item time {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.65;
}

.option-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.option-card {
  display: block;
  padding: 18px 16px 16px;
}

.option-card h2 {
  color: #111827;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.option-card p {
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

.option-card__meta {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: #0f8a54;
  font-size: 13px;
  font-weight: 700;
}

.consent-card + .consent-card,
.demo-card + .demo-card {
  margin-top: 12px;
}

.consent-card h2,
.demo-card h2 {
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.consent-card > p,
.demo-card > p {
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

.consent-list,
.demo-actions {
  margin-top: 12px;
}

.consent-list {
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
}

.toggle-row + .toggle-row {
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.toggle-row__meta {
  flex: 1;
  min-width: 0;
}

.toggle-row__meta strong {
  display: block;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.toggle-row__meta p {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #d3d9e2;
  transition: background 0.2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease;
}

.switch.is-on {
  background: #0f8a54;
}

.switch.is-on::after {
  transform: translateX(18px);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-actions button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #eef2f5;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.demo-actions .is-primary {
  background: #0f8a54;
  color: #fff;
}

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.34);
  z-index: 140;
}

.overlay.is-open {
  display: flex;
}

.sheet,
.dialog {
  width: min(100%, 430px);
  background: #fff;
}

.sheet {
  border-radius: 24px 24px 0 0;
  padding: 18px 16px calc(18px + var(--safe-bottom));
}

.sheet h3,
.dialog h3 {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.sheet p,
.dialog p {
  margin-top: 10px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.sheet ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.sheet li {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6f7f9;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.dialog-wrap {
  align-items: center;
  padding: 16px;
}

.dialog {
  border-radius: 24px;
  padding: 20px 16px 16px;
  box-shadow: var(--shadow-card);
}

.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.dialog-actions button,
.dialog-actions a {
  flex: 1;
  min-height: var(--h5-dialog-action-height);
  border-radius: var(--h5-dialog-action-radius);
  background: #eef2f5;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.dialog-actions .is-primary {
  background: #0f8a54;
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + var(--safe-bottom));
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.88);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 160;
}

.toast.is-open {
  opacity: 1;
}

.fixed-submit {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 15px calc(10px + var(--safe-bottom));
  background: rgba(240, 241, 243, 0.9);
  backdrop-filter: blur(10px);
}

.fixed-submit__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--h5-primary-button-height);
  border: 0;
  border-radius: var(--h5-primary-button-radius);
  background: linear-gradient(135deg, #0f8a54 0%, #0c6c43 100%);
  color: #fff;
  font-size: var(--h5-primary-button-size);
  font-weight: 600;
  box-shadow: 0 10px 18px rgba(15, 138, 84, 0.12);
}

@media (max-width: 359px) {
  .upload-row {
    grid-template-columns: 1fr 1fr;
  }
}

body.logistics-page,
body.review-page {
  background: #f0f1f3;
}

.logistics-page .service-shell,
.review-page .service-shell {
  background: #f0f1f3;
}

.service-detail-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 241, 243, 0.98);
  box-shadow: none;
}

.service-detail-header .sub-header__back {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  color: transparent;
  font-size: 0;
}

.service-detail-header .sub-header__back::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-left: 2px solid #2b2b2b;
  border-bottom: 2px solid #2b2b2b;
  transform: rotate(45deg);
}

.logistics-main,
.review-main {
  padding: 18px 20px calc(112px + var(--safe-bottom));
}

.logistics-main {
  padding-bottom: 32px;
}

.logistics-flow-card,
.review-quick-card,
.review-detail-card {
  border-radius: 8px;
  background: #fff;
}

.logistics-flow-card {
  position: relative;
  padding: 18px 18px 20px 28px;
}

.logistics-flow-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  bottom: 18px;
  border-left: 2px dashed #d7dbe0;
}

.logistics-step {
  position: relative;
  padding-left: 28px;
}

.logistics-step + .logistics-step {
  margin-top: 24px;
}

.logistics-step::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid #d7dbe0;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.logistics-step--active::before {
  border-color: #006843;
  background: #006843;
  box-shadow: 0 0 0 4px #fff;
}

.logistics-step strong {
  display: block;
  color: #2b2b2b;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

.logistics-step--active strong {
  color: #006843;
}

.logistics-step p {
  margin-top: 8px;
  color: #b1b8c1;
  font-size: 14px;
  line-height: 1.45;
}

.logistics-step a {
  display: inline-block;
  margin-top: 8px;
  color: #006843;
  font-size: 14px;
  line-height: 1.2;
}

.logistics-step__content--review strong {
  color: #2b2b2b;
}

.logistics-review-box {
  margin-top: 14px;
  padding: 18px 18px 20px;
  border-radius: 8px;
  background: #f5f7fa;
}

.logistics-review-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logistics-review-box__head span {
  color: #4a4f57;
  font-size: 15px;
  line-height: 1.3;
}

.logistics-review-box__stars {
  display: flex;
  gap: 10px;
  color: #dfe4ea;
  font-size: 20px;
  line-height: 1;
}

.logistics-review-box p {
  margin-top: 16px;
  color: #c2c8cf;
}

.logistics-review-box button {
  margin-top: 22px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 40px;
  border: 1.5px solid #c8ccd2;
  border-radius: 20px;
  background: #fff;
  color: #2b2b2b;
  font-size: 16px;
}

.logistics-step--address strong {
  font-size: 17px;
}

.review-quick-card,
.review-detail-card {
  padding: 22px 22px 20px;
}

.review-quick-card h2 {
  color: #2b2b2b;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}

.review-quick-card__stars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.review-quick-card__stars > span,
.review-quick-card > p,
.review-detail-card__meta p,
.review-editor--draft p {
  color: #b1b8c1;
  font-size: 15px;
  line-height: 1.42;
}

.review-quick-card__stars > div,
.review-score-row__stars {
  display: flex;
  gap: 8px;
}

.review-star {
  padding: 0;
  color: #ff3b30;
  font-size: 20px;
  line-height: 1;
  background: transparent;
}

.review-star--empty {
  color: #dfe4ea;
}

.review-quick-card > p {
  margin-top: 18px;
}

.review-detail-card + .review-detail-card {
  margin-top: 18px;
}

.review-detail-card__product {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.review-detail-card__product img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: contain;
  background: #f7f7f8;
}

.review-detail-card__meta h2 {
  color: #2b2b2b;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
}

.review-detail-card__meta p {
  margin-top: 8px;
}

.review-detail-card__price {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.review-detail-card__price strong {
  color: #2b2b2b;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

.review-detail-card__price span {
  color: #b1b8c1;
  font-size: 14px;
  line-height: 1.2;
}

.review-score-row,
.review-score-row--single {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-score-row--single {
  margin-top: 22px;
}

.review-score-row > span,
.review-score-row--single > span {
  min-width: 76px;
  color: #636a73;
  font-size: 15px;
  line-height: 1.4;
}

.review-score-row__stars--filled {
  color: #ff3b30;
  font-size: 20px;
  line-height: 1;
}

.review-score-row__stars--filled.review-score-row__stars--four span:last-child,
.review-score-row__stars--filled.review-score-row__stars--three span:nth-last-child(-n + 2) {
  color: #dfe4ea;
}

.review-score-row__chevron {
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-right: 1.5px solid #b7bec7;
  border-bottom: 1.5px solid #b7bec7;
  transform: rotate(45deg);
}

.review-score-row__chevron--up {
  transform: rotate(225deg);
}

.review-editor {
  margin-top: 14px;
}

.review-editor--draft {
  min-height: 148px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eceef1;
}

.review-editor--filled p {
  color: #3a3a3c;
  font-size: 14px;
  line-height: 1.6;
}

.review-editor__counter {
  display: block;
  margin-top: 18px;
  color: #b1b8c1;
  font-size: 14px;
  line-height: 1.2;
  text-align: right;
}

.review-upload-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.review-upload-tile,
.review-image-thumb {
  width: 88px;
  height: 88px;
  border-radius: 8px;
}

.review-upload-tile {
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1.5px dashed #d7dde5;
  background: #fff;
  color: #5f6670;
  font-size: 12px;
}

.review-upload-tile--small {
  width: 72px;
  height: 72px;
}

.review-upload-tile__icon {
  position: relative;
  width: 22px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.review-upload-tile__icon::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -6px;
  width: 8px;
  height: 6px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.review-image-thumb {
  position: relative;
  overflow: hidden;
  background: #eef1f5;
}

.review-image-thumb button {
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(32, 34, 36, 0.66);
  color: #fff;
  font-size: 14px;
  line-height: 18px;
}

.review-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-submit-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 14px 20px calc(14px + var(--safe-bottom));
  background: rgba(240, 241, 243, 0.98);
}

.review-submit-bar__button {
  width: 100%;
  min-height: 52px;
  border-radius: 26px;
  background: #006843;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 359px) {
  .logistics-main,
  .review-main {
    padding-inline: 16px;
  }

  .review-quick-card,
  .review-detail-card,
  .logistics-flow-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .review-detail-card__product {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .review-detail-card__product img {
    width: 66px;
    height: 66px;
  }

  .review-detail-card__price {
    grid-column: 2;
    grid-auto-flow: column;
    justify-content: space-between;
    margin-top: 10px;
  }
}
