/* WooCommerce Custom Styles for Sportech Theme */
/* This CSS file contains custom styles specifically for WooCommerce pages within the Sportech theme. */
/* It ensures that the cart and checkout pages are styled consistently with the overall theme design. */
/* The styles here are tailored to enhance the user experience on the cart and checkout pages, making them visually appealing and easy to navigate. */

.woocommerce-cart .entry-content {
  width: 100%;
  max-width: 1540px;
  margin-left: auto;
  margin-right: auto;
  padding: 50px;
}

.wp-block-woocommerce-cart-order-summary-subtotal-block{
  display: block !important;
}

main[data-page="cart"] h1.wp-block-post-title {
    /*margin-left: 25px !important;*/
}

.sportech-cart-page {
  flex-direction: column;
  margin-bottom: clamp(3.75rem, calc(2.77rem + 4.92vw), 7.5rem);
  width: 95%;
    margin-left: 40px;
    margin-right: 40px;
}

.woocommerce-cart .wc-block-components-sidebar-layout,
.woocommerce-cart .wp-block-woocommerce-cart__main {
  display: flex;
  gap: 24px;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}

.wc-block-components-sidebar-layout{
  padding: 0 0  0 25px;
}

.woocommerce-cart .wc-block-components-main,
.woocommerce-cart .wp-block-woocommerce-cart__main .wc-block-cart {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 24px;
}

.woocommerce-cart .wc-block-components-sidebar,
.woocommerce-cart .wp-block-woocommerce-checkout-totals-block {
  flex: 0 0 480px;
  margin: 0 70px 0 0;
  padding: 0 30px 0 10px !important;
}

/* Responsive adjustments for smaller screens */
/* When the screen width is 1100px or less, stack the main content and sidebar vertically */
/* This ensures that the cart and checkout pages remain user-friendly on tablets and smaller devices */
/* The sidebar will take full width and the main content will also take full width, with no padding on the sides */
/* This media query helps maintain a clean and accessible layout for users on smaller screens */
/* The flex-direction is changed to column, and the widths of the main content and sidebar are set to 100% */
/* Padding is removed to ensure that the content spans the full width of the screen, providing a better user experience on mobile devices */
/* The use of flexbox allows for a flexible and responsive design that adapts to different screen sizes */
/* The media query targets the WooCommerce cart and checkout pages specifically, ensuring that the layout remains consistent with the overall design of the Sportech theme */
/* This approach enhances the usability of the cart and checkout pages, making it easier for users to navigate and complete their purchases on mobile devices */
/* Overall, these responsive adjustments contribute to a more seamless and enjoyable shopping experience for users accessing the Sportech theme on various devices */


.wp-block-woocommerce-checkout-order-summary-block {
  border:0;
}
.is-large.wc-block-cart .wc-block-cart-items td {
  border:0;
  padding: 0;
  padding-bottom: 24px;
}
.wc-block-cart-item__image a {
  width: 280px;
  height: 280px;
  display: block;
}
.wc-block-cart-item__image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
.wc-block-cart-item__wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 24px;
  align-items: flex-start;
}
.wc-block-cart-item__quantity {
  display: flex;
  gap: 8px;
  align-items: center;
}
.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity button.wc-block-cart-item__remove-link {
  border-radius: 5px;
  background: var(--white-contrast, #0E0D0F);
  color: var(--secondary-48, #0E0D0F);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 19.6px */
  letter-spacing: 2.1px;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}
.wc-block-cart__main .wc-block-cart-items{
  border:0;
}
.wc-block-components-quantity-selector {
  margin-bottom: 0!important;
  min-height: 48px!important;
}
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}
.wc-block-components-product-name {
  color: var(--text-primary, #0E0D0F);
  font-size: 1.5em !important;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  text-decoration: none;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-name {
  font-size: 1em !important;
}

.sportech-cart-discount-row,  .sportech-cart-shipping-row,  .sportech-cart-subtotal-row { /* , .wc-block-components-totals-shipping .wc-block-components-totals-item__label*/
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 0;
}

strong .woocommerce-Price-amount  {
  color: var(--text-primary, #0E0D0F);
  font-weight: 700;
}

.wc-block-components-totals-shipping .wc-block-components-totals-item .wc-block-formatted-money-amount {
  color: rgba(10, 9, 10, 1); /*var(--text-primary, #0E0D0F);*/
  font-weight: 400;
}

.wc-block-components-sidebar-layout > div {
  border-radius: 16px;
  border: 1px solid var(--divider-main, rgba(14, 13, 15, 0.08));
  background: var(--background-2, rgba(250, 250, 250, 0.02));
  backdrop-filter: blur(4px);
  padding: 24px;
}
.wc-block-cart-items thead {
  display: none;
}

/* Checkout Form */
.wc-block-components-form .wc-block-components-text-input.is-active label {
  /*display: none;*/
}
.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill, .wc-block-components-form .wc-block-components-text-input.is-active input[type=email], .wc-block-components-form .wc-block-components-text-input.is-active input[type=number], .wc-block-components-form .wc-block-components-text-input.is-active input[type=password], .wc-block-components-form .wc-block-components-text-input.is-active input[type=tel], .wc-block-components-form .wc-block-components-text-input.is-active input[type=text], .wc-block-components-form .wc-block-components-text-input.is-active input[type=url], .wc-block-components-text-input input:-webkit-autofill, .wc-block-components-text-input.is-active input[type=email], .wc-block-components-text-input.is-active input[type=number], .wc-block-components-text-input.is-active input[type=password], .wc-block-components-text-input.is-active input[type=tel], .wc-block-components-text-input.is-active input[type=text], .wc-block-components-text-input.is-active input[type=url] {
  background: transparent;
}
.wc-blocks-components-select .wc-blocks-components-select__label {
  display: none;
}
.wc-blocks-components-select .wc-blocks-components-select__container {
  background: transparent;
  height: 48px;
}
.wc-blocks-components-select .wc-blocks-components-select__select {
  padding-top: 0;
  border-radius: 5px;
  border: 1px solid var(--divider-input, rgba(14, 13, 15, 0.24));
  color: var(--text-secondary, rgba(14, 13, 15, 0.70));
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
.wc-blocks-components-select .wc-blocks-components-select__select option {
  color: #000;
}
.wc-block-components-form .wc-block-components-text-input input[type=email], .wc-block-components-form .wc-block-components-text-input input[type=number], .wc-block-components-form .wc-block-components-text-input input[type=password], .wc-block-components-form .wc-block-components-text-input input[type=tel], .wc-block-components-form .wc-block-components-text-input input[type=text], .wc-block-components-form .wc-block-components-text-input input[type=url], .wc-block-components-text-input input[type=email], .wc-block-components-text-input input[type=number], .wc-block-components-text-input input[type=password], .wc-block-components-text-input input[type=tel], .wc-block-components-text-input input[type=text], .wc-block-components-text-input input[type=url] {
  border-radius: 5px;
  border: 1px solid var(--divider-input, rgba(14, 13, 15, 0.24));
  background: transparent;
  color: var(--text-secondary, rgba(14, 13, 15, 0.70));
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  height: 48px;
}
.wc-block-components-form .wc-block-components-text-input label, .wc-block-components-text-input label {
  color: var(--text-secondary, rgba(14, 13, 15, 0.70));
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  top: 50%;
}


del.wc-block-components-product-price__regular {
  color: #999;
  text-decoration: line-through;
  text-decoration-color: #999;
  text-decoration-thickness: 1.5px;
  font-size: 1.1em;
  font-weight: 400;
  background: var(--background-80, rgba(14, 13, 15, 0.08));
  padding: 1px 5px;
  border-radius: 4px;
}

/* Precio principal grande */
.wc-block-components-product-price__value.is-discounted {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #0E0D0F);
}

.wc-block-components-order-summary-item__individual-prices .wc-block-components-product-price__value {
  font-size: 1.2em;
}

.wp-block-woocommerce-checkout-order-summary-cart-items-block .wc-block-components-order-summary-item__regular-individual-price {
  font-size: 0.8em;
}
  

/* Badge de descuento */
.wc-block-components-product-price {
    display: flex;
    align-items: center;
    gap: 12px !important;
    flex-direction: row-reverse;
}

/* Título "Acerca de este producto" */

.wc-block-components-product-details__name {
    display: none !important;
}
div .wc-block-components-product-metadata__description  {
    display: none !important;
}

.wc-block-components-product-details__value {
    border-top: 1px solid rgba(14, 13, 15, 0.12);
    padding-top: 4px;
    padding-bottom: 8px;
    font-size: 13px;
    color: var(--text-primary, #0E0D0F);
    line-height: 1.5;
    display: block !important;
    text-align: justify;
  }

.wc-block-cart-item__total-price-and-sale-badge-wrapper{
  margin-top: 12px;
}

.wc-block-components-product-price__value{
  font-size: 1.3em;
}

/* ── Subtotal · Descuento · Envío ──────────────────────────────────── */
.subtotal-container,
.discount-container,
.shipping-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(14, 13, 15, 0.08);
  color: var(--text-secondary, rgba(14, 13, 15, 0.70));
  font-size: 14px;
  font-weight: 500;
}


.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    color: crimson;
}

.wp-block-woocommerce-cart-order-summary-subtotal-block {
  display: none;
}

.wc-block-components-sidebar-layout .wc-block-components-main{
  max-width: 59%;
}

.woocommerce-cart .wc-block-components-sidebar-layout{
  gap: 8px;
}

.wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-shipping .wc-block-components-totals-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(14, 13, 15, 0.08);
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item__label {
  color: var(--text-color-cart, rgba(10, 9, 10, 1));
  font-size: inherit;
  font-weight: 400;
}

.wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item__value,
.wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item__value .wc-block-formatted-money-amount {
  font-weight: 400;
  color: var(--text-color-cart, rgba(10, 9, 10, 1));
}

.wc-block-components-totals-item{
  padding: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  gap: 0px !important; 
}

.wp-block-group h1 {
  font-size: 2em;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

[data-block-name="woocommerce/classic-shortcode"] {
    display: none !important;
}


.wc-block-components-product-details__value {
  line-clamp: 2;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow: hidden;
    max-height: 30px ;
}


.wc-block-checkout__shipping-method-option--selected{
  color: var(--text-color-cart, rgba(10, 9, 10, 1));
}

.wc-block-components-checkout-order-summary__content .wc-block-components-order-summary-item__quantity {
  color: black;
}

/*
* POner email, label value, uno al costado del otro. 
*/

.wc-block-components-text-input.wc-block-components-address-form__email {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
}

.wc-block-components-text-input.wc-block-components-address-form__email label {
    position: static;
    white-space: nowrap;
    font-size: 13px;
}

.wc-block-components-text-input.wc-block-components-address-form__email input {
    flex: 1;
    padding-top: 0;
    padding-bottom: 0;
    height: 15px;
    top: 0;
    position: static;
    font-size: 1em !important;
}

.wc-block-components-address-form__email {
  height: 10px;
}


.wc-block-components-text-input.wc-block-components-address-form__email label{
  font-size: 1em;
}

.wc-block-components-text-input input {
    color: #ffffff;
}

 .wc-block-checkout__form .wc-block-components-text-input.is-active input[type="text"]{
  color: var(--text-primary, white );
}

 .wc-block-checkout__form .wc-block-components-text-input.is-active input[type="tel"]{
  color: var(--text-primary, white );
}

.is-style-dots{
  margin-bottom: 2rem !important;
}

.checkout-sportech{
  margin-left: 30px !important;
  margin-right: 30px !important;
}

@media (max-width: 1100px) {
  .woocommerce-cart .wc-block-components-sidebar-layout,
  .woocommerce-cart .wp-block-woocommerce-cart__main {
    flex-direction: column;
  }

  .woocommerce-cart .wc-block-components-main,
  .woocommerce-cart .wc-block-components-sidebar {
    width: 100%;
    flex-basis: auto;
    padding-right: 0;
    padding-left: 0;
  }
}