@use "../base" as *; @use "../abstracts" as *; .commerce-order-item-variation-cart-form-form, .gto-commerce-cart-add-to-cart-product { .form-actions { height: 100%; } display: flex; border-radius: 4px; background-color: $brand-blue; box-shadow: 0px 12px 24px -16px rgba(0, 0, 0, 0.32); color: #fff; text-align: center; font-size: 1rem; font-style: normal; font-weight: 500; line-height: 1.25rem; justify-content: flex-start; align-items: center; height: 56px; width: 100%; max-width: 316px; padding: 12px 16px; &:hover { .form-actions.form-actions-modal { .add_to_cart_product_button { &:hover { border: 1px solid $brand-blue; } } } } .field--name-quantity { display: flex; justify-content: center; align-items: center; max-width: 100px; &::after { content: ""; display: flex; width: 32px; height: 1px; transform: rotate(-90deg); align-items: flex-start; opacity: 0.32; background-color: $light-gray; } .form-item { margin: 0; display: flex; align-items: center; justify-content: center; label { display: none; } .form-number { width: 28px; text-align: center; font-size: 1rem; font-style: normal; font-weight: 500; line-height: 1.25rem; -moz-appearance: textfield; } .before, .after { display: flex; align-items: center; justify-content: center; &::before { content: ""; display: inline-block; background-image: url("../../assets/icons/minus.svg"); width: 16px; height: 16px; background-repeat: no-repeat; background-size: cover; background-position: center; margin: auto 0; cursor: pointer; } } .after { &::before { background-image: url("../../assets/icons/plus.svg"); } } } } .form-actions { margin: 0; gap: 8px; width: 100%; justify-content: center; align-items: center; .button--add-to-cart, .add_to_cart_button { padding: 0; width: 100%; display: flex; justify-content: center; align-items: center; font-size: 0.875rem; font-style: normal; font-weight: 500; line-height: 1.25rem; background-color: transparent; height: 100%; min-width: 83px; font-family: $font-primary; @include breakpoint(large) { font-size: 1rem; } } .add-to-cart-wrapper { display: flex; justify-content: center; align-items: center; height: 100%; input { cursor: pointer; } &::before { content: ""; display: inline-block; background-image: url("../../assets/icons/shopping-cart.svg"); width: 20px; height: 20px; flex: 0 0 20px; background-repeat: no-repeat; background-size: cover; background-position: center; margin: auto 0; } .ajax-progress { margin: 0; } } } div { span { display: none; } } } .gto-commerce-cart-add-to-cart-product.view-mode-teaser { .form-actions.form-actions-modal { display: flex; } } .gto-commerce-cart-add-to-cart-product.view-mode-full { &:hover { background-color: $brand-blue; color: #fff; .form-actions.form-actions-modal { .add_to_cart_product_button { &::before { filter: invert(0); } } } } } .gto-commerce-cart-add-to-cart-product.view-mode-comparison_teaser { &:hover { background-color: $brand-blue; color: #fff; .form-actions.form-actions-modal { .add_to_cart_product_button { &::before { filter: invert(0); } } } } .field--name-quantity { .form-item-quantity { input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; } input[type="number"] { -moz-appearance: textfield; } } } } .main-info__wrapper--cart { .gto-commerce-cart-add-to-cart-product.view-mode-full { display: grid !important; grid-template-columns: minmax(132px, 40%) minmax(0, 1fr); align-items: stretch; justify-content: stretch; gap: 0; width: 100%; max-width: none; height: 58px; padding: 0; overflow: hidden; border-radius: 6px; background-color: $brand-blue; @media (max-width: 480px) { grid-template-columns: minmax(116px, 38%) minmax(0, 1fr); } .field--name-quantity { display: block; width: 100%; max-width: none; height: 58px; border-right: 1px solid rgba(255, 255, 255, .34); background: transparent; &::after { display: none; } .form-item { display: grid; grid-template-columns: 44px minmax(34px, 1fr) 44px; width: 100%; height: 58px; margin: 0; } .before, .after { display: flex !important; align-items: center; justify-content: center; width: 44px; height: 58px; &::before { width: 16px; height: 16px; margin: 0; filter: brightness(0) invert(1); } } .form-text { width: 100% !important; min-width: 0; height: 58px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; text-align: center; font-size: 1.25rem; font-weight: 700; line-height: 58px; box-shadow: none; } } .form-actions { display: flex; align-items: center; justify-content: center; width: 100%; height: 58px; margin: 0; } .add-to-cart-wrapper { display: flex; align-items: center; justify-content: center; width: 100%; height: 58px; gap: 12px; background: transparent; &::before { margin: 0; filter: brightness(0) invert(1); } } .button--add-to-cart, .add_to_cart_button { width: auto; height: 58px; min-width: 0; padding: 0; background: transparent; color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.2; box-shadow: none; } div span.cart-quantity { display: flex; } } }