.ld-order-page .main {
  padding-top: 10px;
}

.ld-order-page .page-header {
  display: none;
}

.ld-order-intro {
  padding: 22px;
  background: var(--ld-digital-mist);
  border-radius: var(--ld-radius-lg);
  border: 1px solid rgba(38, 59, 116, 0.12);
}

.ld-order-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ld-order-service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ld-order-service-card__image {
  display: block;
  background: #eef2ff;
}

.ld-order-service-card__image img {
  display: block;
  width: 100%;
  height: auto;
}

.ld-order-service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.ld-order-service-card__title {
  margin: 0 0 10px;
  color: var(--ld-digital-navy);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 800;
}

.ld-order-service-card__price {
  margin: 0 0 14px;
  color: var(--ld-color-muted);
  font-size: 14px;
  line-height: 1.7;
}

.ld-order-service-card__price strong {
  color: #b45309;
  font-size: 16px;
}

.ld-order-service-card__action {
  margin-top: auto;
}

.ld-order-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ld-order-guide-card {
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(38, 59, 116, 0.12);
  border-radius: var(--ld-radius-md);
  transition: all 0.2s ease;
}

.ld-order-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 30, 60, 0.08);
}

.ld-order-guide-card h3 {
  margin: 0 0 8px;
  color: var(--ld-digital-navy);
  font-size: 17px;
}

.ld-order-guide-card p {
  margin: 0;
  color: var(--ld-color-muted);
  line-height: 1.7;
}

@media (max-width: 979px) {
  .ld-order-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ld-order-service-grid,
  .ld-order-guide-grid {
    grid-template-columns: 1fr;
  }

  .ld-payment-list li {
    width: 100%;
    border-radius: 14px;
  }
}
.ld-order-payment-details {
  display: block;
}

.ld-order-payment-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 24px;
  font-weight: 800;
  color: var(--ld-color-ink);
}

.ld-order-payment-details summary::-webkit-details-marker {
  display: none;
}

.ld-order-payment-details summary::after {
  content: "展開";
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--ld-digital-blue), var(--ld-digital-purple));
  font-size: 14px;
  font-weight: 700;
}

.ld-order-payment-details[open] summary::after {
  content: "收合";
}

.ld-order-payment-details summary span {
  display: block;
}

.ld-order-payment-details summary strong {
  display: block;
  line-height: 1.35;
}

.ld-order-payment-details summary small {
  display: block;
  margin-top: 8px;
  color: var(--ld-color-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.ld-order-payment-details .ld-section-desc {
  margin-top: 18px;
}

.ld-order-service-card__action {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

@media (max-width: 767px) {
  .ld-order-payment-details summary {
    align-items: flex-start;
    font-size: 21px;
  }

  .ld-order-payment-details summary::after {
    margin-top: 2px;
    padding: 7px 13px;
    font-size: 13px;
  }

  .ld-order-payment-details summary small {
    font-size: 14px;
  }
}
.ld-order-checkout-page .page-header {
  display: none;
}

.ld-checkout-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 36px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(201, 164, 92, 0.32), transparent 34%),
    linear-gradient(135deg, #131b36 0%, #263b74 52%, #6d4fb3 100%);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(23, 33, 63, 0.18);
}

.ld-checkout-hero h1 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 800;
}

.ld-checkout-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.8;
}

.ld-checkout-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.ld-checkout-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.ld-checkout-breadcrumb span::before {
  content: "›";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.ld-checkout-service-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px 0 22px;
  color: var(--ld-digital-navy);
  font-weight: 800;
}

.ld-checkout-service-switch select {
  max-width: 100%;
  min-height: 38px;
  margin-bottom: 0;
  border-radius: 10px;
  border-color: rgba(38, 59, 116, 0.22);
}

@media (max-width: 767px) {
  .ld-checkout-hero {
    margin-top: 0px;
    margin-bottom: 20px;
    padding: 28px 22px;
    border-radius: 20px;
  }

  .ld-checkout-hero h1 {
    font-size: 26px;
  }

  .ld-checkout-hero p {
    font-size: 15px;
    line-height: 1.75;
  }

  .ld-checkout-service-switch {
    display: block;
    margin: 22px 0 18px;
  }

  .ld-checkout-service-switch span {
    display: block;
    margin-bottom: 8px;
  }

  .ld-checkout-service-switch select {
    width: 100%;
  }
}
/* Digital checkout product summary */
.ld-order-checkout-page #product {
  margin: 22px 0 30px;
}

.ld-order-checkout-page #product .product {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(38, 59, 116, 0.12);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(20, 30, 60, 0.1);
}

.ld-order-checkout-page #product .row-fluid {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.ld-order-checkout-page #product .span6 {
  float: none;
  width: 50%;
  margin-left: 0;
}

.ld-order-checkout-page #product .product-image {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #f3f5fb;
  box-shadow: 0 10px 26px rgba(20, 30, 60, 0.08);
}

.ld-order-checkout-page #product .product-image img {
  display: block;
  width: 100%;
  height: auto;
}

.ld-order-checkout-page #product .badge.badge-info {
  margin-right: 6px;
  background: var(--ld-digital-blue);
}

.ld-order-checkout-page #product .label.label-warning {
  margin-left: 6px;
  border-radius: 999px;
}

.ld-order-checkout-page #product .table {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(38, 59, 116, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.ld-order-checkout-page #product .table tr.info td,
.ld-order-checkout-page #product .table tr.success td {
  background: #f3f5fb;
  color: var(--ld-digital-navy);
  font-weight: 700;
}

.ld-order-checkout-page #product .table td {
  border-top-color: rgba(38, 59, 116, 0.1);
  vertical-align: middle;
}

.ld-order-checkout-page #product #newTotalPrice {
  color: #b45309;
  font-size: 22px;
  font-weight: 800;
}

.ld-order-checkout-page #product select#toBuyAmount {
  width: 100%;
  min-height: 44px;
  margin: 8px 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(38, 59, 116, 0.22);
  border-radius: 12px;
  background: #fff;
  color: var(--ld-digital-navy);
  font-weight: 700;
}

.ld-order-checkout-page #product h3.text-info {
  margin: 20px 0 12px;
  color: var(--ld-digital-navy);
  font-size: 20px;
  font-weight: 800;
}

.ld-order-checkout-page #product .content-box {
  border-radius: 16px;
  border: 1px solid rgba(38, 59, 116, 0.12);
  box-shadow: 0 8px 22px rgba(20, 30, 60, 0.06);
}

.ld-order-checkout-page #couponDIV1,
.ld-order-checkout-page #vipDIV {
  margin-bottom: 14px;
}

.ld-order-checkout-page #couponDIV2 {
  margin: 0 0 14px;
  color: var(--ld-color-muted);
  text-align: center;
  font-weight: 700;
}

.ld-order-checkout-page #product input[type="checkbox"] {
  vertical-align: middle;
}

.ld-order-checkout-page #product .text-pink font,
.ld-order-checkout-page #product font[color="blue"] {
  color: var(--ld-digital-blue);
  font-weight: 700;
}

.ld-order-checkout-page .label.label-info.pull-right.f15 {
  float: none;
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(38, 59, 116, 0.1);
  color: var(--ld-digital-navy);
  font-weight: 700;
}

@media (max-width: 767px) {
  .ld-order-checkout-page #product .product {
    padding: 18px;
    border-radius: 18px;
  }

  .ld-order-checkout-page #product .row-fluid {
    display: block;
  }

  .ld-order-checkout-page #product .span6 {
    width: 100%;
  }

  .ld-order-checkout-page #product .product-image {
    border-radius: 16px;
  }

  .ld-order-checkout-page #product .table {
    font-size: 14px;
  }

  .ld-order-checkout-page #product .table td {
    padding: 8px 6px;
  }

  .ld-order-checkout-page #product #newTotalPrice {
    font-size: 20px;
  }

  .ld-order-checkout-page #product h3.text-info {
    font-size: 18px;
  }
}
/* Mobile tuning for digital checkout price selector */
@media (max-width: 767px) {
  .ld-order-checkout-page #product select#toBuyAmount,
  .ld-order-checkout-page #product select.btn.span12.f18 {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 6px 34px 6px 12px;
    font-size: 15px !important;
    line-height: 1.3;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ld-order-checkout-page #product .table {
    font-size: 13px;
  }

  .ld-order-checkout-page #product .table td {
    padding: 7px 5px;
  }

  .ld-order-checkout-page #product .text-pink {
    font-size: 15px;
    line-height: 1.75;
  }
}
/* Digital checkout info cards */
.ld-checkout-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 30px;
}

.ld-checkout-info-card {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid rgba(38, 59, 116, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(20, 30, 60, 0.07);
}

.ld-checkout-info-card h3 {
  margin: 0 0 14px;
  color: var(--ld-digital-navy);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
}

.ld-checkout-info-card h3::before {
  content: "✦";
  display: inline-block;
  margin-right: 8px;
  color: var(--ld-digital-gold);
  font-size: 16px;
  vertical-align: 2px;
}

.ld-checkout-info-card ol {
  margin: 0;
  padding-left: 22px;
}

.ld-checkout-info-card li {
  margin: 0 0 10px;
  color: var(--ld-color-ink);
  font-size: 15px;
  line-height: 1.75;
}

.ld-checkout-info-card li:last-child {
  margin-bottom: 0;
}

.ld-checkout-info-card .btn {
  margin: 0 3px;
}

@media (max-width: 767px) {
  .ld-checkout-info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0 26px;
  }

  .ld-checkout-info-card {
    padding: 18px;
    border-radius: 16px;
  }

  .ld-checkout-info-card h3 {
    font-size: 19px;
  }

  .ld-checkout-info-card li {
    font-size: 15px;
  }
}
/* Digital checkout video block */
.ld-checkout-video-card {
  margin: 30px 0 34px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(38, 59, 116, 0.12);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(20, 30, 60, 0.07);
}

.ld-checkout-video-card h3 {
  margin: 0 0 16px;
  color: var(--ld-digital-navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.ld-checkout-video-card h3::before {
  content: "▶";
  display: inline-block;
  margin-right: 9px;
  color: var(--ld-digital-gold);
  font-size: 15px;
  vertical-align: 2px;
}

.ld-checkout-video-note {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 12px;
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.ld-checkout-video-desc {
  margin: 0 0 12px;
  color: var(--ld-color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ld-checkout-video-frame {
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  border-radius: 16px;
  background: #111827;
}

.ld-checkout-video-iframe {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  aspect-ratio: 700 / 394;
}

.ld-checkout-video-empty {
  padding: 18px;
  color: var(--ld-color-ink);
  background: var(--ld-digital-mist);
  border: 1px solid rgba(38, 59, 116, 0.12);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .ld-checkout-video-card {
    margin: 24px 0 28px;
    padding: 18px;
    border-radius: 16px;
  }

  .ld-checkout-video-card h3 {
    font-size: 19px;
  }

  .ld-checkout-video-empty {
    padding: 15px;
  }

  .ld-checkout-video-frame {
    border-radius: 14px;
  }
}
/* Digital checkout payment flow */
.ld-checkout-flow-card {
  margin: 30px 0 34px;
  padding: 26px;
  background: #eef8fb;
  border: 1px solid rgba(38, 59, 116, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(20, 30, 60, 0.08);
}

.ld-checkout-flow-header {
  margin-bottom: 22px;
}

.ld-checkout-flow-header h2 {
  margin: 0 0 8px;
  color: var(--ld-digital-navy);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
}

.ld-checkout-flow-header h2::before {
  content: "▣";
  display: inline-block;
  margin-right: 10px;
  color: var(--ld-digital-blue);
  font-size: 20px;
  vertical-align: 2px;
}

.ld-checkout-flow-header p {
  margin: 0;
  color: var(--ld-color-muted);
  font-size: 15px;
  line-height: 1.75;
}

.ld-checkout-step-title {
  margin: 22px 0 14px;
  color: var(--ld-digital-navy);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
}

.ld-checkout-step-title span {
  display: block;
}

.ld-checkout-step-title small {
  display: block;
  margin-top: 6px;
  color: var(--ld-color-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.ld-checkout-payment-hint {
  margin: 12px 0;
  padding: 10px 14px;
  color: var(--ld-digital-navy);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(38, 59, 116, 0.12);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}

.ld-checkout-flow-card .content-box {
  border-radius: 16px;
}

.ld-checkout-flow-card select,
.ld-checkout-flow-card input[type="text"],
.ld-checkout-flow-card input[type="tel"] {
  max-width: 100%;
}

@media (max-width: 767px) {
  .ld-checkout-flow-card {
    margin: 26px 0 30px;
    padding: 18px;
    border-radius: 18px;
  }

  .ld-checkout-flow-header h2 {
    font-size: 24px;
  }

  .ld-checkout-step-title {
    font-size: 19px;
  }
}
/* Align payment radio options in digital checkout */
.ld-order-checkout-page .bigRadio tr {
  border-bottom: 1px solid rgba(38, 59, 116, 0.08);
}

.ld-order-checkout-page .bigRadio tr:last-child {
  border-bottom: 0;
}

.ld-order-checkout-page .bigRadio td {
  vertical-align: middle !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.ld-order-checkout-page .bigRadio td:first-child {
  width: 46px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  text-align: center !important;
}

.ld-order-checkout-page .bigRadio input[type="radio"] {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.ld-order-checkout-page .bigRadio img {
  vertical-align: middle;
  max-height: 34px;
  width: auto;
}

.ld-order-checkout-page .bigRadio .btn {
  vertical-align: middle;
}

@media (max-width: 767px) {
  .ld-order-checkout-page .bigRadio td {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }

  .ld-order-checkout-page .bigRadio td:first-child {
    width: 42px !important;
  }

  .ld-order-checkout-page .bigRadio img {
    max-height: 32px;
  }
}

/* Guide quiz entry button on order hero */
[class*="ld-"][class*="hero"] {
    position: relative;
}

.ld-order-guide-button {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: #fff7e8;
    color: #704717 !important;
    border: 1px solid rgba(255, 255, 255, .65);
    box-shadow: 0 10px 24px rgba(20, 18, 42, .18);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.ld-order-guide-button:hover {
    background: #ffffff;
    color: #5d3710 !important;
    text-decoration: none;
}

@media (max-width: 768px) {
    .ld-order-guide-button {
        top: 18px;
        right: 18px;
        min-height: 34px;
        padding: 0 14px;
        border-radius: 999px;
        font-size: 14px;
        line-height: 1;
        background: rgba(255, 247, 232, .96);
        box-shadow: 0 8px 18px rgba(20, 18, 42, .16);
    }
}

@media (max-width: 480px) {
    .ld-order-guide-button {
        top: 14px;
        right: 14px;
        min-height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }
}
