/* 
Theme Name: script.ch - Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: script.ch is a child theme of Hello Elementor, created by Elementor team
Author: webgearing AG
Author URI: https://www.webgearing.com
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 5px;
}

p, h1, h2, h3, h4, h5, h6 {
    hyphens: auto;
    word-wrap: break-word;
}

/* Header Sticky */

body .header-bar {
	transition:all ease .5s;
	width:100vw !important;
	background:#fff;
}

body.sticky .header-bar {
	transition:all ease .3s;
	background:#fff;
}

body.sticky .elementor-location-header:has(.header-bar) {
	min-height: 170px;
}

body.sticky .header-bar > .e-con-inner {
	padding-top:15px !important;
	padding-bottom:15px !important;
}

body .header-bar .logo {
	/*height:150px;*/
	width:auto;
	margin:0;
	transition:all ease .3s;
}

body.sticky .header-bar .logo {
	height:30px;
	margin:0;
	transition:all ease .3s;
}

body .header-bar .logo img {
	opacity:1;
	height:150px;
	width:auto;
	transition:all ease .3s;
}

body.sticky .header-bar .logo img {
	height:30px;
	transition:all ease .3s;
}

/* Header */

#header .searchform .selectric .label {
	font-size: 13px;
	margin-right: -10px;
}


li.product-category.product:has(a[aria-label*='Waser']) {
    display: none !important;
}

.toggle-menu-wrap {
	width:350px !important;
}

@media (min-width: 768px) {
    .header-third-col {
        min-width: 472px;
    }

}

/* WooCommerce */

.woocommerce .quantity .qty {
    width: auto;
}

ul.products li.product-category .thumb-info h3 {
	max-width:60% !important;
	hyphens: auto !important;
}








	/* product archive */

li.product {
	border-left:1px solid var(--e-global-color-997fb71);
	padding-left:15px !important;
}

li.product img {
	padding:40px !important;
}

/* Aktion */

.aktion {
	border-left:1px solid var(--e-global-color-997fb71) !important;
}

.aktion .bild-container {
	max-width:200px !important;
	max-height:200px !important;
}


/* Footer */

.footer p, .footer p a, .footer h1, .footer h2, .footer h3, .footer h4, .footer h5 {
	color:#fff !important;
}

.cookie-notice-container span, .cn-buttons-container a {
	font-family: var( --e-global-typography-text-font-family ), Sans-serif !important;
}

/* Versand */

.woocommerce-shipping-methods:has(> li > #shipping_method_0_free_shipping1) > li:not(:has(#shipping_method_0_free_shipping1)) {
    display: none;
}

/*--- YITH WISHLIST ---*/

/* Runde Icon‑Button mit feinlinie */
.yith-wcwl-add-button a.add_to_wishlist {
  display: inline-block;
  position: relative;
  font-size: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background-color: #fff;
  transition: border-color 0.3s, color 0.3s;
}

.yith-wcwl-add-button a.add_to_wishlist:before {
  content: "\2661";
  font-size: 16px;
  color: #666;
  line-height: 36px;
  text-align: center;
  display: block;
}

.yith-wcwl-add-button a.add_to_wishlist:hover:before {
  color: #007bff;
}

.yith-wcwl-add-button a.add_to_wishlist.added:before {
  content: "\2665";
  color: #007bff;
}

.yith-wcwl-add-button a.add_to_wishlist.loading {
  pointer-events: none;
  opacity: 0.7;
}

.yith-wcwl-add-button a.add_to_wishlist.loading:before {
  content: "";
  box-sizing: border-box;
  border: 2px solid #ddd;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 8px;
  left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

table.wishlist_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

table.wishlist_table th,
table.wishlist_table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  color: #333;
}

table.wishlist_table tr:hover {
  background: #f8f9fa;
}

table.wishlist_table a.button {
  background-color: #007bff;
  color: #fff !important;
  border-radius: 4px;
  padding: 6px 14px;
  text-transform: uppercase;
  font-size: 13px;
  transition: background 0.3s;
}

table.wishlist_table a.button:hover {
  background-color: #0056b3;
}

.woocommerce-form-coupon-toggle {
    display: none;
}

.wishlist-title-container {
    display: none;
}

.wishlist_table:has(.wishlist-empty) thead {
    display: none;
}

/* Waser */

a[href="https://preview.script.ch/kategorie/waser/"][rel="tag"],
a[href="https://www.script.ch/kategorie/waser/"][rel="tag"] {
	display: none;
}

/* Warenkorb */

.elementor-widget-woocommerce-cart .woocommerce {
    font-family: 'Nunito', sans-serif;
}

p.return-to-shop a.wc-backward {
	background:var(--e-global-color-primary) !important;
	color:var(--e-global-color-a6a48cf) !important;
	transition:all ease .5s;
}

@media (max-width: 991px) {
    :root {
        --update-cart-button-alignment: center;
    }
}

p.return-to-shop a.wc-backward:hover {
	background:var(--e-global-color-93ba2db) !important;
	color:var(--e-global-color-a6a48cf) !important;
	transition:all ease .5s;
}

.shop_table.cart th {
    font-weight: bold !important;
}

.shop_table.cart .qty {
    text-align: center !important;
    background-color: #fff !important;
    font-weight: bold !important;
}

.woocommerce-cart-form__cart-item #shipping_method > li > label:has(.amount) {
    width: 100% !important;
    display: inline-block !important;
}

.woocommerce-cart-form__cart-item #shipping_method > li > label > .amount {
    float: right;
    padding-right: 12px;
}

.select2-calc_shipping_country-container {
    height: 60px;
}

.cart_totals .woocommerce-shipping-methods .woocommerce-Price-amount {
    float: right;
    padding-right: 12px;
}

.cart_totals .cart-subtotal bdi,
.cart_totals .order-total bdi {
    font-weight: bold;
}

.woocommerce-cart-form__cart-item.cart_item .product-subtotal,
.woocommerce-cart-form__cart-item.cart_item .product-price {
    text-align: right;
}

    /* Produktkategorien Liste */

.woocommerce-hauptkategorien {
    list-style: none;   /* keine Bullet Points */
    padding: 0;
    margin: 0;
}

.woocommerce-hauptkategorien li {
	margin-bottom:15px;
}

.woocommerce-hauptkategorien li a {
    display: block;
    padding: 8px 14px;
    background: #f3f3f3;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.woocommerce-hauptkategorien li a:hover, .woocommerce-hauptkategorien li.current-cat a {
    background: #ddd;
}

/* Balken Woocommerce */

.woocommerce-message {
	border-top-color: var(--e-global-color-primary);
  background: var(--e-global-color-93ba2db);
  color: var(--e-global-color-a6a48cf);
}

.woocommerce-message::before {
	color: var(--e-global-color-a6a48cf);
}
.dgwt-wcas-search-submit, .dgwt-wcas-search-submit:hover {
    background-color: #ededed !important;
    border: 1px solid #d8d8d8 !important;
    min-width: 42px !important;
    width: 42px !important;
}

.dgwt-wcas-search-submit > svg,
.aws-search-btn_icon > svg {
    display: none !important;
}

.aws-search-btn_icon::before {
    content: '' !important;
    width: 30px !important;
    height: 30px !important;
    display: block !important;
    margin-left: 5px !important;
    margin-top: -2px !important;
    background-image: url('./img/suche.svg');
}
.dgwt-wcas-search-submit::before {
    content: '' !important;
    width: 30px !important;
    height: 30px !important;
    display: block !important;
    margin-left: -10px !important;
    margin-top: 1px !important;
    background-image: url('./img/suche.svg');
    transition: none !important;
    border: none !important;
    position: relative !important;
    top: unset !important;
    left: unset !important;
}


/* Warenkorb */

.button.wc-backward {
    font-family: var( --e-global-typography-primary-font-family ), Nunito !important;
    padding: var(--forms-buttons-padding,.88rem 2rem) !important;
    color: var(--forms-buttons-normal-text-color,#69727d) !important;
}

.button.wc-backward:not(:hover) {
    background-color: var( --e-global-color-primary ) !important;
}

.button.wc-backward:hover {
    background-color: var( --e-global-color-93ba2db ) !important;
}

.woocommerce-cart-form__contents .actions button, .woocommerce-cart-form__contents .actions a {
    margin-bottom: 10px;
}

.woocommerce-cart-form__cart-item.cart_item .product-thumbnail {
    padding: 0;
    min-width: 76px !important;
}

.woocommerce-cart-form__cart-item .wc-qty-unit {
    padding: 18px 0 !important;
}

.wc-qty-unit-detail {
    line-height: 43px;
    margin-left: 10px;
}

.woocommerce-cart-form__cart-item .product-quantity {
    display: flex;
    height: 95px;
}

.woocommerce-cart-form__cart-item .wqpmb_input_text {
    max-width: 100px;
    font-size: 14px !important;
    height: 30px !important;
    line-height: 30px !important;
    max-height: 30px !important;
}

.woocommerce-cart-form__cart-item .qib-button-wrapper > * {
    max-height: 30px !important;
}

.woocommerce-cart-form__cart-item .qib-button {
    font-size: 16px !important;
    line-height: 16px !important;
    width: 30px !important;
    padding: 6px 12px 8px 10px !important;
}

.woocommerce-cart-form__cart-item .qib-button.minus {
    padding: 5px 12px 9px 12px !important;
}

.woocommerce-cart-form__cart-item .qib-button.plus {
    padding: 6px 12px 8px 10px !important;
}

.elementor-add-to-cart .qib-button {
    margin-left: 0 !important;
}

.elementor-add-to-cart .cart {
    flex-wrap: wrap !important;
}

/*
.elementor-add-to-cart .cart .quantity {
    align-self: flex-end !important;
    order: 1 !important;
}
 */

.elementor-add-to-cart .cart .single_add_to_cart_button {
    align-self: flex-end !important;
    order: 2 !important;
    height: 40px;
    margin-bottom: 3.5px;
    margin-top: 3.5px;
}

.elementor-add-to-cart .cart .b2bking_tiered_price_table {
    width: 100% !important;
    order: -1 !important;
}

.elementor-add-to-cart .cart .b2bking_tiered_price_table th,
.elementor-add-to-cart .cart .b2bking_tiered_price_table td {
    border: none !important;
}

.elementor-add-to-cart .cart .b2bking_tiered_price_table thead tr,
.elementor-add-to-cart .cart .b2bking_tiered_price_table tbody tr {
    background-color: unset !important;
    border: unset !important;
}

.elementor-add-to-cart .cart .b2bking_tiered_price_table tbody td {
    border-top: 1px solid #cfc8d8 !important;
}

.elementor-add-to-cart .cart .b2bking_tiered_price_table td {
    background-color: unset !important;
    color: #333 !important;
}

.elementor-add-to-cart .quantity .qty {
    border-radius: 3px !important;
    color: #333 !important;
    max-width: 120px !important;
}

.woocommerce table.shop_table:not(.my_account_orders) {
    border: unset !important;
}

.woocommerce table.shop_table:not(.my_account_orders, .wishlist_table) th {
    padding-left: 0;
}

.woocommerce table.woocommerce-checkout-review-order-table th,
.woocommerce table.woocommerce-checkout-review-order-table td {
    padding: 16px !important;
}

.woocommerce table.woocommerce-checkout-review-order-table .woocommerce-shipping-methods li {
    margin-bottom: 0 !important;
}

.woocommerce table.woocommerce-checkout-review-order-table tr:not(.woocommerce-shipping-totals) td:nth-child(2) {
    text-align: right;
}

.woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td:nth-child(2) label {
    display: flex !important;
    justify-content: space-between;
}




@media (max-width: 767px) {
    .woocommerce-cart-form__cart-item .product-thumbnail {
        display: block !important;
    }

    .woocommerce-cart-form__cart-item .product-thumbnail::before {
        display: none !important;
    }

    .woocommerce-cart-form__cart-item .product-thumbnail a {
        display: flex !important;
        justify-content: center !important;
    }

    .woocommerce-cart-form__cart-item .product-thumbnail a img {
        width: 100% !important;
        max-width: 200px !important;
    }

    .woocommerce-cart-form__cart-item .product-name {
        display: block !important;
        text-align: center !important;
    }

    .woocommerce-cart-form__cart-item .product-quantity {
        display: flex !important;
        justify-content: space-between !important;
    }

    .woocommerce-cart-form__cart-item .product-quantity::before {
        line-height: 55px;
    }

    .woocommerce-cart-form__cart-item .qib-button-wrapper {
        height: 49px;
    }

    .woocommerce-cart-form__cart-item .wc-qty-unit {
        line-height: 55px; padding: 0 !important;
    }
}

/* Status */

.stock.available-on-backorder::before {
    content: '';
    background-image: url('./img/on-backorder.svg');
}

.stock.out-of-stock::before {
    content: '';
    background-image: url('./img/out-of-stock.svg');
}

.stock.available::before {
    content: '';
    background-image: url('./img/available.svg');

}

.stock::before {
    height: 20px;
    display: inline-block;
    width: 20px;
    position: absolute;
    top: 2px;
    left: 0;
}

.stock.available {
    color: #00E600 !important;
    margin-left: 25px;
}

.stock.out-of-stock {
    margin-left: 25px;
}

.stock.available-on-backorder {
    margin-left: 25px;
}

.woocommerce-product-attributes td,
.woocommerce-product-attributes th {
    border: 1px solid #cfc8d8 !important;
    background: none !important;
}

.woocommerce-product-attributes p {
    font-style: normal;
    padding: 8px !important;
}

/* Suche */

.dgwt-wcas-search-wrapp,
.aws-search-form {
    max-width: unset !important;
    background: #fff !important;
    border: 1px solid hsla(0,0%,50%,.502) !important;
    border-radius: unset !important;
    box-shadow: unset !important;
    color: #222 !important;
}

.dgwt-wcas-search-input::placeholder,
.aws-search-field::placeholder {
    color: hsla(0,0%,50%,.502) !important;
}

.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:before {
    display: none;
}

.dgwt-wcas-search-input::placeholder {
    font-style: normal !important;
}

.woocommerce-result-count {
    font-family: var( --e-global-typography-primary-font-family ), Nunito !important;
}

.dgwt-wcas-search-input, .aws-search-field {
    font-size: 16px !important;
    color: #000 !important;
    font-family: 'Nunito', sans-serif;
}

.search-results-back-link .btn {
    background-color: var(--e-global-color-primary) !important;
    font-family: var(--e-global-typography-primary-font-family), Nunito !important;
    font-weight: var(--e-global-typography-primary-font-weight) !important;
    fill: var(--e-global-color-a6a48cf) !important;
    color: var(--e-global-color-a6a48cf) !important;
    border-radius: 3px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    padding: 12px 24px !important;
}

.search-results-back-link .btn:hover,
.search-results-back-link .btn:focus {
    background-color: var(--e-global-color-93ba2db) !important;
    color: var(--e-global-color-a6a48cf) !important;
}

/* Loop */

.woocommerce-loop-product__link {
    flex-grow: 1;
}

.elementor-products-grid ul.products.elementor-grid li.product {
    display: flex;
    flex-direction: column;
}

/* Übersetzung */

html[lang="fr-FR"] .hide-fr {
    display: none;
}

html[lang="de-DE"] .hide-de {
    display: none;
}

/* Nach Bestellung */

.woocommerce-order .woocommerce-notice--success,
.woocommerce-order .woocommerce-thankyou-order-details {
    margin-bottom: 16px !important;
}

.woocommerce-order .woocommerce-thankyou-order-details {
    padding-left: 0 !important;
}

.shop_table.order_details td,
.shop_table.order_details th {
    padding: 16px !important;
}

/* WooCommerce Sortierung */

.woocommerce-ordering .orderby {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("./img/chevron-down-light-full.svg");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px 18px;
}

/* Suche */

a[href="https://preview.script.ch/produkt-kategorie/waser/"][rel="tag"],
a[href="https://www.script.ch/produkt-kategorie/waser/"][rel="tag"],
a[href="https://shop.script.ch/produkt-kategorie/waser/"][rel="tag"] {
    display: none !important;
}


/* Cookie Banner */

#cn-accept-cookie {
    color: #0061ae !important;
}

/* Mein Konto */

.b2bking_myaccount_individual_conversation_top_item {
    padding: 12px;
    width: 140px;
    right: 0;
}

.woocommerce-EditAccountForm.edit-account .woocommerce-Button {
    margin-top: 10px;
}

.woocommerce-account .addresses .title .edit {
    float: left !important;
}

.woocommerce-MyAccount-navigation-link--conversations,
.woocommerce-MyAccount-navigation-link--offers {
    display: none;
}

/* Tabellen */

#b2bking_purchase_lists_table td,
#b2bking_purchase_lists_table th {
    border: 1px solid hsla(0,0%,50%,.502) !important;
    color: #222 !important;
    text-align: left !important;
}

#b2bking_purchase_lists_table tbody>tr:nth-child(odd)>td,
#b2bking_purchase_lists_table tbody>tr:nth-child(odd)>th {
    background-color: hsla(0, 0%, 50%, .071) !important;
    color: #222 !important;
}

#b2bking_purchase_lists_table tbody>tr:nth-child(even)>td,
#b2bking_purchase_lists_table th {
    background-color: #fff !important;
    color: #222 !important;
}

.b2bking_bulkorder_form_container,
.b2bking_bulkorder_form_container .b2bking_bulkorder_form_container_content_line_livesearch,
.b2bking_bulkorder_form_container .b2bking_bulkorder_form_container_content_line_qty,
.b2bking_bulkorder_form_container .b2bking_bulkorder_form_container_content_line_product{
    background: #fff !important;
    border: 1px solid hsla(0,0%,50%,.502) !important;
    border-radius: unset !important;
    box-shadow: unset !important;
    color: #222 !important;
}


/* square box */
.woocommerce div.product .woocommerce-product-gallery__image{
    aspect-ratio: 1 / 1 !important;
    background:#fff !important;
    overflow:hidden !important;
    position:relative !important;
}

/* make the <a> fill the square */
.woocommerce div.product .woocommerce-product-gallery__image > a{
    position:absolute !important;
    inset:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

/* constrain the img INSIDE the square (no cropping) */
.woocommerce div.product .woocommerce-product-gallery__image > a > img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    display:block !important;
}

@media (max-width: 767px) {
    .elementor-widget-woocommerce-product-images {
        height: 100vw;
    }
}