/*
Theme Name: MBS Child
Theme URI: 
Author: Knorke Media GmbH
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: mbs
Text Domain: mbs-child
Tags: 
*/

#pointer {
    width: 60%;
    height: 40px;
    background: #a5c500;
}
#pointer-end {
    content: "";
    border-left: 20px solid #a5c500;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
}
:where(.wp-site-blocks) > * {
    margin-block-start: 0 !important;
}
.d-none { display: none !important; }
a[title="Deutsch"],
a[title="English"] {
    color: #fff;
    text-decoration: none;
}
div.dgwt-wcas-search-wrapp {
    max-width: fit-content;
    margin-left: 8px;
}
a.dgwt-wcas-search-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #eee;
    border-radius: 50%;
}
.woocommerce table.variations tr td select {
    height: 2.5em;
    padding: 0em 1.1em;
}
.woocommerce div.product form.cart .variations select {
    border: 2px solid #eee;
}
.woocommerce div.product form.cart table.variations td select {
    min-width: 100%;
}
.woocommerce table.variations tr td, 
.woocommerce table.variations tr th {
    padding-bottom: 0;
}

/* FOOTER */
footer {
    margin-block-start: 0;
}

.yith-wcan-filters {
    background-color: transparent!important;
}
.yith-wcan-filters form[method="POST"]{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}
.yith-wcan-filters form[method="POST"] .yith-wcan-filter {
    display: flex;
    flex: 0 0 calc(100% - 20px);
    flex-direction: column;
    margin-bottom: 0 !important;
    gap: 8px;
}
.yith-wcan-filters form[method="POST"] .yith-wcan-filter h4,
.yith-wcan-filters form[method="POST"] .yith-wcan-filter p,
.yith-wcan-filters form[method="POST"] .yith-wcan-filter ul.filter-items {
    margin-block-start: 0;
    margin-block-end: 0;
}
.yith-wcan-filters li.filter-item br,
.yith-wcan-filters .yith-wcan-dropdown br,
a.active-filter-label br,
button.yith-wcan-reset-filters br {
    display: none!important;
}
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown {
    background: #fff;
}
.yith-wcan-active-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    flex: 0 0 100%;
    max-width: 100%;
}
.yith-wcan-active-filters h4 {
    display: flex;
    margin: 0;
    flex: 0 0 100%;
    max-width: 100%;
}
.yith-wcan-active-filters p {
    margin: 0 !important;
}
.yith-wcan-active-filters .active-filter {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.product-cat-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: start;
    list-style-type: none;
    padding-inline-start: 0;
}
.product-cat-list .cat-item {
    background: #eee;
    border: 2px solid #eee;
    padding: 4px 8px;
    border-radius: 22px;
}
.product-cat-list .cat-item.current-cat {
    background: #0d2a64;
    border: 2px solid #0d2a64;
}
.product-cat-list .cat-item.current-cat a {
    color: #fff !important;
}
.product-cat-list .cat-item a {
    text-decoration: none;
}


/* PRODUCT CARD */
li.wc-block-product {
    display: flex;
    flex-direction: column;
    border: 2px solid #eee;
    align-items: flex-start;
}
li.wc-block-product > .wp-block-woocommerce-product-image {
    order: 1;
}
li.wc-block-product > .wp-block-post-title {
    order: 2;
    padding: 0 20px;
}
li.wc-block-product > .wp-block-woocommerce-product-price {
    order: 3;
    padding: 0 20px;
}
li.wc-block-product > .wp-block-woocommerce-product-button {
    order: 6;
    padding: 0 20px;
    max-width: calc(100% - 40px);
    width: 100%;
    margin: 1rem 0;
}
li.wc-block-product > .tax-info {
    order: 4;
    padding: 0 20px;
    margin-bottom: 0 !important;
}
li.wc-block-product > .shipping-costs-info {
    order: 5;
    margin-block-start: 0;
    padding: 0 20px;
    margin-bottom: 0 !important;
}


/* WISHLIST */
.ywraq-wrapper.ywraq-empty .ywraq-before-form {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
}
.return-to-shop a {
    background-color: var(--wp--preset--color--primary);
    padding: 8px 32px;
    border-radius: 50px;
    color: var(--wp--preset--color--white);
    text-decoration: none;
}
.return-to-shop a:hover {
    background-color: var(--wp--preset--color--secondary);
}


/* FORM */
.gfield input,
.gfield select,
.gfield textarea {
    border: 2px solid #eee;
    padding: 8px 12px;
}
.gfield input:focus-visible,
.gfield select:focus-visible,
.gfield textarea:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary)
}
input[type="submit"]{
    background-color: var(--wp--preset--color--primary);
    padding: 8px 32px;
    border-radius: 50px;
    color: var(--wp--preset--color--white);
    text-decoration: none;
    border: none;
    font-size: 1rem;
}
input[type="submit"]:hover {
    background-color: var(--wp--preset--color--secondary);
    cursor: pointer;
}
.gfield_validation_message {
    padding: 8px 12px !important;
    font-size: var(--wp--preset--font-size--small) !important;
}
.gform_wrapper.gravity-theme .gform_validation_errors {
    border-radius: 0 !important;
}