/* The Shopify FAQ section uses a centered half-width column and expanding rows. */
.alltop-faq-page {
  padding: 100px 0 80px;
}

.alltop-faq-article {
  max-width: 590px;
  margin: 0 auto;
}

.alltop-faq-article h1 {
  margin: 0 0 43px;
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
}

.alltop-faq-list .wp-block-details {
  margin: 0;
  padding: 14px 0;
}

.alltop-faq-list .wp-block-details summary {
  position: relative;
  display: block;
  padding: 0 28px 0 32px;
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.alltop-faq-list .wp-block-details summary::-webkit-details-marker {
  display: none;
}

.alltop-faq-list .wp-block-details summary::before,
.alltop-faq-list .wp-block-details summary::after {
  position: absolute;
  top: 13px;
  left: 1px;
  width: 16px;
  height: 2px;
  background: var(--alltop-orange);
  content: "";
}

.alltop-faq-list .wp-block-details summary::after {
  transform: rotate(90deg);
}

.alltop-faq-list .wp-block-details[open] summary::after {
  transform: rotate(0);
}

.alltop-faq-list .wp-block-details > :not(summary) {
  margin: 16px 0 0 32px;
  line-height: 1.7;
}

.alltop-faq-list .wp-block-details a {
  color: var(--alltop-orange);
  text-decoration: underline;
}

.alltop-shopify-page {
  display: block !important;
  max-width: 940px;
  margin-inline: auto;
  background: #fff !important;
  font-size: 17px;
  line-height: 1.7;
}

.alltop-policy-source {
  max-width: 850px;
  margin-inline: auto;
  line-height: 1.8;
}

.alltop-policy-source h2 {
  margin-top: 32px;
  color: var(--alltop-heading);
}

.alltop-policy-source li {
  margin-bottom: 12px;
}

.alltop-blog-archive,
.alltop-blog-article {
  padding-block: 44px 90px;
}

.alltop-blog-archive h1,
.alltop-blog-article h1 {
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: clamp(34px, 4vw, 48px);
}

.alltop-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.alltop-blog-card {
  border: 1px solid var(--alltop-line);
  background: #fff;
}

.alltop-blog-card a {
  display: block;
  color: var(--alltop-heading);
  text-decoration: none;
}

.alltop-blog-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.alltop-blog-card h2 {
  padding: 16px 20px 22px;
  font-size: 19px;
  line-height: 1.4;
}

.alltop-blog-entry {
  max-width: 860px;
  margin-inline: auto;
}

.alltop-blog-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
}

.alltop-blog-body p,
.alltop-blog-body li {
  line-height: 1.8;
}

.alltop-blog-back {
  display: inline-block;
  margin-bottom: 24px;
}

.alltop-shopify-page .wp-block-columns {
  gap: 20px;
}

.alltop-where-to-buy-page {
  padding: 42px 0 90px;
}

.alltop-where-to-buy-article {
  max-width: 820px;
  margin-inline: auto;
}

.alltop-where-to-buy-article h1 {
  margin: 0 0 92px;
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.15;
  text-align: center;
}

.alltop-where-to-buy-content {
  font-size: 17px;
  line-height: 1.5;
}

.alltop-where-to-buy-content p {
  margin: 0 0 22px;
}

.alltop-where-to-buy-content a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .alltop-where-to-buy-page {
    padding: 30px 0 60px;
  }

  .alltop-where-to-buy-article h1 {
    margin-bottom: 48px;
  }
}

/* Shopify customer login: centered heading and two clear account columns. */
.alltop-account-page {
  padding-block: 40px 90px;
}

.alltop-account-intro {
  margin-bottom: 48px;
  text-align: center;
}

.alltop-account-intro h1 {
  margin: 0;
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: clamp(34px, 4vw, 48px);
}

.alltop-account-content #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 96px);
}

.alltop-account-content #customer_login::before,
.alltop-account-content #customer_login::after {
  display: none;
}

.alltop-account-content #customer_login .col-1,
.alltop-account-content #customer_login .col-2 {
  float: none;
  width: 100%;
  max-width: 100%;
}

.alltop-account-content #customer_login h2 {
  margin: 0 0 20px;
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: 26px;
}

.alltop-account-content #customer_login form {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.alltop-account-content #customer_login .form-row {
  margin-bottom: 18px;
}

.alltop-account-content #customer_login .form-row label {
  margin-bottom: 7px;
  font-weight: 600;
}

.alltop-account-content #customer_login .input-text {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--alltop-line);
  border-radius: 0;
}

.alltop-account-content #customer_login .button {
  min-height: 48px;
  padding: 12px 30px;
  border-radius: 0;
  background: var(--alltop-orange);
  color: #fff;
  font-family: var(--alltop-heading-font);
}

.alltop-account-content .woocommerce-MyAccount-navigation {
  width: 25%;
}

.alltop-account-content .woocommerce-MyAccount-content {
  width: 70%;
}

.alltop-checkout-page {
  padding-block: 40px 90px;
}

.alltop-checkout-intro {
  margin-bottom: 42px;
  text-align: center;
}

.alltop-checkout-intro h1 {
  margin: 0;
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: clamp(34px, 4vw, 48px);
}

.alltop-checkout-content {
  max-width: 1180px;
  margin-inline: auto;
}

.alltop-checkout-content .woocommerce {
  line-height: 1.65;
}

.alltop-checkout-content .alltop-checkout-login-link {
  margin-top: 24px;
}

.alltop-checkout-login-link .alltop-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--alltop-orange);
  color: #fff;
  font-family: var(--alltop-heading-font);
  font-weight: 700;
  text-decoration: none;
}

.alltop-checkout-content form.checkout .col2-set,
.alltop-checkout-content form.checkout #order_review {
  width: 100%;
}

.alltop-checkout-content form.checkout .input-text,
.alltop-checkout-content form.checkout select {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--alltop-line);
  border-radius: 0;
}

.alltop-checkout-content #place_order {
  min-height: 50px;
  padding: 14px 28px;
  border-radius: 0;
  background: var(--alltop-orange);
  color: #fff;
  font-family: var(--alltop-heading-font);
}

@media (max-width: 767px) {
  .alltop-account-page { padding-block: 28px 60px; }
  .alltop-account-intro { margin-bottom: 30px; }
  .alltop-account-content #customer_login { grid-template-columns: 1fr; gap: 34px; }
  .alltop-account-content .woocommerce-MyAccount-navigation,
  .alltop-account-content .woocommerce-MyAccount-content { width: 100%; }
  .alltop-checkout-page { padding-block: 28px 60px; }
  .alltop-checkout-intro { margin-bottom: 28px; }
}

.alltop-about-page {
  padding-block: 42px 90px;
}

.alltop-about-article {
  max-width: 900px;
  margin-inline: auto;
}

.alltop-about-article h1 {
  margin-bottom: 48px;
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: clamp(36px, 5vw, 48px);
  text-align: center;
}

.alltop-about-story {
  display: block !important;
}

.alltop-about-story h2 {
  margin: 48px 0 14px;
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: clamp(25px, 3vw, 32px);
}

.alltop-about-story p {
  line-height: 1.8;
}

.alltop-shopify-page h2 {
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: clamp(26px, 3vw, 36px);
}

.alltop-shopify-page a:not(.wp-block-button__link) {
  color: var(--alltop-orange);
  text-decoration: underline;
}

.alltop-shopify-page .wp-block-button__link {
  border-radius: 0;
  background: var(--alltop-orange);
  color: #fff;
  font-family: var(--alltop-heading-font);
}

.alltop-shopify-page .is-style-outline .wp-block-button__link {
  border: 1px solid var(--alltop-orange);
  background: #fff;
  color: var(--alltop-orange);
}

.alltop-download-card,
.alltop-where-to-buy .wp-block-column {
  padding: 24px;
  border: 1px solid var(--alltop-line);
}

.alltop-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.alltop-download-card p {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .alltop-download-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .alltop-faq-page {
    padding: 50px 0 60px;
  }

  .alltop-faq-list .wp-block-details summary {
    font-size: 16px;
  }
}

/* Shopify's contact page uses its mountain photo and a raised white panel. */
.alltop-contact-hero {
  height: 250px;
  background: url("../images/contact-mountain.jpg") center 49% / cover no-repeat;
}

.alltop-contact-panel {
  position: relative;
  max-width: 850px;
  margin-top: -32px;
  padding: 16px 0 75px;
  background: #fff;
}

.alltop-contact-panel > h1 {
  margin: 0 0 45px;
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.15;
  text-align: center;
}

.alltop-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 35px;
}

.alltop-contact-intro h2 {
  margin: 0 0 15px;
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: clamp(29px, 3vw, 36px);
}

.alltop-contact-intro p {
  margin: 0 0 18px;
  line-height: 1.45;
}

.alltop-contact-intro a {
  color: var(--alltop-orange);
  overflow-wrap: anywhere;
}

.alltop-contact-form .mf-form-wrapper {
  width: 100%;
}

.alltop-contact-form .mf-form-wrapper .elementor > .e-con {
  padding: 0 !important;
  background: #fff !important;
}

.alltop-contact-form .elementor-widget-heading {
  display: none;
}

.alltop-contact-form .elementor-element-65b14f34 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 20px !important;
  row-gap: 14px !important;
}

.alltop-contact-form .elementor-element-65b14f34 > .elementor-widget {
  width: 100% !important;
  margin: 0 !important;
}

.alltop-contact-form .elementor-widget-mf-text,
.alltop-contact-form .elementor-widget-mf-email,
.alltop-contact-form .elementor-widget-mf-telephone {
  grid-column: 1;
}

.alltop-contact-form .elementor-widget-mf-textarea {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.alltop-contact-form .elementor-widget-mf-button {
  grid-column: 1 / -1;
}

.alltop-contact-form .elementor-widget label {
  display: block;
  margin-bottom: 7px;
  color: var(--alltop-heading);
  font-size: 14px;
}

.alltop-contact-form .mf-form-wrapper h4,
.alltop-contact-form .mf-form-wrapper label {
  color: var(--alltop-heading) !important;
}

.alltop-contact-form input:not([type="checkbox"]):not([type="radio"]),
.alltop-contact-form textarea,
.alltop-contact-form select {
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  border: 1px solid var(--alltop-line) !important;
  border-radius: 0;
  background: #fff !important;
  color: var(--alltop-body) !important;
}

.alltop-contact-form textarea {
  height: 198px !important;
  resize: vertical;
}

.alltop-contact-form input::placeholder,
.alltop-contact-form textarea::placeholder {
  color: #777 !important;
}

.alltop-contact-form button[type="submit"] {
  border-radius: 0;
  background: var(--alltop-orange);
}

@media (max-width: 767px) {
  .alltop-contact-hero {
    height: 190px;
  }

  .alltop-contact-panel {
    margin-top: -20px;
    padding: 12px 18px 60px;
  }

  .alltop-contact-panel > h1 {
    margin-bottom: 30px;
  }

  .alltop-contact-layout,
  .alltop-contact-form .elementor-element-65b14f34 {
    grid-template-columns: 1fr !important;
  }

  .alltop-contact-form .elementor-widget-mf-textarea,
  .alltop-contact-form .elementor-widget-mf-button {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Shopify cart.json: centered introduction, item rows, then a centered total.
   Keep WooCommerce's cart table and totals hooks for coupons and checkout. */
.alltop-cart-page {
  padding-block: 36px 90px;
}

.alltop-cart-intro {
  margin: 0 auto 48px;
  text-align: center;
}

.alltop-cart-intro h1 {
  margin: 0 0 16px;
  color: var(--alltop-heading);
  font-family: var(--alltop-heading-font);
  font-size: clamp(34px, 4vw, 48px);
}

.alltop-cart-intro-total {
  margin: 0;
  font-family: var(--alltop-heading-font);
  font-size: 24px;
}

.alltop-cart-intro-total strong {
  margin-left: 14px;
  font-weight: 700;
}

.alltop-cart-content .woocommerce-cart-form,
.alltop-cart-content .cart-collaterals {
  float: none;
  width: 100%;
}

.alltop-cart-content .woocommerce-cart-form table.shop_table {
  display: block;
  width: 100%;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
}

.alltop-cart-content .woocommerce-cart-form thead {
  display: none;
}

.alltop-cart-content .woocommerce-cart-form tbody,
.alltop-cart-content .woocommerce-cart-form tr.cart_item {
  display: block;
  width: 100%;
}

.alltop-cart-content .woocommerce-cart-form tr.cart_item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 190px 145px 34px;
  grid-template-rows: auto auto 1fr;
  column-gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--alltop-line);
  align-items: start;
}

.alltop-cart-content .woocommerce-cart-form tr.cart_item td {
  display: block;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  text-align: left !important;
  overflow-wrap: anywhere;
}

.alltop-cart-content .woocommerce-cart-form tr.cart_item td::before {
  display: none;
}

.alltop-cart-content .woocommerce-cart-form .product-thumbnail {
  grid-column: 1;
  grid-row: 1 / 4;
}

.alltop-cart-content .woocommerce-cart-form .product-thumbnail img {
  width: 140px;
  max-width: 100%;
  height: auto;
}

.alltop-cart-content .woocommerce-cart-form .product-name {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--alltop-heading-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.alltop-cart-content .woocommerce-cart-form .product-name a {
  color: var(--alltop-heading);
  text-decoration: none;
}

.alltop-cart-content .woocommerce-cart-form .product-name .variation {
  margin: 8px 0 0;
  color: var(--alltop-muted, #666);
  font-family: var(--alltop-body-font);
  font-size: 13px;
  font-weight: 400;
}

.alltop-cart-content .woocommerce-cart-form .product-price {
  grid-column: 2;
  grid-row: 2;
  margin-top: 9px;
  font-size: 15px;
}

.alltop-cart-content .woocommerce-cart-form .product-quantity {
  grid-column: 3;
  grid-row: 1 / 3;
}

.alltop-cart-content .woocommerce-cart-form .product-quantity .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--alltop-line);
}

.alltop-cart-content .woocommerce-cart-form .product-quantity .qty {
  width: 54px;
  min-height: 43px;
  padding: 0 4px;
  border: 0;
  box-shadow: none;
  text-align: center;
  appearance: textfield;
}

.alltop-cart-content .woocommerce-cart-form .product-quantity .qty::-webkit-inner-spin-button,
.alltop-cart-content .woocommerce-cart-form .product-quantity .qty::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.alltop-cart-content .woocommerce-cart-form .product-quantity .alltop-quantity-step {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-height: 43px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--alltop-heading);
  cursor: pointer;
}

.alltop-cart-content .woocommerce-cart-form .product-subtotal {
  grid-column: 4;
  grid-row: 1 / 3;
  font-family: var(--alltop-heading-font);
  font-size: 18px;
  font-weight: 700;
}

.alltop-cart-content .woocommerce-cart-form .product-subtotal::before {
  display: block !important;
  float: none !important;
  margin-bottom: 6px;
  content: "小计" !important;
  color: var(--alltop-muted, #666);
  font-size: 13px;
  font-weight: 400;
}

.alltop-cart-content .woocommerce-cart-form .product-remove {
  grid-column: 5;
  grid-row: 1;
}

.alltop-cart-content .woocommerce-cart-form .product-remove a.remove {
  margin: 0;
  color: var(--alltop-heading) !important;
  font-size: 24px;
}

.alltop-cart-content .woocommerce-cart-form tr:has(> td.actions) {
  display: block;
}

.alltop-cart-content .woocommerce-cart-form td.actions {
  padding: 28px 0;
  border: 0;
  text-align: center;
}

.alltop-cart-content .woocommerce-cart-form .coupon {
  display: inline-flex;
  gap: 8px;
  float: none;
  vertical-align: middle;
}

.alltop-cart-content .woocommerce-cart-form .coupon input {
  min-height: 43px;
  width: min(230px, 100%);
  border: 1px solid var(--alltop-line);
}

.alltop-cart-content .woocommerce-cart-form button[name="update_cart"] {
  float: none;
  margin-left: 12px;
}

.alltop-cart-content .cart-collaterals {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--alltop-line);
}

.alltop-cart-content .cart-collaterals .cart_totals {
  float: none;
  width: min(100%, 600px);
  margin-top: 40px;
  text-align: center;
}

.alltop-cart-content .cart_totals h2 {
  font-family: var(--alltop-heading-font);
  font-size: 24px;
}

.alltop-cart-content .cart_totals table.shop_table {
  width: 100%;
  margin: 20px 0 28px;
  border: 0;
}

.alltop-cart-content .cart_totals table.shop_table th,
.alltop-cart-content .cart_totals table.shop_table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--alltop-line);
  text-align: left;
}

.alltop-cart-content .cart_totals table.shop_table td {
  text-align: right;
}

.alltop-cart-content .button,
.alltop-cart-content .checkout-button {
  border-radius: 0 !important;
}

.alltop-cart-content .checkout-button {
  background: var(--alltop-orange) !important;
  font-family: var(--alltop-heading-font);
}

.alltop-cart-content .wc-proceed-to-checkout .checkout-button {
  display: block;
  width: min(100%, 330px);
  margin: 0 auto;
  padding: 16px 22px;
}

.alltop-cart-content .cart-empty,
.alltop-cart-content .return-to-shop {
  text-align: center;
}

@media (max-width: 767px) {
  .alltop-cart-page {
    padding-block: 28px 60px;
  }

  .alltop-cart-intro {
    margin-bottom: 22px;
  }

  .alltop-cart-content .woocommerce-cart-form tr.cart_item {
    grid-template-columns: 100px minmax(0, 1fr) 24px;
    grid-template-rows: auto auto auto auto;
    column-gap: 14px;
    padding: 20px 0;
  }

  .alltop-cart-content .woocommerce-cart-form .product-thumbnail {
    grid-column: 1;
    grid-row: 1 / 5;
  }

  .alltop-cart-content .woocommerce-cart-form .product-name,
  .alltop-cart-content .woocommerce-cart-form .product-price,
  .alltop-cart-content .woocommerce-cart-form .product-quantity,
  .alltop-cart-content .woocommerce-cart-form .product-subtotal {
    grid-column: 2;
  }

  .alltop-cart-content .woocommerce-cart-form .product-name { grid-row: 1; font-size: 15px; }
  .alltop-cart-content .woocommerce-cart-form .product-price { grid-row: 2; }
  .alltop-cart-content .woocommerce-cart-form .product-subtotal { grid-row: 3; margin-top: 10px; font-size: 15px; }
  .alltop-cart-content .woocommerce-cart-form .product-quantity { grid-row: 4; margin-top: 10px; }
  .alltop-cart-content .woocommerce-cart-form .product-remove { grid-column: 3; grid-row: 1; }

  .alltop-cart-content .woocommerce-cart-form .coupon {
    display: flex;
    width: 100%;
  }

  .alltop-cart-content .woocommerce-cart-form .coupon input {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .alltop-cart-content .woocommerce-cart-form td.actions .coupon .button,
  .alltop-cart-content .woocommerce-cart-form td.actions > .button {
    float: none;
    width: auto;
  }

  .alltop-cart-content .woocommerce-cart-form button[name="update_cart"] {
    display: block;
    margin: 12px auto 0;
  }

  .alltop-cart-content .cart_totals table.shop_table td::before {
    display: none;
  }

  .alltop-cart-content .cart_totals tr.point-cost {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .alltop-cart-content .cart_totals tr.point-cost th {
    display: block;
  }

  .alltop-cart-content .cart_totals tr.point-cost td::before {
    display: none;
  }
}
