/*
Theme Name: Tylösand tema
Theme URI: 
Template: hello-elementor
Author: Daniel Persson
Author URI: 
Description: Elementor Hello barntema
Version: 1.0.0
*/

/** CSS nedanför här **/

body {
    --tylo-theme-color: #DD5700;
}

body *:focus {
    outline: none !important;
}

select,
select:focus {
    border: 1px solid #ddd;
}

.btn,
.button,
.elementor-button,
input[type="button"],
button[type="submit"],
button {
    border: none;
    outline: none;
}

@media screen and (min-width: 600px) {
	.rotate {
		transform: rotate(-90deg);
	}
}

.prdctfltr_kommun {
    display: none !important;
}

.added_to_cart {
    display: none !important;
}

.tylo-sticky-fix.active {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 98;
}

.woocommerce-ordering {
    display: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    background-color: #fff;
}

.price small {
    font-weight: normal;
}

.tylo-product-cat-desc h1,
.tylo-product-cat-desc h2,
.tylo-product-cat-desc h3,
.tylo-product-cat-desc h4,
.tylo-product-cat-desc-alt h1,
.tylo-product-cat-desc-alt h2,
.tylo-product-cat-desc-alt h3,
.tylo-product-cat-desc-alt h4 {
    margin-bottom: 0;
    margin-top: 20px;
}

.fea-minicart-overlay .fea-minicart .fea-minicart-products .product .info a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: normal;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .info {
    padding: 0 40px 0 20px;
}

@media screen and (max-width: 500px) {
    body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .info {
        padding: 0;
    }
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .info .name {
    line-height: 1;
}

/** MENY **/

body.home:not(.elementor-editor-active) .tylo-main-menu {
    display: none;
    width: 100% !important;
}

/** PRODUCT LOOP **/

ul.products::before {
    content: none !important;
}

ul.products li {
    margin: 0 !important;
    width: initial !important;
}

ul.products .woocommerce-info {
    grid-column: 1 / -1;
}

ul.products {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 15px;
    flex: 0 0 75%;
}

@media screen and (max-width: 1025px) {

    ul.products {
        grid-template-columns: 1fr 1fr 1fr;
    }

}

@media screen and (max-width: 768px) {

    ul.products {
        grid-template-columns: 1fr 1fr;
        grid-gap: 5px;
    }

}

@media screen and (max-width: 500px) {

    ul.products {
        grid-template-columns: 1fr 1fr;
        grid-gap: 5px;
    }

}


.tylo-product {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 4px 16px rgb(0 0 0 / 6%);
    transition: box-shadow .25s ease, transform .25s ease;
}

.tylo-product:hover {
    box-shadow: 0 2px 4px rgb(0 0 0 / 8%), 0 10px 28px rgb(0 0 0 / 12%);
    transform: translateY(-2px);
}

.tylo-product img {
    display: block;
    width: 100%;
    height: 250px !important;
    object-fit: cover;
    margin: 0 !important;
}

@media screen and (max-width: 768px) {
    .tylo-product img {
        height: 200px !important;
    }
}

.tylo-product .header {
    position: relative;
}

.tylo-product .header .new-flash {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    background-color: var(--gustaf-theme-color);
    color: #fff;
}

.tylo-product .header .sale-flash {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--tylo-theme-color);
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
}

/* "Återbrukat" chip sits on the image, so the text block below starts at the same height on every card */
.tylo-product .header .used-flash {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 6px;
    border-radius: 999px;
    background: #45904C;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.tylo-product .header .used-flash svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.tylo-product .body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

.tylo-product .body .meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 18px;
    font-size: 12px;
    color: #8a8a8a;
    white-space: nowrap;
    overflow: hidden;
}

.tylo-product .body .meta .brand {
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .04em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tylo-product .body .meta .sep {
    color: #c4c4c4;
}

/* title always takes two lines so prices line up across the row */
.tylo-product .body .title a h3 {
    margin: 0;
    padding: 0 !important;
    color: #111;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.3;
    min-height: calc(2em * 1.3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tylo-product .body .title a h3:hover {
    color: var(--tylo-theme-color);
}

.tylo-product .colors {
    display: flex;
    flex-wrap: wrap;
    min-height: 23px;
}

.tylo-product .colors .color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 3px;
    margin-bottom: 3px;
}

.tylo-product .body .price {
    color: #111 !important;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.2 !important;
}

.tylo-product .body .price .tylo-price-suffix {
    font-size: 12px;
    font-weight: 400;
    color: #8a8a8a;
    margin-left: 4px;
}

.tylo-product.sale ins {
    text-decoration: none !important;
}

.tylo-product.sale ins .amount bdi {
    color: var(--tylo-theme-color);
}

.tylo-product-list-ao {
    columns: 4;
}

/* stock + CO2 share one row pinned to the bottom of the card */
.tylo-product .body .foot {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0ec;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 8px;
    font-size: 12px;
    color: #444;
}

.tylo-product .body .foot .stock,
.tylo-product .body .foot .co2 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.tylo-product .body .foot .stock {
    color: #444 !important;
}

.tylo-product .body .foot .co2 {
    color: #3d7d43;
}

.tylo-product .body .foot .co2 svg {
    width: 11px;
    height: auto;
}

.tylo-product .body .foot .co2 svg path {
    fill: #438d4a;
}

.tylo-product .body .stock .in-stock {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #438d4a;
    display: inline-block;
}

@media screen and (max-width: 1025px) {
    .tylo-product-list-ao {
        columns: 3;
    }
}

@media screen and (max-width: 768px) {
    .tylo-product-list-ao {
        columns: 2;
    }
}

@media screen and (max-width: 500px) {
    .tylo-product-list-ao {
        columns: 1;
    }
}

.tylo-product-list-ao a {
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
}

.tylo-recycle {
    background-color: #45904C;
    color: #fff;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: inline-block;
    padding: 7px 10px 5px 10px;
    margin-right: 15px;
}

.tylo-recycle svg {
    fill: #fff;
}

.woocommerce span.onsale {
    position: absolute;
    top: 1em;
    left: initial;
    right: 1em;
    background-color: var(--tylo-theme-color);
    color: #fff;
    text-transform: uppercase;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    right: none;
    left: .5em;
}

/** TAX TOGGLE **/

.tylo-tax-toggle {
    margin-bottom: 20px;
}

.tylo-tax-toggle select {
    max-width: 120px;
    padding: 7px;
}

.tylo-tax-toggle a {
    text-decoration: none;
    position: relative;
}

.tylo-tax-toggle a.active {
    color: var(--tylo-theme-color);
}

.tylo-tax-toggle a.active::after {
    content: "";
    border-bottom: 5px solid var(--tylo-theme-color);
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -7px;
}

.tylo-tax-toggle a {
    text-transform: uppercase;
}


/** WOO **/

.woocommerce-info {
    border-top-color: var(--tylo-theme-color);
}

.woocommerce-info::before {
    color: var(--tylo-theme-color);
}

.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt {
    background-color: #333;
    color: #fff;
    border-radius: 180px;
}

.woocommerce #respond input#submit.alt:hover, 
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover {
    background-color: var(--tylo-theme-color);
    color: #fff;
}

/** PRODUCT FILTER **/

.prdctfltr_sc {
    flex-wrap: wrap;
}

.prdctfltr_sc .prdctfltr_wc {
    margin-bottom: 20px;
}

.prdctfltr_sc .prdctfltr-widget {
    flex: 0 0 25%;
    min-width: initial !important;
    margin-right: 0 !important;
    padding-right: 2em;
}

.prdctfltr_sc .woocommerce-pagination {
    width: 100%;
}

.prdctfltr_sc .woocommerce-pagination a {
    background-color: #000;
    color: #fff;
    border-radius: 180px;
}

.prdctfltr_sc .woocommerce-pagination a:hover {
    color: #fff;
    background-color: var(--tylo-theme-color);
}

.prdctfltr_sc .pf_search,
.prdctfltr_sc .pf_search:focus {
    border: 1px solid #ddd;
}

@media screen and (min-width: 768px) {
    .prdctfltr_filter_title {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {

    .prdctfltr_sc {
        display: block !important;
    }

    .prdctfltr-widget {
        width: 100% !important;
    }

    .prdctfltr_filter_title {
        flex-wrap: wrap !important;
    }

    .prdctfltr_topbar {
        width: 100% !important;
        margin-top: 20px !important;
    }

    .prdctfltr_title_selected {
        margin-left: 0 !important;
        margin-right: 7px !important;
        margin-bottom: 7px !important;
    }

}

.prdctfltr_filter_title .prdctfltr_woocommerce_filter_title {
    font-size: 22px !important;
}

.prdctfltr_filter_title a.prdctfltr_woocommerce_filter {
    font-size: 30px !important;
    margin: 3px 3px 0 0 !important;
}

.prdctfltr_filter_title .prdctfltr_woocommerce_filter_title:hover,
.prdctfltr_filter_title a.prdctfltr_woocommerce_filter:hover {
    color: var(--tylo-theme-color);
} 

.pf-help-title h2 {
    font-size: 1.4rem;
}

.prdctfltr_buttons label:hover span {
    color: var(--tylo-theme-color);
}

.prdctfltr_buttons .prdctfltr_reset {
    margin-top: 20px !important;
}

.prdctfltr_title_selected::before {
    content: none !important;
}

.prdctfltr_title_selected {
    background-color: rgba(0,0,0,0.05) !important;
    border-radius: 7px !important;
    padding: 3px 8px;
    margin-left: 10px;
    cursor: pointer;
    margin-top: 3px !important;
    display: inline-block !important;
}

.prdctfltr_title_selected:hover a {
    color: var(--tylo-theme-color);
}

.prdctfltr_wc .prdctfltr_buttons {
    margin: 0 !important;
}

/*
.pf_rngstyle_thin .irs-from, 
.pf_rngstyle_thin .irs-to, 
.pf_rngstyle_thin .irs-single {
    background: var(--tylo-theme-color) !important;
}
*/

.pf_rngstyle_html5 .irs-bar,
.pf_rngstyle_html5 .irs-line,
.pf_rngstyle_html5 .irs-line > span {
    height: 5px !important;
}

.prdctfltr_wc .irs-from, 
.prdctfltr_wc .irs-to, 
.prdctfltr_wc .irs-single {
    bottom: -30px !important;
    top: initial !important;
    background-color: transparent !important;
    color: #333 !important;
}

.pf_rngstyle_html5 .irs-single {
    visibility: hidden !important;
}

.prdctfltr_wc .irs-from {
    left: 0 !important;
    visibility: visible !important;
}

.prdctfltr_wc .irs-to {
    left: 75% !important;
    visibility: visible !important;
}

.pf_rngstyle_html5 .irs-min, 
.pf_rngstyle_html5 .irs-max,
.prdctfltr_wc .irs-grid-text {
    display: none !important;
}

.pf_rngstyle_html5 .irs-slider {
    width: 18px !important;
    height: 18px !important;
    background: var(--tylo-theme-color) !important;
    border: none !important;
    cursor: grab !important;
    box-shadow: none !important;
}

.pf_rngstyle_html5 .irs-bar {
    border-color: var(--tylo-theme-color) !important;
    background: linear-gradient(to top, var(--tylo-theme-color) 0%, var(--tylo-theme-color) 100%) !important;
}

.prdctfltr_wc .prdctfltr_filter {
    border-radius: 6px !important;
    border: 2px solid #f5f5f5 !important;
    padding: 20px !important;
}

.prdctfltr_wc .prdctfltr_filter .prdctfltr_widget_title {
    font-family: "Open Sans",sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}


.prdctfltr_count {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    height: 14px;
    line-height: 14px;
    color: #606266 !important;
    font-size: 14px !important;
    padding: initial !important;
    border: initial !important;
    background-color: initial !important;
    border-radius: initial !important;
    min-width: initial !important;
    text-align: initial !important;
}

.prdctfltr_count::before {
    content: "(";
}

.prdctfltr_count::after {
    content: ")";
}

.prdctfltr_wc span.prdctfltr_reset {
    margin-bottom: 20px !important;
}

.prdctfltr_checkboxes .prdctfltr_sub {
    margin-left: 1em !important;
}

.prdctfltr_wc .tylo-tax-toggle {
    padding: 20px;
}

@media screen and (min-width: 768px) {

    nav.prdctfltr-pagination.prdctfltr-pagination-load-more {
        padding-left: 25%;
    }

}

.prdctfltr_wc .prdctfltr_filter i.prdctfltr-plus {
    color: #333 !important;
}


/** QUANTITY INPUT **/

.woocommerce .quantity .qty {
    border-color: #ddd !important;
    -moz-appearance: textfield;
}

.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

div.quantity .wc-quant-minus,
div.quantity .wc-quant-plus,
div.quantity input.qty {
  float: left;
  border-radius: 0;
  font-weight: 400;
  min-height: 40px;
  height: 40px;
}

div.quantity .wc-quant-minus,
div.quantity .wc-quant-minus:hover,
div.quantity .wc-quant-minus:focus,
div.quantity .wc-quant-plus,
div.quantity .wc-quant-plus:hover,
div.quantity .wc-quant-plus:focus {
  background-color: white !important;
  color: #333 !important;
  padding: 10px 20px !important;
  border-color: #ddd !important;
  border-radius: 0 !important;
}

div.quantity .wc-quant-minus {
	border-left: 1px solid #ddd;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

div.quantity .wc-quant-plus {
	border-right: 1px solid #ddd;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

div.quantity input.qty {
    padding: 0;
}

div.quantity input.qty {
    width: 3.631em;
    text-align: center;
}

@media screen and (max-width: 768px) {
    body.woocommerce-page.woocommerce-cart td.product-quantity {
      min-height: 65px;
    }
    body.woocommerce-page.woocommerce-cart div.quantity {
        float: right;
    }
}







/** WOOF **/

.woof ul {
    padding: 0;
}

.woof_products_top_panel li a {
    background: #f1f1f1;
    padding: 3px 10px;
    border-radius: 3px;
    color: #7a7a7a !important;
}

#woof_svg_load_container {
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#woof_svg_load_container img {
    width: 300px !important;
    height: 300px !important;
}

.jQuery-plainOverlay-progress {
    border-top-color: var(--tylo-theme-color) !important;
}

.woof_list label {
    font-size: 14px;
}

.woof_products_top_panel li span {
    padding-right: 20px;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range, 
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--tylo-theme-color);
}

.woof .widget_price_filter .ui-slider .ui-slider-handle {
    border: 1px solid #fff;
}

.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    background-color: #979797;
}

.fea-minicart-overlay {
    visibility: hidden !important;
}

.fea-minicart-overlay.active {
    visibility: visible !important;
}

.fea-minicart-overlay .fea-minicart .fea-minicart-products .product .image img {
    border-radius: 0 !important;
    border: none !important;
}



/** FRISTIL CART **/

#fristil-cart {
    display: flex;
    box-shadow: 0 0 30px 10px rgba(0,0,0,0.2);
}

#fristil-cart .fristil-cart-info {
    padding: 40px;
    background: white;
    flex: 0 0 65%;
}

#fristil-cart .fristil-cart-info form {
    position: relative;
}


#fristil-cart .fristil-cart-checkout {
    padding: 40px;
    background: #f4f4f3;
    flex: 0 0 35%;
    position: relative;
}

#fristil-cart .fristil-cart-checkout .checkout-button {
    font-size: 1em;
}

#fristil-cart table,
#fristil-cart table th,
#fristil-cart table tr,
#fristil-cart table td {
    border: none !important;
    background-color: transparent !important;

}

#fristil-cart .coupon {
    display: flex;
	align-items: center;
	gap: 10px;
}

#fristil-cart .coupon label {
    display: none;
}

#fristil-cart .coupon input {
    width: 250px !important;
}

#fristil-cart h2 {
    padding-left: 12px;
}


#fristil-cart .spacer-tr td {
    padding: 20px;
}

#fristil-cart td.product-name {
    padding: 0px 12px;
}

#fristil-cart .spacer-tr-small td {
    padding: 20px;
}

#fristil-cart .cross-sells {
    display: none;
}

#fristil-cart .cart_totals {
    float: none;
    width: 100%;
}

#fristil-cart .cart_totals .cart-subtotal {
    display: none;
}

#fristil-cart .product-thumbnail a img {
    width: 100px;
}

#fristil-cart .product-thumbnail {
    position: relative;
}

#fristil-cart .product-thumbnail .remove {
    position: absolute;
    top: 0;
    left: 10px;
}

#fristil-cart .cart_totals h2 {
    display: none;
}

#fristil-cart button[name="apply_coupon"] {
    font-weight: 600;
}

#fristil-cart button[name="update_cart"] {
    color: #fff;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 14px;
    line-height: 12px;
    border-radius: 100px;
    font-family: "Open Sans", Sans-serif;
    background-color: #000;
}

#fristil-cart button[name="update_cart"]:hover {
    background-color: var(--tylo-theme-color);
}

#fristil-cart #shipping_method li label {
    vertical-align: text-top;
    cursor: pointer;
}

#fristil-cart .woocommerce-shipping-destination {
    display: none;
}

#fristil-cart .cart-collaterals {
    position: sticky;
    top: 120px;
}

#fristil-cart .order-total {
    font-size: 22px;
    font-weight: 200;
}

#fristil-cart .order-total th {
    font-weight: 900;
    vertical-align: inherit;
}

#fristil-cart .product-name a,
#fristil-cart .cart-collaterals label {
    text-transform: initial;
    text-decoration: none;
    font-weight: normal;
}

#fristil-cart .cart-collaterals .cart_totals table th {
    width: 30%;
}

#fristil-cart .cart-collaterals .express {
    font-size: 10px;
}

.fristil-cart-cross-sell {
    margin-top: 20px;
}

.fristil-cart-cross-sell h2 {
    color: white;
}


#fristil-cart .cart-collaterals .includes_tax {
    text-transform: lowercase;
}


@media screen and (max-width: 1025px) {

    #fristil-cart .fristil-cart-checkout,
    #fristil-cart .fristil-cart-info {
        padding: 20px;
    }

    #fristil-cart .fristil-cart-info {
        padding-top: 30px;
    }

    #fristil-cart {
        flex-direction: column;
    }

    #fristil-cart .product-thumbnail::before,
    #fristil-cart .spacer-tr td::before {
        content: none;
    }

    #fristil-cart .product-thumbnail {
        display: block;
        text-align: center !important;
    }

    #fristil-cart .cart-collaterals {
        position: initial;
    }

    #fristil-cart .product-name {
        text-align: left !important;
    }

    #fristil-cart .product-name::before {
        width: 100%;
        padding-bottom: 10px;
    }

}


/** FLOATING BUTTONS **/

.tylo-floating-button {
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    padding: 0;
    font-size: 2em;
    line-height: 1;
    background-color: #000;
    border-radius: 50%;
    z-index: 999;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 2rem;
}

.tylo-floating-button.info {
    bottom: 85px;
}

.tylo-floating-button.totop {
    bottom: 150px;
    display: none;
}

.tylo-floating-info {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 60px;
    height: 60px;
    overflow: hidden;
    background-color: #fff;
    z-index: 999;
    display: none;
    box-shadow: 0 6px 46px 5px rgb(0 0 0 / 25%);
    padding: 15px;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: bold;
    border-radius: 3px;
    height: auto;
    color: #000;
}

.tylo-floating-info a {
    text-decoration: none;
}

.tylo-floating-info .grey {
    color: #979797;
    font-weight: normal;
    font-size: 1rem;
    margin-top: 10px;
}

.tylo-floating-info .grey a {
    color: #979797;
    font-weight: normal;
}

.tylo-floating-info.active {
    display: flex;
    flex-direction: column;
    overflow: auto;
    width: 330px;
}

.tylo-floating-info h5 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.tylo-floating-info > div {
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: flex;
}

.tylo-floating-info > div:last-child {
    border: none;
    margin: 0;
    padding: 0;
}

.tylo-floating-info .header {
    justify-content: space-between;
    font-weight: bold;
}

.tylo-floating-info .icon {
    margin-right: 20px;
}

@media screen and (max-width: 600px) {

    .tylo-floating-button {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .tylo-floating-button.info {
        bottom: 90px;
    }
    
    .tylo-floating-button.totop {
        bottom: 140px;
    }

}

/** HEADER: Företag/Privat switch [tylo_tax_switch] **/

.tylo-tax-switch {
    display: inline-flex;
    align-items: center;
    background: #efefef;
    border-radius: 999px;
    padding: 3px;
    line-height: 1;
    white-space: nowrap;
}

.elementor-widget-shortcode .tylo-tax-switch .tylo-tax-switch__btn {
    border: 0;
    background: transparent;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}

.elementor-widget-shortcode .tylo-tax-switch .tylo-tax-switch__btn.is-active {
    background: #1f1f1f;
    color: #fff;
}

.elementor-widget-shortcode .tylo-tax-switch .tylo-tax-switch__btn:hover:not(.is-active) {
    color: #1f1f1f;
    background: transparent;
}

.elementor-widget-shortcode .tylo-tax-switch .tylo-tax-switch__btn:focus-visible {
    outline: 2px solid var(--tylo-theme-color);
    outline-offset: 1px;
}

.tylo-tax-switch--fixed {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
}

.tylo-tax-switch.is-loading {
    opacity: .6;
    pointer-events: none;
}

@media (max-width: 767px) {
    /* keep the mobile header on one row */
    .elementor-location-header .elementor-widget-wrap:has(.tylo-tax-switch) {
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
    }
    .elementor-location-header .elementor-widget-shortcode:has(.tylo-tax-switch) {
        margin: 0 4px 0 0 !important;
    }
    .elementor-widget-shortcode .tylo-tax-switch {
        padding: 2px;
    }
    .elementor-location-header .elementor-container:has(.tylo-tax-switch) {
        flex-wrap: nowrap;
        align-items: center;
    }
    .elementor-location-header .elementor-column:has(.elementor-widget-theme-site-logo) {
        width: auto !important;
        flex: 0 0 auto;
    }
    .elementor-location-header .elementor-column:has(.tylo-tax-switch) {
        width: auto !important;
        flex: 1 1 auto;
    }
    .elementor-location-header .elementor-widget-theme-site-logo img {
        max-width: 80px !important;
        height: auto;
    }
    .elementor-widget-shortcode .tylo-tax-switch .tylo-tax-switch__btn {
        font-size: 11px;
        padding: 6px 5px;
    }
    .elementor-location-header .elementor-column:has(.tylo-tax-switch) .elementor-widget-wrap > .elementor-widget:not(:last-child) {
        margin-right: 6px;
    }
    .elementor-location-header .elementor-container:has(.tylo-tax-switch) > .elementor-column > .elementor-widget-wrap {
        padding: 6px 4px !important;
    }
}

.tylo-price-suffix {
    font-size: .75em;
    color: #777;
    margin-left: 4px;
}


@media (max-width: 340px) {
    /* very narrow phones: drop the account icon from the header row */
    .elementor-location-header .elementor-column:has(.tylo-tax-switch) .elementor-widget-icon:not(:last-child) {
        display: none;
    }
    .elementor-location-header .elementor-widget-theme-site-logo img {
        max-width: 72px !important;
    }
}

/** PRODUCT PAGE BUY BOX **/

.single-product .elementor-widget-woocommerce-product-price .price {
    font-size: 30px;
    line-height: 1.1;
    margin: 0;
}

.single-product .elementor-widget-woocommerce-product-price .woocommerce-price-suffix {
    font-size: 14px;
    font-weight: 400;
    color: #777;
}

.tylo-price-extras {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: -6px;
}

.tylo-msrp {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.tylo-msrp s {
    text-decoration-thickness: 1px;
}

.tylo-msrp__save {
    background: #e8f4ea;
    color: #2e7d32;
    font-weight: 700;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
}

.tylo-co2-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #2e7d32;
}

.tylo-co2-badge svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.tylo-co2-badge svg path,
.tylo-co2-badge svg polygon,
.tylo-co2-badge svg circle {
    fill: currentColor;
}

/* Actions: quantity + add to cart + offer on one row, same height */
.single-product .tylo-atc,
.single-product .tylo-offer-btn {
    --tylo-btn-h: 52px;
    margin-bottom: 0 !important;
}

.single-product .tylo-atc {
    margin-right: 12px !important;
}

.single-product .tylo-atc form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.single-product .tylo-atc form.cart::before,
.single-product .tylo-atc form.cart::after {
    display: none !important;
}

.single-product .tylo-atc .quantity.hidden {
    display: none !important;
}

.single-product .tylo-atc .quantity:not(.hidden) {
    display: inline-flex !important;
    align-items: center;
    height: var(--tylo-btn-h);
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 !important;
    background: #fff;
}

.single-product .tylo-atc .quantity input.qty,
.single-product .tylo-atc .quantity .wc-quant-minus,
.single-product .tylo-atc .quantity .wc-quant-plus {
    height: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
    margin: 0;
    padding: 0;
    color: #1f1f1f;
    font-size: 16px;
}

.single-product .tylo-atc .quantity .wc-quant-minus,
.single-product .tylo-atc .quantity .wc-quant-plus {
    width: 40px;
    cursor: pointer;
    font-size: 20px;
}

.single-product .tylo-atc .quantity .wc-quant-minus:hover,
.single-product .tylo-atc .quantity .wc-quant-plus:hover {
    background: #f2f2f2 !important;
}

.single-product .tylo-atc .quantity input.qty {
    width: 40px;
    text-align: center;
    -moz-appearance: textfield;
}

.single-product .tylo-atc .quantity input.qty::-webkit-outer-spin-button,
.single-product .tylo-atc .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product .tylo-atc .single_add_to_cart_button,
.single-product .tylo-offer-btn .elementor-button {
    height: var(--tylo-btn-h);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 28px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1;
    margin: 0 !important;
}

.single-product .tylo-offer-btn .elementor-button {
    background: #fff !important;
    color: #1f1f1f !important;
    border: 2px solid #1f1f1f !important;
}

.single-product .tylo-offer-btn .elementor-button:hover {
    background: #1f1f1f !important;
    color: #fff !important;
}

.single-product .elementor-widget-wrap:has(> .tylo-atc) {
    align-items: flex-end;
}

.single-product .tylo-atc .stock {
    margin: 0 0 12px;
    font-size: 14px;
    color: #2e7d32 !important;
}

.single-product .tylo-atc .stock::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 6px;
    vertical-align: middle;
}

.tylo-buy-trust {
    list-style: none;
    margin: 4px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 14px;
    color: #444;
}

.tylo-buy-trust li::before {
    content: "✓";
    color: var(--tylo-theme-color);
    font-weight: 700;
    margin-right: 6px;
}

@media (max-width: 600px) {
    .single-product .tylo-atc,
    .single-product .tylo-offer-btn {
        width: 100% !important;
        margin-right: 0 !important;
    }
    .single-product .tylo-atc form.cart {
        flex-direction: row !important;
    }
    .single-product .tylo-atc .quantity {
        flex: 0 0 auto;
        margin-bottom: 0 !important;
    }
    .single-product .tylo-atc .single_add_to_cart_button {
        flex: 1 1 auto;
    }
    .single-product .tylo-offer-btn {
        margin-top: 10px !important;
    }
    .single-product .tylo-offer-btn .elementor-button {
        width: 100%;
    }
}

/** PRODUCT DETAILS [specifications_table] **/

.tylo-specs {
    margin: 8px 0 0;
    max-width: 640px;
}

.tylo-specs__title {
    font-size: 28px;
    margin: 0 0 16px;
}

.tylo-specs__condition {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f6f6f4;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
}

.tylo-specs__meter {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tylo-specs__meter span {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    background: #ddd;
}

.tylo-specs__meter span.is-on {
    background: #2e7d32;
}

.tylo-specs__meter small {
    margin-left: 8px;
    font-size: 13px;
    color: #777;
    font-weight: 600;
}

.tylo-specs__grid {
    background: #f6f6f4;
    border-radius: 14px;
    padding: 4px 20px;
}

.tylo-specs__tile {
    display: grid;
    grid-template-columns: minmax(130px, 38%) 1fr;
    column-gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid #e4e4df;
}

.tylo-specs__tile:last-child {
    border-bottom: 0;
}

.tylo-specs__tile .tylo-specs__label {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #6f6f6f;
}

.tylo-specs__tile .tylo-specs__value {
    grid-column: 2;
    font-size: 16px;
    font-weight: 600;
}

.tylo-specs__tile .tylo-specs__hint {
    grid-column: 2;
    margin-top: 2px;
}

.tylo-specs__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.tylo-specs__value {
    font-size: 17px;
    font-weight: 700;
    color: #1f1f1f;
    line-height: 1.3;
}

.tylo-specs__hint {
    font-size: 12px;
    color: #8a8a8a;
}

.tylo-specs__tile--eco .tylo-specs__value,
.tylo-specs__tile--eco .tylo-specs__hint {
    color: #2e7d32;
}

@media (max-width: 600px) {
    .tylo-specs__grid {
        padding: 2px 16px;
    }
    .tylo-specs__tile {
        grid-template-columns: 42% 1fr;
        padding: 12px 0;
    }
    .tylo-specs__meter span {
        width: 22px;
    }
}

/** Product meta line above the title: brand · Art.nr **/

.tylo-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #8a8a8a;
    letter-spacing: .02em;
}

.tylo-product-meta__brand {
    color: #1f1f1f;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none !important;
}

.tylo-product-meta__brand:hover {
    color: var(--tylo-theme-color);
}

.tylo-product-meta__sep {
    color: #c4c4c4;
}

/** SIDE CART (Fristil minicart) **/

body .fea-minicart-overlay .fea-minicart {
    width: 420px !important;
    max-width: 100vw;
    padding: 0 !important;
    border-radius: 0;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 20px 24px;
    margin: 0;
    border-bottom: 1px solid #eee;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-header h3 {
    font-size: 20px;
    margin: 0;
}

.tylo-mc-count {
    color: #8a8a8a;
    font-weight: 500;
}

body .fea-minicart-overlay .tylo-mc-close {
    border: 0;
    background: #f2f2f2;
    color: #1f1f1f;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

body .fea-minicart-overlay .tylo-mc-close:hover {
    background: #e4e4e4;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-body {
    max-height: none;
    flex: 1 1 auto;
    padding: 8px 24px;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .image,
body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .info {
    flex: none;
    padding: 0;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .image img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
    border: 0;
    background: #f6f6f4;
    display: block;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .name {
    font-weight: 600;
    font-size: 15px;
    color: #1f1f1f;
    text-decoration: none;
    line-height: 1.3;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .unit {
    font-size: 13px;
    color: #8a8a8a;
    margin-top: 2px;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .info .quantity {
    margin: 0;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .info .quantity select {
    width: auto;
    height: 34px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background-color: #fff;
    padding: 0 28px 0 12px;
    font-size: 14px;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .qty-fixed {
    font-size: 14px;
    color: #555;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .line-total {
    font-weight: 700;
    font-size: 15px;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .ge-remove {
    position: static;
    align-self: flex-start;
    margin-top: 8px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.3;
    color: #8a8a8a;
    text-decoration: underline;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .ge-remove:hover,
body .fea-minicart-overlay .fea-minicart .fea-minicart-products .product .ge-remove:focus {
    color: #c62828;
    background: none;
}

body .fea-minicart-overlay .fea-minicart .tylo-mc-empty-icon {
    display: block;
    margin: 40px auto 12px;
    color: #c4c4c4;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-footer .fea-minicart-price {
    margin: 0 0 16px;
    padding: 0;
    border: 0 !important;
    font-size: 15px;
    text-align: left;
}

.tylo-mc-totals .tylo-mc-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: #444;
}

.tylo-mc-totals .tylo-mc-row small {
    color: #8a8a8a;
    font-size: 12px;
}

.tylo-mc-totals .tylo-mc-row.is-total {
    font-size: 18px;
    font-weight: 700;
    color: #1f1f1f;
    padding-top: 8px;
}

.tylo-mc-totals .tylo-mc-row.is-muted {
    font-size: 13px;
    color: #8a8a8a;
    padding-top: 0;
}

.tylo-mc-totals .tylo-mc-note {
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 6px;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-footer .fea-minicart-buttons {
    display: flex;
    flex-direction: column-reverse; /* checkout first */
    gap: 10px;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-footer .fea-minicart-buttons a {
    margin: 0;
    height: 52px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-footer .fea-minicart-buttons a.fea-checkout {
    background: #1f1f1f;
    color: #fff;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-footer .fea-minicart-buttons a.fea-checkout:hover {
    background: var(--tylo-theme-color);
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-footer .fea-minicart-buttons a.fea-keep-shopping {
    background: transparent;
    color: #1f1f1f;
    border: 0;
    height: 40px;
    font-weight: 600;
    text-decoration: underline;
}

/* hide floating info/to-top buttons while the cart is open */
body:has(.fea-minicart-overlay.active) .tylo-floating-button,
body:has(.fea-minicart-overlay.active) .tylo-floating-info {
    display: none !important;
}

@media (max-width: 600px) {
    body .fea-minicart-overlay .fea-minicart {
        width: 100vw !important;
    }
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-footer .fea-minicart-buttons > div {
    width: 100%;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-footer .fea-minicart-buttons a {
    width: 100%;
    box-sizing: border-box;
}

body .fea-minicart-overlay .fea-minicart .fea-minicart-products .tax_label {
    display: none;
}

/* ==========================================================================
   "Begär offert" popup (Elementor popup 13520)
   ========================================================================== */
#elementor-popup-modal-13520 .dialog-widget-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgb(0 0 0 / 22%);
}

#elementor-popup-modal-13520 .dialog-message {
    max-height: 92vh;
    overflow-y: auto;
}

#elementor-popup-modal-13520 .dialog-close-button {
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f2f2ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #111;
}

#elementor-popup-modal-13520 .dialog-close-button:hover {
    background: #e6e6e1;
}

.elementor-13520 > .elementor-section > .elementor-container {
    padding: 28px 28px 24px;
}

.elementor-13520 > .elementor-section .elementor-widget-wrap {
    padding: 0 !important;
}

.elementor-13520 > .elementor-section .elementor-widget-wrap > .elementor-element {
    margin-bottom: 0 !important;
}

.elementor-13520 .tylo-offer-title .elementor-heading-title {
    margin: 0 44px 4px 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
}

.elementor-13520 .tylo-offer-intro p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* product the request is about */
.tylo-offer-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    margin-bottom: 20px;
    background: #f6f6f3;
    border-radius: 12px;
}

.tylo-offer-product .tylo-offer-product__img {
    flex: 0 0 64px;
    width: 64px !important;
    height: 64px !important;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
}

.tylo-offer-product__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tylo-offer-product__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8a8a8a;
}

.tylo-offer-product__chip {
    padding: 2px 8px;
    border-radius: 999px;
    background: #45904C;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.tylo-offer-product__name {
    font-size: 15px;
    line-height: 1.3;
    color: #111;
}

.tylo-offer-product__price {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.tylo-offer-product__price small {
    font-weight: 400;
    color: #8a8a8a;
}

/* form */
.elementor-13520 .tylo-offer-form .elementor-field-type-recaptcha_v3 {
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-13520 .tylo-offer-form .elementor-form-fields-wrapper {
    margin-left: -6px;
    margin-right: -6px;
}

.elementor-13520 .tylo-offer-form .elementor-field-group {
    padding: 0 6px;
    margin-bottom: 14px;
}

.elementor-13520 .tylo-offer-form .elementor-field-label {
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.elementor-13520 .tylo-offer-form .elementor-mark-required .elementor-field-label::after {
    color: #c62828;
    padding-left: 2px;
}

.elementor-13520 .tylo-offer-form .elementor-field-group input.elementor-field,
.elementor-13520 .tylo-offer-form .elementor-field-group textarea.elementor-field {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d8d8d8 !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 15px;
    color: #111 !important;
    box-shadow: none;
    transition: border-color .15s ease;
}

.elementor-13520 .tylo-offer-form textarea.elementor-field {
    min-height: 84px;
    resize: vertical;
}

.elementor-13520 .tylo-offer-form .elementor-field:focus {
    outline: none;
    border-color: #111 !important;
}

.elementor-13520 .tylo-offer-form .elementor-field::placeholder {
    color: #a5a5a5;
}

.elementor-13520 .tylo-offer-form .elementor-field-type-submit {
    margin-top: 6px;
    margin-bottom: 0;
}

.elementor-13520 .tylo-offer-form .elementor-button {
    width: 100%;
    min-height: 50px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.elementor-13520 .tylo-offer-form .elementor-button:hover {
    background: #333;
}

.elementor-13520 .tylo-offer-form .elementor-message {
    margin-top: 12px;
    font-size: 14px;
}

.elementor-13520 .tylo-offer-form .elementor-message-success {
    padding: 12px 14px;
    border-radius: 10px;
    background: #eaf4eb;
    color: #2e6b33;
}

@media (max-width: 767px) {
    .elementor-13520 .tylo-offer > .elementor-container {
        padding: 22px 18px 18px;
    }

    /* Antal + Företag side by side, the rest full width */
    .elementor-13520 .tylo-offer-form .elementor-field-group.elementor-col-33 {
        width: 33.333%;
    }

    .elementor-13520 .tylo-offer-form .elementor-field-group.elementor-col-66 {
        width: 66.666%;
    }
}

/* ==========================================================================
   Cart page (Varukorg) – woocommerce/cart/cart.php
   ========================================================================== */
.tylo-cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: start;
    margin: 0 auto;
    padding: 8px 0 40px;
    color: #111;
}

.tylo-cart__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.tylo-cart .tylo-cart__title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.tylo-cart__title span {
    font-weight: 400;
    color: #8a8a8a;
}

.tylo-cart__continue {
    font-size: 14px;
    color: #555 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.tylo-cart__continue:hover {
    color: #111 !important;
    text-decoration: underline !important;
}

.tylo-cart__items {
    border-top: 1px solid #ebebe7;
}

/* one product row */
.tylo-cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto minmax(110px, auto);
    grid-template-areas:
        "img info qty total"
        "img info qty remove";
    column-gap: 20px;
    row-gap: 4px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #ebebe7;
}

.tylo-cart-item__img { grid-area: img; align-self: start; }
.tylo-cart-item__info { grid-area: info; }
.tylo-cart-item__qty { grid-area: qty; }
.tylo-cart-item__total { grid-area: total; text-align: right; align-self: end; }
.tylo-cart-item__remove { grid-area: remove; text-align: right; align-self: start; }

.tylo-cart-item__img img {
    display: block;
    width: 96px !important;
    height: 96px !important;
    object-fit: cover;
    border-radius: 10px;
    background: #f6f6f3;
}

.tylo-cart-item__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tylo-cart-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8a8a8a;
}

.tylo-cart-item__chip {
    padding: 2px 8px;
    border-radius: 999px;
    background: #45904C;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.tylo-cart .tylo-cart-item__name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #111 !important;
    text-decoration: none !important;
}

.tylo-cart .tylo-cart-item__name:hover {
    text-decoration: underline !important;
}

.tylo-cart-item__unit {
    font-size: 14px;
    color: #555;
}

.tylo-cart-item__unit small {
    color: #8a8a8a;
}

.tylo-cart-item__total {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

/* WooCommerce's "(inkl. moms)" label after prices: small, on its own line */
.tylo-cart .tax_label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #8a8a8a;
}

.tylo-cart .tylo-cart-item__remove a.remove {
    display: inline;
    width: auto;
    height: auto;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    color: #8a8a8a !important;
    background: none !important;
    text-decoration: underline;
    border-radius: 0;
}

.tylo-cart .tylo-cart-item__remove a.remove:hover {
    color: #c62828 !important;
}

/* quantity stepper (same look as on the product page) */
.tylo-cart .quantity {
    display: inline-flex;
    align-items: stretch;
    float: none !important;
    height: 42px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.tylo-cart .quantity .wc-quant-minus,
.tylo-cart .quantity .wc-quant-plus {
    width: 38px;
    height: 100%;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: #111 !important;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.tylo-cart .quantity .wc-quant-minus:hover,
.tylo-cart .quantity .wc-quant-plus:hover {
    background: #f2f2ef !important;
}

.tylo-cart .quantity input.qty {
    width: 40px;
    height: 100%;
    padding: 0;
    border: 0 !important;
    background: transparent;
    text-align: center;
    font-size: 15px;
    -moz-appearance: textfield;
}

.tylo-cart .quantity input.qty::-webkit-outer-spin-button,
.tylo-cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* coupon + (hidden with JS) update button */
.tylo-cart__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 0;
}

.tylo-cart__actions .coupon {
    display: flex;
    gap: 8px;
    flex: 1 1 280px;
    max-width: 380px;
}

.tylo-cart__actions .coupon input.input-text {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    font-size: 14px;
}

.woocommerce .tylo-cart .tylo-cart__actions button.button {
    height: 42px;
    padding: 0 18px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
}

.woocommerce .tylo-cart .tylo-cart__actions button.button:hover {
    background: #111;
    color: #fff;
}

.tylo-cart-js .tylo-cart__update {
    display: none !important;
}

/* summary */
.tylo-cart__side {
    position: sticky;
    top: 100px;
}

.tylo-cart__summary {
    padding: 24px;
    border-radius: 16px;
    background: #f6f6f3;
}

.tylo-cart .tylo-cart__summary-title {
    margin: 0 0 4px;
    padding: 0;
    font-size: 20px;
    font-weight: 800;
}

.tylo-cart__vat-note {
    margin: 0 0 14px;
    font-size: 13px;
    color: #8a8a8a;
}

.woocommerce .tylo-cart .cart-collaterals .cart_totals,
.woocommerce-page .tylo-cart .cart-collaterals .cart_totals {
    float: none;
    width: 100%;
}

.woocommerce .tylo-cart .cart-collaterals {
    width: auto;
}

/* WooCommerce's small-screen table styles hide the labels; keep label | value rows */
.woocommerce .tylo-cart .cart_totals table.shop_table_responsive tr {
    display: table-row;
}

.woocommerce .tylo-cart .cart_totals table.shop_table_responsive tr th,
.woocommerce .tylo-cart .cart_totals table.shop_table_responsive tr td {
    display: table-cell;
}

.tylo-cart .cart_totals h2,
.tylo-cart .cross-sells {
    display: none;
}

.tylo-cart .cart_totals table.shop_table {
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

.tylo-cart .cart_totals table th,
.tylo-cart .cart_totals table td {
    padding: 8px 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 15px;
    font-weight: 400;
    vertical-align: top;
}

.tylo-cart .cart_totals table th {
    width: 45%;
    color: #555;
}

.tylo-cart .cart_totals table td {
    text-align: right;
}

.tylo-cart .cart_totals .order-total th,
.tylo-cart .cart_totals .order-total td {
    padding-top: 14px !important;
    border-top: 1px solid #e2e2dc !important;
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.tylo-cart .cart_totals .order-total small,
.tylo-cart .cart_totals .includes_tax {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #8a8a8a;
}

.tylo-cart .cart_totals td::before {
    display: none !important;
}

.tylo-cart .wc-proceed-to-checkout {
    padding: 16px 0 0;
}

.tylo-cart .wc-proceed-to-checkout a.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.tylo-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #333;
}

.tylo-cart .tylo-buy-trust {
    margin: 16px 0 0;
}

/* empty notices etc. from WooCommerce above the cart */
.woocommerce-cart .woocommerce-notices-wrapper:not(:empty) {
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    .tylo-cart {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .tylo-cart {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .tylo-cart__side {
        position: static;
    }
}

@media (max-width: 600px) {
    .tylo-cart .tylo-cart__title {
        font-size: 22px;
    }

    .tylo-cart-item {
        grid-template-columns: 72px auto minmax(0, 1fr);
        grid-template-areas:
            "img info info"
            "img qty total"
            "img remove remove";
        column-gap: 14px;
        row-gap: 10px;
        padding: 16px 0;
    }

    .tylo-cart-item__img img {
        width: 72px !important;
        height: 72px !important;
    }

    .tylo-cart-item__total {
        align-self: center;
    }

    .tylo-cart-item__remove {
        text-align: left;
    }

    .tylo-cart__summary {
        padding: 20px;
    }
}

/* empty cart */
.woocommerce-cart .wc-empty-cart-message .cart-empty {
    margin: 24px 0 8px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.woocommerce-cart .wc-empty-cart-message .cart-empty::before {
    display: none;
}

.woocommerce .return-to-shop a.button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 700;
}

.woocommerce .return-to-shop a.button:hover {
    background: #333;
    color: #fff;
}

/* discount code row (cart + checkout totals) */
.tylo-coupon-code {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border: 1px dashed #b9b9b2;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #333;
    vertical-align: 1px;
}

.tylo-coupon-amount {
    display: block;
    color: #2e7d32;
    font-weight: 600;
    white-space: nowrap;
}

a.tylo-coupon-remove {
    display: inline-block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400 !important;
    color: #8a8a8a !important;
    text-decoration: underline !important;
}

a.tylo-coupon-remove:hover {
    color: #c62828 !important;
}

.tylo-cart .cart_totals .cart-discount th {
    white-space: nowrap;
}
