/* -- The root styles must go in the element of the structure with the name "Single product"(Section). --*/

/* -- Border radius to the main photo of the gallery -- */
.product__gallery{
  .flex-viewport, .woocommerce-product-gallery__image{
    border-radius: var(--radius-m);
  }
}

.product__add-cart{
  /* Styles for when the product is sold individually */
  &:has(.input-text[type="hidden"]){
    .woocommerce-variation-add-to-cart, .cart{
      flex-direction: column;
    }
  }

  /*-- Styles applied to the container containing the quantity form and the button may vary depending on whether it has variations or not. --*/
  .variations_button, .cart:not(:has(.variations_button)){
    display:flex;
    gap: var(--space-xs);

    /*-- Button styles "Add to cart" --*/
    .button{
      margin-top:0;
      flex: 1;
    }

    /*-- Mobile Styles --*/
    @media(max-width: 766px){
      flex-direction:column;
    }
  }

  /*- Border radius styles in quantity input -*/
  .quantity{
    .action.minus{
      border-radius: var(--radius-s) 0 0  var(--radius-s);
    }

    .action.plus{
      border-radius: 0  var(--radius-s)  var(--radius-s) 0;
    }
  }
}