/*
Theme Name: Built2Buy Hypersonic G
Author: Built2Buy
Author URI:
Theme URI:
Tags: full-site-editing, editor-style, block-styles, block-patterns
Text Domain: b2b-hypersonic
Requires at least: 6.3
Requires PHP: 7.4
Tested up to: 6.3
Version: 2.1.3

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
:root {
  --b2b-hyps--global-primary: #109b90;
  --b2b-hyps--global-primary-dark: #117e75;
  --b2b-hyps--global-primary-shadow: #117e7533;
  --b2b-hyps--global-border: #e4e4e4;
  --b2b-hyps--global-light-hover: #f0f0f0;
  --b2b-hyps--global-light-stripe: #f7f7f7;
  --b2b-hyps--global-white: #ffffff;
  --b2b-hyps--global-text: #333333;
  --b2b-hyps--global-danger: #a93131;
  --b2b-hyps--global-danger-bg: #f6dddd;
}

html {
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

body > .wp-site-blocks {
  padding: 0;
}

:where(.wp-site-blocks) > * {
  margin-block-start: 0;
}

/* BEGIN - Navigation Styles */
.wp-block-navigation a {
  text-decoration: none;
}

.wp-block-navigation .wp-block-navigation__submenu-container {
  border-radius: 10px;
  padding: 5px;
}

.wp-block-navigation .wp-block-navigation__submenu-container li {
  border-radius: 5px;
}

.wp-block-navigation .wp-block-navigation__submenu-container li a {
  padding: 5px 12px;
}

.wp-block-navigation .wp-block-navigation__submenu-container li:hover {
  background: rgba(0, 0, 0, 0.075);
}
/* END - Navigation Styles */

/* BEGIN - My Account */
/* .woocommerce-account main .woocommerce {
    max-width: unset;
    display: flex;
    flex-direction: column;
}

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

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    width: 100%;
    gap: 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:first-child {
	padding: 1rem 0;
}

.woocommerce-account .woocommerce-MyAccount-content {
	float: unset;
	width: 100%
} */

/* General My Account Page Styling */
.woocommerce-account main .woocommerce {
  display: flex;
  flex-direction: column;
}

/* Make the navigation a top bar */
.woocommerce-account .woocommerce-MyAccount-navigation {
  display: flex;
  width: 100%;
  gap: 15px;
  border-radius: 8px;
}

/* Style the navigation links */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

.woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 5px 12px;
  background: var(--b2b-hyps--global-white);
  color: var(--b2b-hyps--global-text);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--b2b-hyps--global-border);
  transition: all 0.25s ease-in-out;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  text-decoration: none;
  background: var(--b2b-hyps--global-light-hover);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--b2b-hyps--global-primary);
  border-color: var(--b2b-hyps--global-primary);
  color: #ffffff;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:first-child {
  padding-top: 1rem;
}

/* Full-width content */
.woocommerce-account main .woocommerce {
  max-width: unset;
}

.woocommerce-account main table.woocommerce-MyAccount-orders {
  border-radius: 10px;
}

.woocommerce-account main .woocommerce-MyAccount-orders thead {
  background: var(--b2b-hyps--global-primary);
  color: var(--b2b-hyps--global-light-hover);
}

.woocommerce .woocommerce-MyAccount-content {
  width: 100%;
  max-width: unset;
  border-radius: 8px;
  box-sizing: border-box;
  transition: all 0.25s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .woocommerce-MyAccount-navigation {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .woocommerce-MyAccount-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .woocommerce-MyAccount-navigation li {
    flex: 1 1 calc(50% - 5px);
    text-align: center;
  }

  .woocommerce-MyAccount-navigation a {
    font-size: 14px;
    padding: 10px 12px;
  }
}

/* Logout button on tab */
.woocommerce
  .woocommerce-MyAccount-navigation
  .woocommerce-MyAccount-navigation-link--customer-logout {
  position: absolute;
  right: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
  background: var(--b2b-hyps--global-light-hover);
  color: var(--b2b-hyps--global-danger);
  border-color: var(--b2b-hyps--global-danger);
  float: right;
}

.woocommerce-account
  .woocommerce-MyAccount-navigation-link--customer-logout
  a:hover {
  background: var(--b2b-hyps--global-danger-bg) !important;
}

/* Orders table*/
.woocommerce-account .order-status {
  display: inline-block;
  border-radius: 0.5rem;
  line-height: 20px;
  padding: 4px 10px;
}

.order-status.status-completed {
  border: 1px solid #366dad;
  background: #e2eefb;
  color: #366dad;
}

.order-status.status-pending-approval {
  border: 1px solid #dbdbdb;
  background: #f3f3f3;
  color: #939393;
}

.order-status.status-processing {
  border: 1px solid #c6ca55;
  background: #faffb0 !important;
  color: #a09c15 !important;
}

.order-status.status-pending {
  border: 1px solid #e5b17c;
  background: #ffecd0 !important;
  color: #c0843f !important;
}

.order-status.status-cancelled {
  border: 1px solid #e77d7d;
  background: #ffe3e3 !important;
  color: #ce4040 !important;
}

.order-status.status-preseason {
  border: 1px solid #dca8f4;
  background: #fbe2ff !important;
  color: #b55ebd !important;
}

/* END - My Account */

/* BEGIN - Checkout Pay */
.woocommerce-page table.shop_table {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: none;
}

table tr:nth-child(even) {
  background-color: var(--b2b-hyps--global-light-stripe);
}

table thead {
  background: var(--b2b-hyps--global-primary);
  color: var(--b2b-hyps--global-white);
}
/* END - Checkout Pay */

/* BEGIN - Order form */
.wwof-woocommerce .ant-select:last-child {
  display: none;
}

.wwof-woocommerce .ant-btn-primary {
  background-color: var(--b2b-hyps--global-primary);
  border-color: var(--b2b-hyps--global-primary);
  color: var(--b2b-hyps--global-white);
}

.wwof-woocommerce .ant-btn.ant-btn-primary:hover:not(:disabled),
.wwof-woocommerce .ant-btn.ant-btn-primary:focus:not(:disabled) {
  background-color: var(--b2b-hyps--global-primary-dark);
  border-color: var(--b2b-hyps--global-primary-dark);
  color: var(--b2b-hyps--global-white);
}

.wwof-woocommerce .ant-btn:hover,
.wwof-woocommerce .ant-btn:focus {
  border-color: var(--b2b-hyps--global-primary);
  color: var(--b2b-hyps--global-primary);
}

.wwof-woocommerce .ant-input:hover {
  border-color: var(--b2b-hyps--global-primary);
}

.wwof-woocommerce
  .ant-select-focused:not(.ant-select-disabled).ant-select:not(
    .ant-select-customize-input
  )
  .ant-select-selector,
.wwof-woocommerce .ant-input:focus {
  border-color: var(--b2b-hyps--global-primary);
  box-shadow: 0 0 0 2px var(--b2b-hyps--global-primary-shadow);
}

.wwof-woocommerce
  .ant-select:not(.ant-select-disabled):hover
  .ant-select-selector {
  border-color: var(--b2b-hyps--global-primary);
}

.wwof-woocommerce .search-and-clear-buttons .ant-btn:last-child:hover {
  border-color: var(--b2b-hyps--global-danger);
  color: var(--b2b-hyps--global-danger);
}

.wwof-woocommerce .order-form .form-header {
  margin-bottom: 1rem;
  position: sticky;
  top: 30px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px 0;
  backdrop-filter: blur(4px);
}
/* END - Order form */

.wp-block-button.centered {
  display: flex;
  justify-content: center;
}

.ant-spin-dot .ant-spin-dot-item {
  background: var(--b2b-hyps--global-primary);
}

a.btn-primary {
  background: var(--b2b-hyps--global-primary);
  color: var(--b2b-hyps--global-white);
  padding: 10px 15px;
}

.wpcf7 input[type=submit] {
  background: #109b90;
  color: #fff;
  font-size: 16px;
  padding: 6px 12px;
  border: none;
  border-radius: 10px;
  margin-top: 16px;
  cursor: pointer;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #67aa61;
  border-radius: 10px;
  border-width: 1px;
  background: #e8fde6;
  color: #609b5a;
  font-weight: 600;
  width: fit-content;
}

.checkout input:read-only,
.checkout input:read-only:focus {
    border:none !important;
    padding: 5px 10px !important;
    box-shadow: none !important;
}

@media only screen and (max-width: 600px) {
    .order-form-wrapper.order-form .order-form-table-wrapper .order-form-responsive-table .ant-avatar img {
        max-width: 100px;
        height: 100px;
    }
}

.wp-block-add-to-cart-form .quantity .minus,
.wp-block-add-to-cart-form .quantity .plus {
    display: none;
}
.tml-action-activate main#wp--skip-link--target > div:first-of-type {
  display: none;
}

.tml-action-activate h2 {
  display: none;
}

.tml-action-activate input {
  padding: 10px;
  width: 50%;
  border-radius: 10px;
}

.tml-action-activate button {
  border-radius:10px;
  padding-top:var(--wp--preset--spacing--20);
  padding-bottom:var(--wp--preset--spacing--20);
  padding-left:var(--wp--preset--spacing--40);
  padding-right:var(--wp--preset--spacing--40);
  cursor: pointer;
}


.woocommerce-page .col2-set .col-2.woocommerce-Address {
    float: right;
    width: 48%;
    display: none;
}

.button#place_order {
   opacity: 1 !important;
}

/* Billing Checkout */
.woocommerce-billing-fields__field-wrapper .billing_first_name,
.woocommerce-billing-fields__field-wrapper .billing_last_name,
.woocommerce-billing-fields__field-wrapper .billing_city,
.woocommerce-billing-fields__field-wrapper .billing_state {
	display: inline-flex;
}

.woocommerce-billing-fields__field-wrapper {
	font-style: italic;
}

.woocommerce-billing-fields__field-wrapper p {
	margin: 0;
}

.woocommerce-billing-fields__field-wrapper .billing_last_name {
	margin-left: 7px;
}

.woocommerce-billing-fields__field-wrapper .billing_state::before {
    content: ", ";
    margin-right: 7px;
}

table.shipping__table th:first-child {
    padding-left: 0;
}
table.shipping__table {
    width: 100%;
}
.wc-block-components-totals-shipping {
    display: none;
}

header.wc-backbone-modal-header h1:before {
content: '' !important;
}

.require-login {
	display: block;
}

.logged-in .require-login {
	display: none;
}

/* Duplicate order button styles */
.duplicate-order {
    position: absolute;
    right: 0;

    a {
        font-weight: 600;
        padding: 10px 24px;
        border-radius: 10px;
        border: 1px solid var(--wp--preset--color--primary);
        color: var(--wp--preset--color--primary);
    }

    a:hover {
        background-color: var(--wp--preset--color--primary);
        color: white;
    }
}

.checkout__add-items-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;

  .wp-block-button__link {
    padding: 8px 16px;
    height: 100%;
    line-height: 1;
  }
}

.select2-container .select2-selection--single { 
  margin: 0px !important;
}