/*
Theme Name:   Bricks Child Theme
Theme URI:    https://bricksbuilder.io/
Description:  Use this child theme to extend Bricks.
Author:       Bricks
Author URI:   https://bricksbuilder.io/
Template:     bricks
Version:      1.1
Text Domain:  bricks
*/

/* ==========================================================================
   Global Variables & Root Settings
   ========================================================================== */
:root {
  /* Temporary color variables */
  --accent: #6fdad5;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.scrolling .header-giftone__main {
  border-bottom: none !important;
}

/* ==========================================================================
   Product Listings
   ========================================================================== */
.ng-product-list__container {
  .ng-product-list__query {
    .new-product-card__text,
    .showcase-card__overlay,
    .add-to-cart-redirect__showcase {
      transition: all 0.2s ease-in-out;
    }

    &:hover {
      .new-product-card__text,
      .showcase-card__overlay,
      .add-to-cart-redirect__showcase {
        opacity: 1;
      }
    }
  }
}

.new-product-card__img.brxe-image:hover::before {
  z-index: 1;
}

/* Product Grid Styling */
.product-grid--wrapper.brxe-block {
  border: 1px solid var(--base-ultra-light);
  padding: 1px;
}

.product-grid--footer.brxe-block {
  padding: 0.3em;
  border-top: 1px solid var(--secondary-ultra-light);
}

/* Quick Query Styling - Desktop Only */
@media (min-width: 991px) {
  .shop__query {
    .add-to-cart-redirect {
      opacity: 0 !important;
      visibility: hidden !important;
    }

    &:hover {
      .add-to-cart-redirect {
        opacity: 0.9 !important;
        visibility: visible !important;
      }
    }
  }
}

/* ==========================================================================
   Product Gallery
   ========================================================================== */
.pg-hero__filter {
  fieldset {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr));

    @media (max-width: 1440px) {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    @media (max-width: 991px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  label.jet-color-image-list__item {
    input:checked {
      + .jet-color-image-list__button {
        .jet-color-image-list__decorator > * {
          border: none;
        }
      }
    }

    .jet-color-image-list__button {
      flex-direction: column;
      justify-content: center;
      color: var(--primary);
      font-weight: 700;

      .jet-color-image-list__image {
        width: auto !important;
        height: auto !important;
        margin-right: 0 !important;
      }
    }
  }
}

/* WooCommerce Gallery Hot Fix */
.woocommerce-product-gallery {
  .flex-viewport {
    height: auto !important;
  }
}

.brx-product-gallery-thumbnail-slider {
  opacity: 1 !important;
}

/* Lightbox Arrow Enlarge */
.pswp {
  .pswp__bg {
    opacity: 0.5 !important;
  }

  .pswp__button {
    &.pswp__button--arrow--left,
    &.pswp__button--arrow--right {
      transform: scale(2.5);
      width: 0;
      margin-left: 20%;
      margin-right: 20%;

      &:before {
        background: none;
        color: var(--white);
      }
    }

    &.pswp__button--arrow--left:before {
      content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M512 256A256 256 0 1 0 0 256a256 256 0 1 0 512 0zM217.4 376.9L117.5 269.8c-3.5-3.8-5.5-8.7-5.5-13.8s2-10.1 5.5-13.8l99.9-107.1c4.2-4.5 10.1-7.1 16.3-7.1c12.3 0 22.3 10 22.3 22.3l0 57.7 96 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32l-96 0 0 57.7c0 12.3-10 22.3-22.3 22.3c-6.2 0-12.1-2.6-16.3-7.1z'/%3E%3C/svg%3E");
    }

    &.pswp__button--arrow--right:before {
      content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 135.1l99.9 107.1c3.5 3.8 5.5 8.7 5.5 13.8s-2 10.1-5.5 13.8L294.6 376.9c-4.2 4.5-10.1 7.1-16.3 7.1C266 384 256 374 256 361.7l0-57.7-96 0c-17.7 0-32-14.3-32-32l0-32c0-17.7 14.3-32 32-32l96 0 0-57.7c0-12.3 10-22.3 22.3-22.3c6.2 0 12.1 2.6 16.3 7.1z'/%3E%3C/svg%3E");
    }
  }
}

/* ==========================================================================
   WooCommerce Styling
   ========================================================================== */
@mixin desktop {
  @media (min-width: 1440px) {
    @content;
  }
}

.woocommerce-notices-wrapper {
  width: 100% !important;
  margin: 0 !important;

  .woocommerce-message {
    gap: var(--space-xs);
    flex-direction: column;
    background-color: var(--primary);
    color: var(--white);
    font-weight: bold;
    font-size: var(--text-l);
    padding: var(--space-s) var(--space-m);

    @include desktop {
      padding: var(--space-s) calc((100vw - 1440px) / 2);
    }

    a {
      font-size: calc(var(--text-m) * 1);
      background-color: var(--white);
      color: var(--black);
      min-width: calc(var(--btn-width) / 2);
    }
  }
}

/* Pagination Styling */
.woocommerce-pagination {
  ul > li {
    &:hover a {
      font-weight: normal !important;
      color: var(--primary);
    }

    span {
      font-weight: normal !important;
    }

    .current {
      width: 32px;
      height: 32px;
      background-color: var(--primary);
      color: var(--white);
      padding: 5px;
      border-radius: 50%;
      justify-content: center;
      font-weight: bold;
      line-height: 0.8;
    }

    a {
      color: var(--base);
      line-height: 0.8;
      transition: color 0.2s ease-in-out;
    }
  }
}

/* Breadcrumb Styling */
.brxe-woocommerce-breadcrumbs {
  span.navigation {
    color: var(--action);
    font-weight: 700;

    span.separator {
      color: var(--base);
    }

    a {
      color: var(--base);
      font-weight: 700;

      &:hover {
        color: var(--action);
      }

      &:first-child {
        &:before {
          content: "\e3af";
          font-family: "Font Awesome 6 Solid";
          margin-right: 0.5rem;
        }
      }
    }
  }
}

/* Thank You Page Styling - Modern Minimalist Design */
.brxe-woocommerce-checkout-thankyou {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;

  section.woocommerce-order-details {
    margin-bottom: 4rem;
  }

  /* Modern Minimalist Enquiry Overview */
  ul.woocommerce-thankyou-order-details {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    padding: 2rem;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 4rem;

    li:last-child {
      display: none;
    }

    li:nth-child(odd) {
      border-right-style: none;
    }

    li:nth-child(3) {
      border-bottom-style: none;
    }

    li {
      padding: 1.5rem;
      border: none;
      border-bottom: none;
      display: flex;
      flex-direction: column;
      text-align: left;
      background: white;
      border-radius: 8px;
      position: relative;
      transition: all 0.3s ease;
      border: 1px solid #f0f0f0;

      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border-color: var(--primary);
      }

      /* Email item spans 2 columns */
      &.woocommerce-order-overview__email.email {
        grid-column: span 2;
      }

      /* Label styling */
      &:not(:has(strong)) {
        color: #666;
        font-size: 0.875rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.75rem;
      }
    }

    li strong {
      font-size: 1.5rem;
      font-weight: 600;
      color: #222;
      margin: 0;
    }
  }

  /* Modern success message */
  .woocommerce-notice.woocommerce-notice--success {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0c4a6e;
    padding: 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 3rem;
    text-align: center;
    border-radius: 12px;
    border: none;
    position: relative;

    &::before {
      content: "✓";
      display: inline-block;
      width: 36px;
      height: 36px;
      background: #0ea5e9;
      border-radius: 50%;
      margin-right: 1rem;
      line-height: 36px;
      text-align: center;
      color: white;
      font-weight: bold;
    }
  }

  /* Modern section titles */
  .woocommerce-order-details__title {
    color: #1f2937;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    text-transform: none;
    letter-spacing: -0.025em;

    &::after {
      content: "";
      display: block;
      width: 80px;
      height: 3px;
      background: var(--primary);
      margin: 1rem auto 0;
      border-radius: 2px;
    }
  }

  /* Modern customer details */
  .woocommerce-customer-details {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    margin-top: 3rem;
    border: 1px solid #e2e8f0;

    .woocommerce-column__title {
      color: #1f2937;
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 2rem;
      text-align: center;
      position: relative;
      text-transform: none;

      &::after {
        content: "";
        display: block;
        width: 60px;
        height: 3px;
        background: var(--primary);
        margin: 1rem auto 0;
        border-radius: 2px;
      }
    }

    address {
      line-height: 1.6;
      color: #374151;
      font-size: 1rem;
      width: 100%;

      p {
        margin: 1rem 0;
        padding: 1rem 1.5rem;
        background: white;
        border-radius: 8px;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

        &:last-child {
          border-bottom: none;
        }

        strong {
          color: #1f2937;
          font-weight: 600;
        }
      }
    }
  }

  table {
    strong.vip-clients-term {
      display: block;
      border: 2px solid;
      text-align: center;
      padding: 0.8rem;
    }

    .product-thumbnail {
      text-align: center;
    }

    .product-title {
      font-size: var(--text-l) !important;
    }
  }

  /* Enquiry System Specific Styles */
  .woocommerce-order-overview__total.total,
  .woocommerce-order-details tfoot,
  .woocommerce-table__product-total,
  .woocommerce-Price-amount {
    display: none !important;
  }

  /* Hide pricing-related columns specifically */
  .woocommerce-table__product-total,
  .woocommerce-table th.product-total,
  .woocommerce-table td.product-total {
    display: none !important;
  }

  /* Hide the last column (total) in order details table */
  .woocommerce-table--order-details th:nth-child(3),
  .woocommerce-table--order-details td:nth-child(3) {
    display: none !important;
  }

  /* Force table to use available space properly */
  .woocommerce-table--order-details {
    table-layout: fixed;
    width: 100%;
  }

  /* Adjust table layout for enquiry display - 40:60 ratio */
  .woocommerce-table--order-details th:nth-child(1),
  .woocommerce-table--order-details td:nth-child(1) {
    width: 40% !important; /* 40% for image column */
    text-align: center;
  }

  .woocommerce-table--order-details th:nth-child(2),
  .woocommerce-table--order-details td:nth-child(2) {
    width: 60% !important; /* 60% for product details column */
  }

  /* Mobile responsive for table */
  @media (max-width: 768px) {
    .woocommerce-table--order-details {
      table-layout: auto;
      display: block;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .woocommerce-table--order-details th:nth-child(1),
    .woocommerce-table--order-details td:nth-child(1) {
      width: 80px !important;
      min-width: 80px;
      padding: 0.5rem;
    }

    .woocommerce-table--order-details th:nth-child(2),
    .woocommerce-table--order-details td:nth-child(2) {
      width: 200px !important;
      min-width: 200px;
    }

    .woocommerce-table--order-details td img {
      width: 60px !important;
      max-width: 60px;
      height: auto;
    }

    .woocommerce-table--order-details tbody td {
      padding: 0.75rem 0.5rem;
      font-size: 0.875rem;
    }

    .woocommerce-table--order-details thead th {
      padding: 0.75rem 0.5rem;
      font-size: 0.75rem;
    }

    .woocommerce-table--order-details thead {
      display: none;
    }

    /* Stack product details vertically on mobile */
    .woocommerce-table--order-details td:nth-child(2) {
      font-size: 0.875rem;
      line-height: 1.4;
    }

    .woocommerce-table--order-details .woocommerce-table__product-name {
      font-weight: 600;
      margin-bottom: 0.25rem;
    }
  }

  /* Mobile responsive for enquiry overview */
  @media (max-width: 768px) {
    ul.woocommerce-thankyou-order-details {
      grid-template-columns: 1fr !important;
      gap: 1rem !important;
      padding: 1rem;
    }

    li.woocommerce-order-overview__email.email {
      grid-column: span 1;
    }
  }

  /* Modern Minimalist table styling */
  .woocommerce-table--order-details {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    margin: 2rem 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .woocommerce-table--order-details thead {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #475569;
  }

  .woocommerce-table--order-details thead th {
    padding: 1.25rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border: none;
    text-align: center;
    color: #475569;
  }

  .woocommerce-table--order-details tbody {
    background: white;
  }

  .woocommerce-table--order-details tbody td {
    padding: 2rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
  }

  .woocommerce-table--order-details tbody tr:last-child td {
    border-bottom: none;
  }

  .woocommerce-table--order-details tbody tr:hover {
    background-color: #fafbfc;
    transition: background-color 0.2s ease;
  }

  /* Modern product image */
  .woocommerce-table__product-thumbnail img {
    border-radius: 8px;
    box-shadow: none;
    transition: opacity 0.2s ease;
    border: 1px solid #f0f0f0;
    width: 200px;
    height: auto;
    max-width: 200px;
  }

  .woocommerce-table__product-thumbnail img:hover {
    transform: none;
    opacity: 0.8;
    box-shadow: none;
  }

  /* Modern product details */
  .woocommerce-table__product-details {
    text-align: left;

    .product-title {
      font-size: 1.125rem !important;
      font-weight: 600;
      color: #1f2937;
      margin-bottom: 0.75rem;
      line-height: 1.4;
    }

    .product-title a {
      color: inherit;
      text-decoration: none;
      transition: color 0.2s ease;
      display: inline-block;
    }

    .product-title a:hover {
      color: var(--primary-dark);
    }

    .product-sku {
      display: inline-flex;
      align-items: center;
      background: #f3f4f6;
      color: #6b7280;
      padding: 0.375rem 0.75rem;
      border-radius: 6px;
      font-size: 0.813rem;
      font-weight: 500;
      margin-bottom: 0.75rem;
      font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
        "Courier New", monospace;
    }

    .product-quantity {
      display: inline-flex;
      align-items: center;
      font-weight: 500;
      color: #4b5563;
      background: #f9fafb;
      padding: 0.375rem 0.75rem;
      border-radius: 6px;
      font-size: 0.875rem;
    }

    /* Add spacing between elements */
    br {
      display: block;
      content: "";
      margin-bottom: 0.5rem;
    }
  }
}

.enquiry-detail {
  margin-top: 3em;

  h3 {
    margin-bottom: 1em;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
/* Language Menu */
.header-meta__lang-switch.brxe-nav-menu
  .bricks-nav-menu
  > li.menu-item-has-children
  > .brx-submenu-toggle
  button[aria-expanded] {
  background-color: var(--action);
  border-radius: 50%;
}

:where(.brxe-nav-menu) .bricks-nav-menu .sub-menu {
  min-width: 100% !important;
}

.header__main-menu {
  :where(.brx-has-megamenu) {
    button {
      display: none !important;
    }
  }

  .no-active.current-menu-item > a {
    background-color: var(--accent) !important;
    color: var(--base) !important;

    &:hover {
      background-color: var(--warning) !important;
      color: var(--white) !important;
    }
  }
}

/* EN Language Specific Styling */
html[lang="en-US"] {
  /* Global Side Menu */
  .side-menu {
    font-size: var(--text-s);
  }
}

/* Side Menu */
.side-menu {
  .jet-mega-menu-list {
    > li:not(:last-child) {
      border-bottom: 1px solid var(--sg-border-color);

      /* Main Menu Label Line Break */
      a:not(.jet-mega-menu-item__link--sub-level) .jet-mega-menu-item__label {
        white-space: normal;
      }
    }

    /* Added 2025-08-19 */
    > li .jet-mega-menu-item__inner {
      padding-block: calc(var(--space-xs) * 0.6) !important;
    }

    div.jet-mega-menu-sub-menu {
      background-color: var(--white-trans-90);
      border: 1px solid var(--black);
      margin-top: -1px;
      margin-left: 1em;
      padding: 0 var(--space-xs);

      .jet-mega-menu-sub-menu__list {
        background: var(--transparent);
      }

      li.side-menu__sub-title {
        border-bottom: 1px solid var(--sg-border-color);
        margin-bottom: 0.5em;

        .jet-mega-menu-item__label {
          color: var(--action) !important;
          font-weight: 700;
        }
      }

      li:not(.side-menu__sub-title) {
        line-height: 1.3;
        font-size: 90%;
      }

      li:last-child {
        margin-bottom: 0.5em;
      }

      .jet-mega-menu-item__desc {
        display: none;
      }
    }
  }
}

/* ==========================================================================
   Category Navigation
   ========================================================================== */
/* Sibling Terms */
ul.sibling-terms {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: calc(var(--text-m) * 1.2);

  @media (max-width: 991px) {
    font-size: var(--text-m);
  }

  li {
    padding: 0 var(--space-xs);
    border-right: 1px solid var(--black);

    &:last-child {
      border-right: 0;
    }

    a {
      color: var(--base-dark);

      &:is(.active-term) {
        color: var(--action);
        font-weight: 700;
      }

      &:hover {
        color: var(--action);
      }
    }
  }
}

/* ==========================================================================
   Forms & User Interface
   ========================================================================== */
/* Jump to Page Form */
form#jump-to-page-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  label {
    margin: 0;
  }

  input[type="number"] {
    padding-block: var(--btn-padding-block);
    padding-inline: var(--btn-padding-inline);
    width: max-content;
    text-align: center;

    &::-webkit-inner-spin-button,
    &::-webkit-outer-spin-button {
      appearance: none;
    }
  }
}

/* ==========================================================================
   Notices & Alerts
   ========================================================================== */
/* Add to Cart Success Notice */
section.atc-success-notice {
  background-color: var(--black-trans-90);
  color: var(--white);

  .brxe-container {
    align-items: stretch;
    width: var(--width-xl);
    gap: var(--grid-gap);

    .success-message {
      font-size: var(--text-xxl);
      color: var(--warning);
      margin-top: var(--space-m);
    }

    div.wc-block-components-notice-banner__content {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      font-size: 0;

      .product-info {
        font-size: var(--text-l) !important;
      }

      a {
        background-color: var(--accent);
        color: var(--base);
        font-size: var(--text-l) !important;
        font-weight: 400;
        border: none;
        width: 100%;
        text-align: center;
        margin-left: 0;
        padding: var(--btn-pad-y) var(--btn-pad-x);
      }

      .suggest-btn {
        padding: var(--space-l) 0;
        gap: calc(var(--grid-gap) / 2);

        a {
          color: var(--white);

          &.notice-catalog {
            background-color: var(--action);
          }

          &.notice-lastest {
            background-color: var(--warning);
          }

          &.notice-hot {
            background-color: var(--primary);
          }
        }
      }
    }
  }
}

/* ============================= */
/* WooCommerce 結帳頁面樣式優化 */
/* ============================= */

/* 隱藏通知區塊 */
body.woocommerce-checkout .woocommerce-notices-wrapper {
  display: none;
}

/* 隱藏結帳前區塊與訂單表尾 */
.woocommerce .before-checkout,
.woocommerce .woocommerce-checkout-review-order tfoot {
  display: none;
}

/* 表單欄位排版 */
.woocommerce .form-row {
  display: flex;
  flex-wrap: wrap;

  label {
    width: var(--btn-min-width);
    display: flex;
    align-items: center;
    margin: 0;
  }

  .woocommerce-input-wrapper {
    display: flex;
    flex: 1;
    margin-block-start: var(--flow-spacing, initial);

    input,
    textarea {
      outline: none;
      padding-block: var(--btn-padding-block);
      padding-inline: calc(var(--btn-padding-inline) * 0.6);
    }
  }
}

/* 客戶資料區塊 */
.checkout-customer-details {
  .brxe-heading {
    small {
      font-weight: 400;
    }
  }

  .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: var(--grid-gap);

    p {
      align-self: center;

      abbr.required {
        text-decoration: none;
        color: var(--action);
      }

      &.form-row-first {
        float: none;
        width: 100%;
        margin-bottom: 1.2em;
      }
    }
  }

  > div {
    width: 100% !important;

    .col-2 {
      margin-top: -3.5em;
    }

    &:not(.woocommerce-checkout-review-order) {
      label {
        font-weight: 400;
      }

      .woocommerce-additional-fields {
        h3 {
          display: none;
        }

        label {
          height: 42px;

          span.optional {
            display: none;
          }
        }
      }
    }
  }
}

/* 商品移除按鈕樣式 */
.product-remove a.remove {
  display: flex;
  width: 2rem;
  height: 2rem;
  font-size: var(--text-xl);
  background-color: var(--action);
  border-radius: 50%;
  color: var(--white);
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 900;

  &:hover {
    background-color: var(--action-hover);
  }
}

/* 訂單表格樣式 */
table.woocommerce-checkout-review-order-table {
  thead tr {
    background-color: var(--secondary);
    color: var(--text-dark);
  }

  tbody tr {
    background-color: var(--neutral-ultra-light);
  }
}

/* 數量更新提示 */
.quantity-update-notice {
  background-color: var(--success);
  color: var(--white);
  padding: var(--space-xs) var(--space-m);
  text-align: center;
  margin-top: var(--space-xs);
  position: absolute;
  border-radius: 10px;
}

/* 數量輸入框樣式 */
.woocommerce-checkout-review-order input.quantity {
  width: 6em;
  height: 2.5em;
  padding: 5px;
  border: 1px solid var(--shade-dark-trans-50);
  border-radius: 3px;
  font-size: var(--text-m);
  text-align: center;

  &:hover,
  &:focus {
    border-color: var(--info);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
  }

  &::-webkit-inner-spin-button,
  &::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
  }

  &[type="number"] {
    -moz-appearance: textfield;
  }
}

/* 表格欄寬設定 */
.woocommerce-checkout-review-order-table {
  .product-thumbnail {
    width: 20%;
  }

  .product-title {
    width: 40%;
  }

  .product-remove {
    width: auto;
  }
}

/* 結帳按鈕樣式 */
.woocommerce-checkout-payment {
  padding: 0;
  button {
    color: var(--text-dark) !important;
    background-color: var(--tertiary) !important;
    font-weight: 700;
    padding: var(--space-s);
    font-size: var(--text-l);

    &:hover {
      background-color: var(--tertiary-hover) !important;
    }
  }
}

/* ============================= */
/* 響應式設定（手機版） */
/* ============================= */
@media (max-width: 991px) {
  .woocommerce .form-row {
    flex-direction: column;
  }

  .woocommerce .form-row .woocommerce-input-wrapper {
    margin-block-start: 0;
  }

  .woocommerce
    .checkout-customer-details
    .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  table.woocommerce-checkout-review-order-table {
    thead th.product-sku,
    thead th.product-quantity,
    tbody td.product-sku,
    tbody td.product-quantity {
      display: none;
    }

    .product-thumbnail {
      width: 30%;
    }

    .product-title {
      width: 50%;
    }

    .product-remove {
      width: 20%;
    }
  }
}
