body.scrolled .wpml-lang-switcher .wpml-lang-current {
    color: #000 !important;
}

.single-product.woo-variation-swatches div.product form.cart .variations tr:first-of-type ul {
    max-width: 80px;
}

/*#menu-second-menu-not-logged-in .menu-text{*/
/*    display: none !important;*/
/*}*/

@media screen and (min-width: 1200px) {
    .home .site-header .secondary-menu ul li {
        margin-right: 3px;
    }

    .product-info__btns > * {
        width: 270px !important;
    }
}
@media screen and (max-width: 991px) {
    body .wpml-lang-switcher .wpml-lang-current {
        color: #000 !important;
    }

    .woocommerce-notices-wrapper .woocommerce-message {

        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

@media screen and (max-width: 767px) {

    .section-collection .swiper-wrapper .swiper-slide .image-wrapper img {
        height: auto;
        aspect-ratio: 303 / 280;
        object-fit: cover;
    }

    .woocommerce-notices-wrapper .woocommerce-message {
        padding-left: 2rem;
        padding-right: 1rem;
    }

    .woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before {
        left: 0.75rem;
    }

    .single-product.woo-variation-swatches div.product form.cart .variations tr:nth-of-type(2) {
        margin-top: 10px !important;
    }

    .single-product.woo-variation-swatches div.product form.cart .variations tr:first-of-type ul {
        width: 40%;
        max-width: 275px;
    }
}


body:not(.home) .site-header.transparant-header:not(.scrolled) .wpml-lang-switcher .wpml-lang-current {
    color: #000 !important;
}

.product-filters.flex .button {
    padding: 0 18px;
}

.woocommerce-notices-wrapper .woocommerce-message .button {
    white-space: nowrap;
    padding: 0 16px;
    max-width: fit-content;
}

/* YITH Request a Quote: secondary button under Add to cart. Colors come from the YITH setting (ywraq_add_to_quote_button_color). */
.single-product .summary .yith-ywraq-add-to-quote .add-request-quote-button.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 0 30px;
    margin: 0;
    border-radius: 40px;
    font-family: Evolventa-Bold, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    transition: 0.3s;
}

/* ==========================================================================
   YITH Request a Quote page (/quote-request/ + translations)
   Matches the cart page and the old Gravity Forms quote layout. Values come
   from assets/sass/base/_variables.scss.
   ========================================================================== */
.section-shortcodes .ywraq-wrapper {
    padding-bottom: 100px;
}

.section-shortcodes .section-heading {
    margin-top: 50px;
    margin-bottom: 25px;
}

.section-shortcodes .section-heading h2 {
    margin-bottom: 0;
}

/* Return to shop: plain back link, like the cart's .back-to-cart */
.ywraq-wrapper .yith-ywraq-before-table {
    margin-bottom: 20px;
}

.ywraq-wrapper a.yith-ywraq-before-table-wc-backward.button {
    display: inline-block;
    padding: 0;
    margin: 0;
    background: none !important;
    border: 0;
    color: #111 !important;
    font-family: Evolventa-Bold, sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.7px;
}

.ywraq-wrapper a.yith-ywraq-before-table-wc-backward.button::before {
    content: "\2039";
    margin-right: 8px;
}

.ywraq-wrapper a.yith-ywraq-before-table-wc-backward.button:hover {
    color: #C49239 !important;
}

/* Layout: product card left, form card right */
.ywraq-wrapper .ywraq-form-table-wrapper.wide {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.ywraq-wrapper .ywraq-form-table-wrapper.wide #yith-ywraq-form {
    flex: 1;
    min-width: 0;
    width: auto;
}

.ywraq-wrapper .ywraq-form-table-wrapper.wide .yith-ywraq-mail-form-wrapper {
    flex: 0 0 469px;
    width: 469px;
    max-width: 100%;
    margin: 0;
}

@media screen and (max-width: 1199px) {
    .ywraq-wrapper .ywraq-form-table-wrapper.wide {
        flex-direction: column;
        gap: 30px;
    }

    .ywraq-wrapper .ywraq-form-table-wrapper.wide #yith-ywraq-form,
    .ywraq-wrapper .ywraq-form-table-wrapper.wide .yith-ywraq-mail-form-wrapper {
        flex: none;
        width: 100%;
    }
}

/* Cards */
.ywraq-wrapper #yith-ywraq-form,
.ywraq-wrapper .yith-ywraq-mail-form-wrapper {
    background: #fff;
    border: 0;
    border-radius: 2px;
    padding: 30px;
    box-sizing: border-box;
}

/* Product list */
.ywraq-wrapper #yith-ywrq-table-list {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: none;
}

.ywraq-wrapper #yith-ywrq-table-list thead {
    display: none;
}

.ywraq-wrapper #yith-ywrq-table-list tr.cart_item {
    border-bottom: 1px solid #DFDFDF;
}

.ywraq-wrapper #yith-ywrq-table-list tr.cart_item:last-child {
    border-bottom: 0;
}

.ywraq-wrapper #yith-ywrq-table-list td {
    padding: 20px 10px;
    border: 0;
    background: none;
    vertical-align: middle;
}

.ywraq-wrapper #yith-ywrq-table-list tr.cart_item:first-child td {
    padding-top: 0;
}

.ywraq-wrapper #yith-ywrq-table-list td.product-remove {
    width: 20px;
    padding-left: 0;
}

.ywraq-wrapper #yith-ywrq-table-list td.product-remove a.remove {
    color: #111 !important;
    background: none !important;
    font-size: 22px;
    line-height: 1;
}

.ywraq-wrapper #yith-ywrq-table-list td.product-remove a.remove:hover {
    color: #C49239 !important;
}

.ywraq-wrapper #yith-ywrq-table-list td.product-thumbnail {
    width: 100px;
}

.ywraq-wrapper #yith-ywrq-table-list td.product-thumbnail img {
    display: block;
    width: 100px;
    max-width: 100px;
    height: auto;
}

.ywraq-wrapper #yith-ywrq-table-list td.product-name > a {
    color: #111;
    font-family: Evolventa-Bold, sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.ywraq-wrapper #yith-ywrq-table-list td.product-name > a:hover {
    color: #C49239;
}

.ywraq-wrapper #yith-ywrq-table-list td.product-name br {
    display: none;
}

.ywraq-wrapper #yith-ywrq-table-list td.product-name ul {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    color: #808080;
    font-size: 14px;
    line-height: 1.5;
}

.ywraq-wrapper #yith-ywrq-table-list td.product-name ul li {
    margin: 0;
}

.ywraq-wrapper #yith-ywrq-table-list td.product-quantity {
    width: 60px;
    padding-right: 0;
    text-align: right;
}

.ywraq-wrapper #yith-ywrq-table-list td.product-quantity input.qty {
    width: 60px;
    height: 40px;
    padding: 0 5px;
    border: 2px solid #DFDFDF;
    border-radius: 2px;
    background: #fff;
    text-align: center;
}

/* Update List: secondary pill button, same style as the product page quote button */
.ywraq-wrapper .update-list-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #DFDFDF;
}

.ywraq-wrapper .update-list-wrapper input.button[name="update_raq"] {
    height: 40px;
    padding: 0 20px;
    margin: 0;
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 40px;
    font-family: Evolventa-Bold, sans-serif;
    font-size: 14px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: 0.3s;
}

.ywraq-wrapper .update-list-wrapper input.button[name="update_raq"]:hover {
    background: #000 !important;
    color: #fff !important;
}

/* Form card */
.ywraq-wrapper .yith-ywraq-mail-form-wrapper h3 {
    margin: 0 0 20px;
    font-family: Evolventa-Bold, sans-serif;
    font-size: 18px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.ywraq-wrapper #yith-ywraq-default-form .form-row {
    width: 100%;
    margin: 0 0 15px;
    padding: 0;
}

.ywraq-wrapper #yith-ywraq-default-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.ywraq-wrapper #yith-ywraq-default-form label .required {
    color: #C49239;
    text-decoration: none;
}

.ywraq-wrapper #yith-ywraq-default-form input.input-text,
.ywraq-wrapper #yith-ywraq-default-form textarea {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    background: #fff;
    border: 2px solid #DFDFDF;
    border-radius: 2px;
    box-shadow: none;
    box-sizing: border-box;
}

.ywraq-wrapper #yith-ywraq-default-form textarea {
    height: 140px !important; /* theme forces textarea height */
    min-height: 140px !important;
    padding: 12px 15px;
    resize: vertical;
}

.ywraq-wrapper #yith-ywraq-default-form input.input-text:focus,
.ywraq-wrapper #yith-ywraq-default-form textarea:focus {
    border-color: #C49239;
    outline: none;
}

/* Send button: gold pill, same as Add to cart */
.ywraq-wrapper #yith-ywraq-default-form .raq-send-request-row {
    margin: 10px 0 0;
}

.ywraq-wrapper #yith-ywraq-default-form input.raq-send-request {
    width: 100%;
    height: 50px;
    padding: 0 30px;
    margin: 0;
    background: #C49239 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 40px;
    opacity: 1;
    font-family: Evolventa-Bold, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.ywraq-wrapper #yith-ywraq-default-form input.raq-send-request:hover {
    background: var(--button-hover-background-color, #c47d03) !important;
}

/* Sent confirmation and empty list */
/* YITH always prints an empty .ywraq-question-message; only show the card for real messages */
.ywraq-wrapper #yith-ywraq-message:has(> :not(.ywraq-question-message)),
.ywraq-wrapper.ywraq-empty .ywraq-form-table-wrapper {
    display: block;
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 30px;
    background: #fff;
    border-radius: 2px;
    text-align: center;
}

.ywraq-wrapper .ywraq_list_empty_message {
    margin: 0 0 20px;
}

.ywraq-wrapper.ywraq-empty .return-to-shop a.button,
.ywraq-wrapper #yith-ywraq-message a.button {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 30px;
    background: #C49239 !important;
    color: #fff !important;
    border: 0;
    border-radius: 40px;
    font-family: Evolventa-Bold, sans-serif;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

@media screen and (max-width: 767px) {
    .ywraq-wrapper #yith-ywraq-form,
    .ywraq-wrapper .yith-ywraq-mail-form-wrapper {
        padding: 20px;
    }

    .ywraq-wrapper #yith-ywrq-table-list td {
        padding: 15px 5px;
    }

    .ywraq-wrapper #yith-ywrq-table-list td.product-thumbnail,
    .ywraq-wrapper #yith-ywrq-table-list td.product-thumbnail img {
        width: 60px;
        max-width: 60px;
    }

    .ywraq-wrapper #yith-ywrq-table-list td.product-name > a {
        font-size: 14px;
    }

    .ywraq-wrapper #yith-ywrq-table-list td.product-name ul {
        font-size: 12px;
    }

    .ywraq-wrapper #yith-ywrq-table-list td.product-quantity,
    .ywraq-wrapper #yith-ywrq-table-list td.product-quantity input.qty {
        width: 44px;
    }
}

/* Empty list / after sending: centre the message and the Return to Shop button */
.ywraq-wrapper.ywraq-empty .ywraq-before-form {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: center;
}

.ywraq-wrapper.ywraq-empty .return-to-shop {
    margin: 0;
}

.ywraq-wrapper.ywraq-empty .return-to-shop a.button {
    justify-content: center;
    white-space: nowrap;
    display: inline-flex !important;
    width: auto !important; /* theme caps .wc-backward at 200px */
    max-width: none !important;
}
