.commerce-preview-page {
  background: #f3f6f7;
  color: #14232b;
}

.commerce-shell {
  min-height: 68vh;
  padding-top: 3rem;
}

.commerce-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.commerce-heading h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.commerce-content {
  max-width: 1180px;
}

.commerce-content .woocommerce {
  width: 100%;
}

.commerce-content a {
  color: #006f88;
}

.commerce-content .button,
.commerce-content button,
.commerce-content input[type="submit"] {
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid #087f9b;
  border-radius: 6px;
  background: #087f9b;
  color: #fff;
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.commerce-content .button:hover,
.commerce-content button:hover,
.commerce-content input[type="submit"]:hover {
  border-color: #065f74;
  background: #065f74;
  color: #fff;
}

.commerce-content input,
.commerce-content select,
.commerce-content textarea {
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #b8c6cd;
  border-radius: 4px;
  background: #fff;
}

.commerce-content input[type="checkbox"],
.commerce-content input[type="radio"] {
  min-height: 0;
  padding: 0;
}

.commerce-content label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.commerce-content .woocommerce-info,
.commerce-content .woocommerce-message,
.commerce-content .woocommerce-error {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid #b7d4dc;
  border-left: 4px solid #087f9b;
  border-radius: 6px;
  background: #fff;
  color: #24404d;
  list-style: none;
}

.woocommerce-shop .commerce-content .products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-shop .commerce-content .product {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid #cbd7dc;
  border-radius: 8px;
  background: #fff;
}

.woocommerce-shop .commerce-content .product img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.woocommerce-shop .woocommerce-loop-product__title {
  margin: 1rem 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.woocommerce-shop .woocommerce-result-count {
  margin: 0 0 1rem;
  color: #536b78;
}

.woocommerce-shop .woocommerce-ordering {
  margin: 0 0 1.25rem;
}

.woocommerce-shop .woocommerce-no-products-found {
  max-width: 760px;
}

.woocommerce-account.logged-in .commerce-content .woocommerce {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.woocommerce-account.logged-in .commerce-content .woocommerce::before,
.woocommerce-account.logged-in .commerce-content .woocommerce::after {
  display: none;
  content: none;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
.woocommerce-account.logged-in .woocommerce-MyAccount-content {
  float: none;
  width: auto;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
  grid-column: 1;
  grid-row: 1;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content {
  grid-column: 2;
  grid-row: 1;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.72rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #24404d;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  border-color: #b7d4dc;
  background: #e9f3f5;
  color: #065f74;
}

.woocommerce-account .woocommerce-MyAccount-content {
  min-width: 0;
}

.woocommerce-account .woocommerce-form-login {
  max-width: 540px;
  padding: 1.4rem;
  border: 1px solid #cbd7dc;
  border-radius: 8px;
  background: #fff;
}

.woocommerce-account .woocommerce-form-row input:not([type="checkbox"]),
.woocommerce-account .woocommerce-form-row textarea {
  width: 100%;
}

.woocommerce-account .woocommerce-form-login__rememberme {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  max-width: 760px;
  margin-inline: auto;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading {
  margin-top: 1.5rem;
  font-size: 2rem;
  line-height: 1.1;
}

.woocommerce-checkout .wc-block-checkout,
.woocommerce-cart .wc-block-cart {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.product-page .product-price .amount {
  color: inherit;
}

.product-page .product-actions .button.disabled,
.product-page .purchase-button.disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.product-page .woocommerce-product-database-copy {
  max-width: 760px;
  color: #536b78;
}

.product-page .woocommerce-product-database-copy p:last-child {
  margin-bottom: 0;
}

.product-page .model-note {
  margin-top: 0.7rem;
  color: #536b78;
  font-size: 0.92rem;
}

.product-page .product-specs dd {
  overflow-wrap: anywhere;
}

.product-page .driver-evidence code {
  overflow-wrap: anywhere;
}

.product-page .gallery-thumbs.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (prefers-color-scheme: dark) {
  .commerce-preview-page {
    background: #10191f;
    color: #edf5f7;
  }

  .commerce-content input,
  .commerce-content select,
  .commerce-content textarea {
    border-color: #42545e;
    background: #17242b;
    color: #edf5f7;
  }
}

@media (max-width: 640px) {
  .commerce-shell {
    padding-top: 2rem;
  }

  .commerce-heading h1 {
    font-size: 2.35rem;
  }

  .woocommerce-shop .commerce-content .products,
  .woocommerce-account.logged-in .commerce-content .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-account.logged-in .commerce-content .woocommerce {
    gap: 1.25rem;
  }

  .woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
  .woocommerce-account.logged-in .woocommerce-MyAccount-content {
    grid-column: 1;
    grid-row: auto;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce-account .woocommerce-MyAccount-navigation a {
    height: 100%;
  }

  .woocommerce-account .woocommerce-form-login {
    padding: 1rem;
  }

  .woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading {
    font-size: 1.7rem;
  }
}
