/*
Theme Name: Riode Child
Theme URI: https://riode.org/
Author: D-THEMES
Author URI: https://riode.org/about-me/
Description: Riode Responsive WordPress + eCommerce Theme.
Version: 2.0.4
Template: riode
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

:root {
    --rio-primary-color: #b7ba00;
    --rio-menu-skin1-ancestor-active-color: #b7ba00;
    --db-white: #FFFFFF;
    --db-accent: #B7BA00;
    --db-accent-dark: #9a9c00;
    --db-text: #002435;
    --db-text-muted: #3a5a6a;
    --db-border: #d4d6a0;
    --db-bg-light: #f5f5e8;
    --db-bg-panel: #fafafa;
    --db-toggle-off: #c5c8a0;
    --db-toggle-on: #B7BA00;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}
.custom-header {
    z-index: 999;
}
header:has(.riode-hb-cart-container .opened) .currency-switcher-block,
header:has(.riode-hb-cart-container .opened) .languages-switcher-block {
	opacity: 0;
}
ul.products li .price > span > .amount,
ul.products li .price > span > ins,
ul.products li .price > span > del,
.minipopup-area .price > span > del,
.minipopup-area .price > span > ins,
.minipopup-area .price > span > .amount,
.currency-switcher-block .dd-selected {
    font-size: 14px;
}
.currency-switcher-block-mobile .dd-selected,
.currency-switcher-block-mobile .dd-option-text,
ul.products li .price > span small .amount,
.minipopup-area .price > span small .amount {
    font-size: 16px;
}

/* Style Currency Switcher */
.currency-switcher-block .dd-container {
	position: relative;	
}
.currency-switcher-block .dd-select {
	background: transparent !important;
	border-radius: 0;
    border: 0;
}
.currency-switcher-block .dd-selected {
	color: #fff !important;
	padding: 0 !important;
}
.currency-switcher-block-mobile .dd-selected {
	color: #000 !important;
}
.currency-switcher-block .dd-selected-text, 
.currency-switcher-block .dd-option-text {
	cursor: pointer;
}
.currency-switcher-block .dd-pointer,
.archive:has(.toolbox-pagination) .main-content > .woocommerce-result-count,
.woocommerce-checkout .sticky-sidebar-wrapper,
.currency-switcher-block .dd-options li:has(.dd-option-selected) {
	display: none;	
}
.currency-switcher-block .dd-selected:hover, 
.currency-switcher-block .dd-selected:focus, 
.currency-switcher-block .dd-option:hover, 
.currency-switcher-block .dd-option:focus {
    color: var(--rio-header-link-active-color, var(--rio-primary-color, #27c)) !important;
}
.currency-switcher-block .dd-selected::after {
    position: static;
    font-family: var(--fa-style-family-classic, "Font Awesome 6 Free");
    font-size: .8em;
    content:"";
	margin-left: 8px;
	transform: rotate(90deg);
}
.currency-switcher-block .dd-options,
.gt_float_switcher .gt_options {
	display: block !important;
	position: absolute;
    top: -9999px;
    margin: 0;
    box-shadow: 0 2px 22px rgba(0, 0, 0, 0.1);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: transform 0.2s ease-out;
    transform: translate3d(0, -10px, 0);
	border: 0;
    will-change: transform, top;
    -webkit-backface-visibility: hidden;
}
.currency-switcher-block .dd-container:hover > ul,
.languages-switcher-block .gt_float_switcher:hover > .gt_options {
	top: 100%;
	visibility: visible;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.currency-switcher-block .dd-option {
	border-bottom: 0;
}
.currency-switcher-block .dd-options li a {
	color: #666;
    font-weight: 400;
    line-height: 1.1;
}
.sticky-content-wrapper:has(.header-middle) {
    position: relative;
    z-index: 1;
}

/* Style Languages Switcher */
.languages-switcher-block, 
.currency-switcher-block {
	transition: opacity .3s linear;	
}
.languages-switcher-block .gt_float_switcher {
    display: block;
	max-height: 25px;
    font-size: 0;
    background: transparent;
	box-shadow: none;
	line-height: 0;
	overflow: visible;
}
.languages-switcher-block .gt_float_switcher .gt-selected {
    background-color: transparent;
}
.languages-switcher-block .gt_float_switcher .gt-selected .gt-current-lang {
    padding: 0;
}
.languages-switcher-block .gt_float_switcher img {
    border-radius: 2px;
    width: 22px;
	margin-right: 0;
	box-shadow: 0 0 15px -4px #000000a3;
}
.languages-switcher-block .gt_float_switcher .gt-selected img {
	margin-right: 8px;
}
.languages-switcher-block-mobile .gt_float_switcher img {
    width: 26px;
    box-shadow: none;
    border: 1px solid #0000000f;
}
.gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 285 285'%3E%3Cpath fill='%23ffffff' stroke='%23ffffff' stroke-width='12' d='M282 76.5l-14.2-14.3a9 9 0 0 0-13.1 0L142.5 174.4 30.3 62.2a9 9 0 0 0-13.2 0L3 76.5a9 9 0 0 0 0 13.1l133 133a9 9 0 0 0 13.1 0l133-133a9 9 0 0 0 0-13z'/%3E%3C/svg%3E") !important;
	transform: rotate(0) !important;
	margin-top: 2px;
}
.languages-switcher-block-mobile .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 285 285'%3E%3Cpath fill='%23000000' stroke='%23000000' stroke-width='12' d='M282 76.5l-14.2-14.3a9 9 0 0 0-13.1 0L142.5 174.4 30.3 62.2a9 9 0 0 0-13.2 0L3 76.5a9 9 0 0 0 0 13.1l133 133a9 9 0 0 0 13.1 0l133-133a9 9 0 0 0 0-13z'/%3E%3C/svg%3E") !important;
}
.gt_float_switcher .gt_options {
    background-color: #fff;
}
.gt_float_switcher .gt_options a {
    padding: 7px 10px !important;
}
.gt_float_switcher .gt_options a:hover {
    background: transparent !important;
}
.woocommerce-checkout .col-lg-8 {
    max-width: 100%;
    flex: 0 0 100%;
}
.archive .product-archive + .woocommerce-result-count {
    margin-top: 30px;
}
.riode-hb-cart-container .amount bdi::before,
.single .price > span > .amount::before,
.single .price > span > ins::before,
.mfp-content .price > span > .amount::before,
.mfp-content .price > span > ins::before {
    content: "\00a0";
}
.shop_table .product-add-to-cart .button {
    width: auto;
}
.dropdown.toggle-menu .dropdown-box, 
.dropdown.toggle-menu:hover .dropdown-box, 
.dropdown.show .dropdown-box {
    top: 100% !important;
    box-shadow: 0 2px 22px rgba(0, 0, 0, 0.1) !important;
}
.toggle-menu.has-border.show:after {
    display: none;
}
ul.products li .price > span,
.minipopup-area .price > span,
.single .price > span,
.mfp-content .price > span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
ul.products li .price > span {
    justify-content: center;
}
ul.products li .price > span > .amount,
.minipopup-area .price > span > .amount,
ul.products li .price > span > small {
    width: 100%;
}
ul.products li .price > span > small,
.minipopup-area .price > span > small,
.single .price > span > small,
.mfp-content .price > span > small {
    order: -1;
}
ul.products li .price > span > ins::after,
ul.products li .price > span > .amount::after,
.minipopup-area .price > span > ins::after,
.minipopup-area .price > span > .amount::after,
.single .price > span > .amount::after,
.single .price > span > ins::after,
.mfp-content .price > span > .amount::after,
.mfp-content .price > span > ins::after {
    content: " netto";
}
.minipopup-area .price > span > ins::after,
.minipopup-area .price > span > .amount::after {
    font-size: 11px;
}
.single .price > span > small bdi,
.mfp-content .price > span > small bdi {
    font-size: 30px;
}
.single .price > span > .amount,
.single .price > span > ins,
.single .price > span > del,
.single .price > span > small bdi span,
.mfp-content .price > span > .amount,
.mfp-content .price > span > ins,
.mfp-content .price > span > del,
.mfp-content .price > span > small bdi span {
    font-size: 24px;
}
.block-pv .riode-wpb-banner-container figure::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #B7BA00a8;
    z-index: 1;
}
.block-hvac .riode-wpb-banner-container figure::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #222222a8;
    z-index: 1;
}
footer {
    background-color: #002435 !important;
}
button.btn-product,
.mfp-content button.button,
.single button.button,
footer button {
    color: #222 !important;
}
.footer input.wpcf7-form-control {
    background: transparent !important;
    border: 1px solid #fff !important;
}
.wpcf7-not-valid-tip {
    font-size: 12px;
    margin-top: 3px !important;
    line-height: 1.35;
}
.wpcf7-response-output {
    border-width: 0 !important;
    border-left-width: 3px !important;
    margin: 0 !important;
    margin-top: 15px !important;
    line-height: 1.6;
    font-size: 13px !important;
    padding: 0 !important;
    padding-left: 12px !important;
}

/* ── MAIN BANNER ── */
#wrapper-cookie-consent-block {
    position: fixed;
    bottom: 5px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity .4s linear;
}
#cookie-banner {
    background: var(--db-white);
    color: var(--db-text);
    border-top: 3px solid var(--db-accent);
    border-radius: 12px 12px 0 0;
    padding: 24px 28px 20px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 -4px 24px rgba(0,36,53,0.10);
    position: relative;
}
.banner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.cookie-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.banner-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--db-text);
    letter-spacing: 0.01em;
}
.banner-text {
    font-size: 13px;
    line-height: 1.65;
    color: var(--db-text-muted);
    margin-bottom: 18px;
}
.banner-text a {
    color: var(--db-accent-dark);
    font-weight: 600;
    text-decoration: none;
}
.banner-text a:hover { 
    text-decoration: underline; 
}
.banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.btn {
    padding: 9px 20px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.btn-accept-all {
    background: var(--db-accent);
    color: var(--db-white);
    border-color: var(--db-accent);
}
.btn-accept-all:hover { 
    background: var(--db-accent-dark);
    border-color: var(--db-accent-dark); 
}
.btn-necessary-only {
    background: var(--db-white);
    color: var(--db-text);
    border-color: var(--db-text);
}
.btn-necessary-only:hover { 
    background: var(--db-bg-light); 
}
.btn-settings {
    background: transparent;
    color: var(--db-text-muted);
    border-color: var(--db-border);
}
.btn-settings:hover { 
    background: var(--db-bg-light); 
    color: var(--db-text); 
    border-color: var(--db-accent); 
}

/* ── SETTINGS PANEL ── */
#cookie-settings {
    background: var(--db-white);
    color: var(--db-text);
    border-top: 3px solid var(--db-accent);
    border-radius: 12px 12px 0 0;
    max-width: 820px;
    width: 100%;
    display: none;
    box-shadow: 0 -4px 24px rgba(0,36,53,0.10);
}
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 16px;
    border-bottom: 1px solid var(--db-border);
}
.settings-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--db-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--db-text-muted);
    font-size: 22px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.1s;
}
.btn-close:hover { 
    background: var(--db-bg-light); 
    color: var(--db-text); 
}
.settings-body {
    padding: 0 28px;
    max-height: 420px;
    overflow-y: auto;
}
.cookie-category {
    border-bottom: 1px solid var(--db-border);
    padding: 18px 0;
}
.cookie-category:last-child { 
    border-bottom: none; 
}
.category-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.category-info { 
    flex: 1; 
}
.category-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--db-text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge-required {
    font-size: 10px;
    font-weight: 700;
    background: var(--db-bg-light);
    color: var(--db-accent-dark);
    border: 1px solid var(--db-border);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.category-desc {
    font-size: 12px;
    line-height: 1.6;
    color: var(--db-text-muted);
}
.category-cookies {
    margin-top: 10px;
    display: none;
}
.category-cookies.open { 
    display: block; 
}
.toggle-details {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    color: var(--db-accent-dark);
    font-weight: 600;
    margin-top: 6px;
    padding: 0;
    text-decoration: underline;
}
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-top: 8px;
}
.cookie-table th {
    background: var(--db-bg-light);
    color: var(--db-text);
    font-weight: 700;
    text-align: left;
    padding: 5px 8px;
    border: 1px solid var(--db-border);
}
.cookie-table td {
    padding: 5px 8px;
    border: 1px solid var(--db-border);
    color: var(--db-text-muted);
    vertical-align: top;
}
.cookie-table tr:nth-child(even) td { 
    background: var(--db-bg-panel); 
}

/* Toggle switch */
.toggle-wrap { 
    flex-shrink: 0; padding-top: 2px; 
}
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    display: block;
}
.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--db-toggle-off);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.toggle-slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,36,53,0.2);
}
.toggle input:checked + .toggle-slider { 
    background: var(--db-toggle-on); 
}
.toggle input:checked + .toggle-slider:before { 
    transform: translateX(20px); 
}
.toggle input:disabled + .toggle-slider { 
    opacity: 0.5; cursor: not-allowed; 
}
.settings-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 28px 20px;
    border-top: 1px solid var(--db-border);
    justify-content: flex-end;
}

/* ── CONFIRMED STATE ── */
#cookie-confirmed {
    display: none;
    background: var(--db-white);
    border-top: 3px solid var(--db-accent);
    border-radius: 12px 12px 0 0;
    max-width: 820px;
    width: 100%;
    padding: 16px 28px;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -4px 24px rgba(0,36,53,0.10);
}
.confirmed-text {
    font-size: 13px;
    color: var(--db-text-muted);
    flex: 1;
}
.confirmed-text strong { 
    color: var(--db-text); 
}
.btn-reopen {
    font-size: 12px;
    padding: 6px 14px;
    background: var(--db-white);
    color: var(--db-text-muted);
    border: 1px solid var(--db-border);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.12s;
}
.btn-reopen:hover { 
    background: var(--db-bg-light); 
}

/* ── FLOATING TRIGGER (shown after accept) ── */
#cookie-fab {
    display: none;
    position: fixed;
    bottom: 25px;
    left: 20px;
    background: var(--db-accent);
    color: var(--db-white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,36,53,0.18);
    font-size: 22px;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: background 0.15s;
}
#cookie-fab:hover {
    background: var(--db-accent-dark); 
}
.woocommerce-checkout .woocommerce-checkout-payment .payment_method_payustandard img {
    display: none;
}
.woocommerce-checkout .woocommerce-checkout-payment div.payment_method_payustandard {
    padding-left: 0;
}
.woocommerce-checkout .woocommerce-error li {
    padding: 8px 15px;
}
.woocommerce-checkout .woocommerce-error li i {
    margin-right: 7px;
}
.woocommerce-checkout .woocommerce-error li strong {
    text-transform: none;
}
.woocommerce-checkout .woocommerce-error li .btn-close {
    top: 13px;
}
.woocommerce-checkout .checkout-inline-error-message {
    color: var(--rio-alert-color);
}

@media (max-width: 500px) {

    .riode-logo-container {
        max-width: 120px;
    }
    .riode-logo-container img {
        max-width: 120px;
    }

}

@media (max-width: 600px) {

    #cookie-banner, 
    #cookie-settings, 
    #cookie-confirmed { 
        border-radius: 0; 
    }
    .banner-actions { 
        flex-direction: column; 
    }
    footer .btn,
    .popup .btn { 
        width: 100%; 
        text-align: center; 
    }
    .settings-footer { 
        flex-direction: column; 
    }
    .settings-footer .btn { 
        width: 100%; 
        text-align: center; 
    }
    .riode-wpb-banner-container .wpcf7-submit,
    footer .wpcf7-submit {
        margin-top: 10px;
    }
    footer .wpcf7-submit {
        margin-left: 0 !important;
    }

}

@media (max-width: 767px) {

    .newsletter-info {
        justify-content: center !important;
        text-align: center !important;
        padding: 20px 0;
    }
    #cookie-fab {
        bottom: 10px;
    }

}

@media (min-width: 768px) and (max-width: 920px) {

    .riode-logo-container {
        max-width: 130px;
    }
    .riode-logo-container img {
        max-width: 130px;
    }

}

@media (min-width: 768px) and (max-width: 1280px) {
    
    footer .wpcf7-email,
    footer .wpcf7-submit {
       display: block;
       width: 100%;
    }
    footer .wpcf7-submit {
        margin-top: 10px;
        margin-left: 0 !important;
    }

}

@media (min-width: 992px) {

    header .menu li a {
        max-width: 78px;
        white-space: normal;
        font-size: 13px !important;
    }

}

@media (min-width: 1080px) {

    header .menu li a {
        max-width: 110px;
        font-size: 14px !important;
    }

}

@media (min-width: 1135px) {

    header .menu li a {
        max-width: none;
        white-space: nowrap;
    }

}
