/*
*menu hoverlay
*/

.openBtn {
    background: #f1f1f1;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
}

.openBtn:hover {
    background: #bbb;
}

.overlay-search {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    z-index: 99999999;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.85);
}

.overlay-content {
    position: relative;
    top: 46%;
    width: 80%;
    text-align: center;
    margin-top: 30px;
    margin: auto;
}

.overlay-search .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    cursor: pointer;
    color: white;
}

.overlay-search .closebtn:hover {
    color: #ccc;
}

.overlay-search input[type=text] {
    padding: 15px;
    font-size: 17px;
    border: none;
    float: left;
    /*width: 80%;*/
    background: white;
}

.overlay-search input[type=text]:hover {
    background: #f1f1f1;
}

.overlay-search input[type=submit] {
    float: left;
    /*width: 20%;*/
    /*padding: 15px;
  background: #ddd;
  font-size: 17px;*/
    border: none;
    cursor: pointer;
}

.overlay-search button:hover {
    background: #bbb;
}

.topbar-22 {
    background: #315B9D;
}

.topbar-22 a,
.topbar-22 span {
    color: #FFFFFF !important;
    text-decoration: none;
}

.navbar,
.topbar-22 {
    padding: 8px 16px;
}

nav.navbar {
    box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
    background-color: whitesmoke;
}

/* 
* aff-side-cat-list
*/
.menu-23 {
    padding: 0px !important;
    display: flex;
    flex-direction: column;
    background-color: whitesmoke;
    box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
}

ul.menu-23,
.menu-23 li {
    list-style-type: none;
    margin: 0;
    padding: 0 !important;
}

ul.menu-23 {
    padding: 8px !important;
}

.menu-23 a {
    font-family: Roboto;
    font-weight: 200;
    text-transform: capitalize !important;
    text-decoration: none !important;
    cursor: pointer;
    color: #0B335E !important;
    margin-left: 8px;
}

.menu-23 .children {
    display: none;
    padding: 0px;
}

.menu-23 .show-23>.children {
    display: block;
    padding-left: 0px;
    background: rgb(239 239 239);
    /*background: linear-gradient(180deg, rgba(244,244,244,1) 0%, rgba(255,255,255,0) 100%);*/
}

.menu-23 .show-23>.children>.cat-item>.children {
    background: rgb(233 233 233);
    /*background: linear-gradient(180deg, rgba(244,244,244,1) 0%, rgba(255,255,255,0) 100%);*/
}

.hasChildren>.expand-23>.icon-544::after {
    content: "+";
}

.hasChildren.show-23>.expand-23>.icon-544::after {
    content: "-";
}

.expand-23 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
}

.icon-544 {
    font-size: 14px;
    height: 32px;
    width: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0px;
    color: #007bff;
    background-color: transparent;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    text-decoration: none;
}

.hasChildren>.expand-23>.icon-544 {
    border: 1px solid #0B335E !important;
}

.hasChildren.show-23>.expand-23>.icon-544 {
    background-color: rgba(11, 51, 94, 0.1);
    border-color: #0B335E !important
}

.icon-544:hover {
    background-color: rgba(11, 51, 94, 0.1);
    color: #0B335E !important;
    border-color: #0B335E !important;
    text-decoration: none;
}

/* menu */

.container-22 {
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    gap: 32px;
}

.wrapper-22 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    gap: 16px;
    flex: 1;
    width: 100%;
}

.container-22 .navbar-brand {
    display: flex;
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0;
    font-size: 1rem;
    line-height: inherit;
    white-space: nowrap;
}

.collapse.show .menu-22 {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.menu-22 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.menu-22 .wrap-22 {
    background: #E5E5E5;
    background: -webkit-radial-gradient(top, #E5E5E5, #FFFFFF);
    background: -moz-radial-gradient(top, #E5E5E5, #FFFFFF);
    background: radial-gradient(to bottom, #E5E5E5, #FFFFFF);
}


.menu-22 a {
    color: #0B335E !important;
    font-size: 14px;
    font-family: Roboto;
    text-transform: capitalize !important;
    text-decoration: none !important;
    cursor: pointer;
}

.menu-22 ul {
    list-style-type: none;
    padding: 0px !important;
    margin: 0px !important;
}

.menu-22 .menu-item {
    padding: 8px;
}

.menu-22 .menu-item:hover>a,
.menu-22 .sub-menu>.menu-item:hover>a,
.menu-22 .sub-menu>.cat-item:hover>a,
.menu-22 .sub-menu .children>.cat-item:hover>a {
    color: #000 !important;
    /*  box-shadow: inset 0px 0px 0px 1px #0B335E;*/
}

.menu-22 .menu-item-has-children {
    position: unset !important;
}

.menu-22 .sub-menu>.cat-item>a,
.menu-22 .sub-menu>.menu-item>a {
    font-size: 14px !important;
    /*font-weight:200;*/
}

.menu-22 .sub-menu>.cat-item .children a,
.menu-22 .sub-menu>.menu-item .children a {
    color: grey !important;
    font-size: 12px !important;
    /*font-weight:200;*/
}

.menu-22 .children,
.menu-22 .children .cat-item {
    display: grid;
    gap: 16px;
}

.menu-22 .sub-menu>.cat-item {
    display: grid;
    align-content: start;
    gap: 32px;
}

.wrap-22 {
    display: none;
    position: absolute;
    width: 100%;
    background-color: #fff;
    padding: 32px;
    float: none;
    margin: 0;
    top: calc(100% + 0px);
    left: 0;
    z-index: 1000;
    box-shadow: 0px 8px 8px rgb(0 0 0 / 10%);
}

.menu-item.show-22 .wrap-22 {
    display: block;
    animation-name: menu;
    animation-duration: .3s;
}

@keyframes menu {
    from {
        transform: translate(0px, 16px);
        opacity: 0;
    }

    to {
        transform: translate(0px, 0px);
        opacity: 1;
    }
}


.menu-22 .show-22 .sub-menu,
.menu-22 .show-22:hover .sub-menu {
    position: relative !important;
    /*max-width: 1400px;*/
    max-width: fit-content;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: auto auto auto auto auto;
    gap: 32px;
    background: unset;
    border: unset;
}

.hamburguer-22 {
    display: none;
    border: 0px;
    padding: 8px;
    width: 48px;
    height: 48px;

    justify-content: center;
    align-items: center;
}

.menu-item-has-children>a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.menu-22 a::after {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    width: 8px;
    height: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0px;
    line-height: normal;
}

/*
.menu-22 > .menu-item-has-children > a::after{font-family: "Font Awesome 5 Free"; font-weight: 800; content: "\f067";}
.menu-22 > .menu-item-has-children.show-22 > a::after{font-family: "Font Awesome 5 Free"; font-weight: 800; content: "\f068";}
*/

.menu-22>.menu-item-has-children>a::after {
    font-family: "Roboto";
    font-weight: 400;
    content: "\002B";
}

.menu-22>.menu-item-has-children.show-22>a::after {
    font-family: "Roboto";
    font-weight: 400;
    content: "\2212";
}

/* desporto */
.menu-22 .cat-item-253 ul {
    grid-template-columns: auto auto;
    column-gap: 16px;
}

/* .menu-22 .map-22 a, */
.menu-22 .portfolio-431,
.menu-22 .menu-item-7292 {
    display: none;
}

/*
.wrap-22:before{content:""; width:100%; height:1px; position:absolute; left:0px; top:0px; background-color:#0B335E;}
*/
#menu-item-4335 .ul-435 {
    grid-template-columns: auto auto auto auto auto;
}

#menu-item-4335 .last-search-22 {
    grid-row: 1;
    grid-column: 5;
}

#menu-item-4335 .last-search-22 img {
    height: 256px;
    width: 256px;
    object-fit: cover;
}

#menu-item-4335 .wrapper-534 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: white;
    box-shadow: 8px 8px 16px rgb(0 0 0 / 25%);
    width: 256px;
}

#btn-search,
#btn-quote {
    display: none;
    color: #315B9D;
}

.wrapper-side-menu-22 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    gap: 16px;
}

.hide-item {
    display: none;
}

/* 07-01-25 */

body.single-product .single_add_to_cart_button.button.alt:not(#btn-883) {
    background: rgba(11, 51, 94, 0.1) !important;
    text-transform: unset;
    color: #0B335E !important;
}

body.single-product .single_add_to_cart_button.button.alt:not(#btn-883):hover {
    color: #000 !important;
}

body.single-product #btn-883 {
    text-transform: unset;
}


.site-logo {
    max-height: 64px !important;
}

.wpcf7-form.init p {
    margin-bottom: 0px !important;
}

.footer-pagination-22 {
    margin-bottom: 32px;
}

.single-projecto .footer-pagination-22 {
    margin-bottom: 0px !important;
}

.footer-pagination-22 .btn-outline-primary {
    color: #0B335E !important;
    border-color: #0B335E !important;
}

.footer-pagination-22 .btn-outline-primary:hover {
    background-color: rgba(11, 51, 94, 0.1);
}

@media only screen and (max-width: 1280px) {
    .site-logo {
        max-height: 32px !important;
    }

    .menu-22 a {
        font-size: 12px;
    }
}

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

    .menu-item:hover,
    .menu-item:active {
        background: rgba(11, 51, 94, 0.1);
        /*border-radius: 4px;*/
    }
}

@media only screen and (max-width: 1024px) {
    .hamburguer-22 {
        display: flex;
    }

    .container-22 .search-22 {
        display: none !important;
    }

    #btn-search,
    #btn-quote {
        display: flex;
    }

    .menu-22 a {
        font-size: 14px;
    }

    .menu-22 .show-22 .sub-menu,
    .menu-22 .show-22:hover .sub-menu {
        max-width: 100%;
    }

    .menu-22 .menu-item:hover {
        /*color:#007bff !important;*/
        box-shadow: inset 0px 0px 0px 0px #0B335E;
    }

    #site-navigation .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hamburguer-22 {
        display: block;
        align-self: center;
        justify-self: self-end;
    }

    .wrapper-22 {
        display: none !important;
        gap: 16px;
    }

    /* to delete */
    .menu-22 {
        display: none !important;
    }

    .navbar .container-22 {
        justify-content: space-between !important;
    }

    .menu-primary-container {
        grid-column: span 2;
    }

    #site-navigation.toggled .wrapper-22 {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        position: absolute;
        top: calc(100% + 0px);
        left: 0px;
        z-index: 9999;
        background-color: #fff;
        padding: 16px;
        width: 100%;
        margin: 0px;
    }

    #site-navigation.toggled .menu-22 {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }

    .menu-item-has-children.show-22 {
        gap: 24px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .menu-item.show-22 .wrap-22 {
        position: relative;
        padding: 0px;
        box-shadow: unset;
        background: unset;
        /*border: solid 1px #315B9D;*/
        padding: 8px;
    }

    .menu-item.show-22 .wrap-22>.sub-menu {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /*
	.menu-22 .menu-item .sub-menu .menu-item, .menu-22 .menu-item .sub-menu .cat-item {padding:0px; margin: 0px 0px 0px 1rem; list-style-type: square;}
	*/
    .menu-22 .sub-menu>.cat-item>a,
    .menu-22 .sub-menu>.menu-item>a {
        color: grey !important;
        font-size: 12px !important;
        font-weight: unset;
    }

    .menu-22 .cat-item {
        padding: 8px;
    }

    .menu-22 .map-22 a {
        display: block;
    }

    .menu-22 .cat-item .children,
    .menu-22 .map-22 svg {
        display: none;
    }

    /* desporto */
    .menu-22 .cat-item-253 ul {
        grid-template-columns: unset;
        column-gap: unset;
    }

    #menu-item-4335 .last-search-22 {
        display: none !important;
    }

    #menu-item-4335 .last-search-22 {
        grid-row: 2;
        grid-column: 1;
    }

    #menu-item-4335 .ul-435 {
        grid-template-columns: 1fr;
    }

    @keyframes menu {
        from {
            transform: translate(-16px, 0px);
            opacity: 0;
        }

        to {
            transform: translate(0px, 0px);
            opacity: 1;
        }
    }
}

@media only screen and (max-width: 768px) {
    .time-22 {
        display: none;
    }

    .topbar-22 a {
        font-size: 12px;
    }

    body.single-product .single_add_to_cart_button.button.alt:not(#btn-883) {
        font-size: 0px;
    }

    body.single-product .single_add_to_cart_button.button.alt:not(#btn-883):after {
        content: 'Orçamento.';
        font-size: medium;
        margin: 0px 16px;
    }
}

/* Custom WooCommerce Checkout Fields Styling */
.woocommerce-billing-fields__field-wrapper .form-row label {
    display: none !important;
}

.woocommerce-billing-fields__field-wrapper .form-row#billing_aff_is_client_field label,
.woocommerce-billing-fields__field-wrapper .form-row#billing_aff_client_type_field label,
.woocommerce-billing-fields__field-wrapper .form-row#billing_aff_additional_info_field label {
    display: block !important;
}

.woocommerce-billing-fields__field-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.woocommerce-billing-fields__field-wrapper::after,
.woocommerce-billing-fields__field-wrapper::before {
    display: none !important;
    /* Remove clearfixes that break flexbox wrap */
}

.woocommerce-billing-fields__field-wrapper .form-row {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

/* Forçar larguras em qualquer tema usando seletores de alta especificidade */
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row-first,
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-billing-fields__field-wrapper .form-row-last,
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .col-md-6,
.woocommerce-billing-fields__field-wrapper .col-md-6,
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .aff-field-half,
.woocommerce-billing-fields__field-wrapper .aff-field-half,
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper #billing_email_field,
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper #billing_phone_field,
#billing_email_field,
#billing_phone_field {
    width: calc(50% - 7.5px) !important;
    flex: 0 0 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
    clear: none !important;
}

body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-billing-fields__field-wrapper .form-row-wide,
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .col-md-12,
.woocommerce-billing-fields__field-wrapper .col-md-12,
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .aff-field-wide,
.woocommerce-billing-fields__field-wrapper .aff-field-wide {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    clear: both !important;
}

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

    body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .col-md-6,
    .woocommerce-billing-fields__field-wrapper .col-md-6,
    body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .aff-field-half,
    .woocommerce-billing-fields__field-wrapper .aff-field-half,
    body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper #billing_email_field,
    body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper #billing_phone_field,
    #billing_email_field,
    #billing_phone_field {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Forçar os inputs e seus wrappers a ocupar a largura total do seu parent container */
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row .woocommerce-input-wrapper,
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row input:not([type="radio"]):not([type="checkbox"]),
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row select,
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row textarea,
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row .select2-container,
.woocommerce-billing-fields__field-wrapper .form-row .woocommerce-input-wrapper,
.woocommerce-billing-fields__field-wrapper .form-row input:not([type="radio"]):not([type="checkbox"]),
.woocommerce-billing-fields__field-wrapper .form-row select,
.woocommerce-billing-fields__field-wrapper .form-row textarea,
.woocommerce-billing-fields__field-wrapper .form-row .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.woocommerce-billing-fields__field-wrapper #billing_country_field {
    opacity: 0.7;
    pointer-events: none;
}

.hidden-field {
    display: none !important;
}

.aff-checkout-qty-input {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 4px;
    background: #fff;
    color: #333;
}

#billing_aff_is_client_field {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

#billing_aff_is_client_field>label {
    margin: 0 !important;
    display: inline-block !important;
    font-weight: 600;
}

body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper #billing_aff_is_client_field.form-row .woocommerce-input-wrapper,
#billing_aff_is_client_field .woocommerce-input-wrapper {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
}

#billing_aff_is_client_field .woocommerce-input-wrapper input[type="radio"] {
    margin: 0 0 0 5px !important;
    float: none !important;
    display: inline-block !important;
}

#billing_aff_is_client_field .woocommerce-input-wrapper label.radio {
    margin: 0 10px 0 0 !important;
    font-weight: normal !important;
    display: inline-block !important;
}

/* Hide default WooCommerce Additional Fields / Order Comments */
.woocommerce-additional-fields,
#order_comments_field {
    display: none !important;
}

/* NIF Autofill Highlight Animation */
@keyframes aff-autofill-flash {
    0% {
        background-color: rgba(46, 125, 50, 0.15) !important;
        border-color: #2e7d32 !important;
        box-shadow: 0 0 5px rgba(46, 125, 50, 0.4) !important;
    }

    100% {
        background-color: transparent;
        border-color: inherit;
        box-shadow: none;
    }
}

.aff-field-highlight {
    animation: aff-autofill-flash 1.5s ease-out;
}

/* Remover asterisco obrigatório ou opcional nos botões de rádio Sim e Não */
#billing_aff_is_client_field label.radio::after,
#billing_aff_is_client_field label.radio .required,
#billing_aff_is_client_field label.radio-inline::after,
#billing_aff_is_client_field label.radio-inline .required {
    content: none !important;
    display: none !important;
}

/* NIF Validation Loading Spinner */
#billing_aff_nif_field .woocommerce-input-wrapper {
    position: relative;
}

.aff-nif-spinner-wrap {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.aff-nif-spinner {
    width: 16px;
    height: 16px;
    color: #0b335e;
    /* Cor primária do tema */
    animation: aff-spin 1s linear infinite;
}

#billing_aff_nif_field .woocommerce-input-wrapper input {
    padding-right: 35px !important;
}

@keyframes aff-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   AI Assistant & Smart Search Styles
   ========================================================================== */

/* Smart Search Shortcode Container */
.aff-ai-search-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Roboto', sans-serif;
}

.aff-ai-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 30px;
    padding: 5px 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.aff-ai-search-bar:focus-within {
    border-color: #0b335e;
    box-shadow: 0 4px 15px rgba(11, 51, 94, 0.15);
}

.aff-ai-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 10px 15px !important;
    font-size: 16px !important;
    color: #333 !important;
    box-shadow: none !important;
}

.aff-ai-search-btn {
    background: #0b335e;
    border: none;
    outline: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aff-ai-search-btn:hover {
    background: #315b9d;
    transform: scale(1.05);
}

.aff-ai-search-btn .search-icon {
    width: 20px;
    height: 20px;
}

/* Search results under bar */
.aff-ai-search-results {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    animation: aff-fade-up 0.4s ease-out;
}

/* Chatbot Floating Wrapper & Position */
.aff-ai-chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    z-index: 999999;
    font-family: 'Roboto', sans-serif;
}

.aff-floating-right {
    right: 30px;
}

.aff-floating-left {
    left: 30px;
}

/* Floating Chat Bubble Button */
.aff-ai-chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b335e, #315b9d);
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(11, 51, 94, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.aff-ai-chat-bubble:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 25px rgba(11, 51, 94, 0.45);
}

.aff-ai-chat-bubble svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
    /*display: block !important;*/
    margin: 0 auto !important;
}

.aff-ai-chat-bubble .chat-bubble-open-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 100%;
}


.aff-ai-chat-bubble .chat-bubble-open-content svg.chat-bubble-icon {
    width: 32px;
    height: 32px;
    display: block;
    margin: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
}

.aff-ai-chat-bubble .chat-bubble-text {
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 !important;
    padding: 0 !important;
}

/* Pulsing effect around bubble */
.aff-ai-chat-bubble::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    top: 0;
    left: 0;
    box-shadow: 0 0 0 0 rgba(11, 51, 94, 0.4);
    animation: aff-pulse 2s infinite;
    pointer-events: none;
}

/* Close X icon inside bubble */
.aff-ai-chat-bubble .chat-close-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    display: none;
    /* hidden by default */
    color: #fff;
}






@keyframes aff-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(11, 51, 94, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(11, 51, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(11, 51, 94, 0);
    }
}

/* Chat Window Layout (Inline & Floating) */
.aff-ai-chat-window {
    width: 380px;
    height: 520px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.aff-ai-chat-floating {
    position: absolute;
    bottom: 80px;
    right: 0;
    animation: aff-slide-in 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    transform-origin: bottom right;
}

.aff-floating-left .aff-ai-chat-floating {
    left: 0;
    right: auto;
    transform-origin: bottom left;
}

@keyframes aff-slide-in {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Inline chatbot layout */
.aff-ai-chat-inline {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    height: 550px;
}

/* Chat Header */
.aff-ai-chat-header {
    background: linear-gradient(135deg, #0b335e, #16467d);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aff-ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aff-ai-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.aff-ai-chat-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.2 !important;
}

.aff-ai-chat-status {
    font-size: 11px;
    color: #a5d6a7;
    display: flex;
    align-items: center;
    gap: 5px;
}

.aff-ai-chat-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 5px #4caf50;
}

.aff-ai-chat-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.aff-ai-chat-close-btn:hover {
    color: #fff;
}

/* Messages Area */
.aff-ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(245, 247, 250, 0.5);
}

/* Chat bubble styling */
.aff-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: aff-fade-up 0.3s ease-out;
}

.aff-msg-user {
    align-self: flex-end;
}

.aff-msg-bot {
    align-self: flex-start;
}

.aff-msg-bubble {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.aff-msg-user .aff-msg-bubble {
    background: linear-gradient(135deg, #0b335e, #16467d);
    color: #fff;
    border-radius: 18px 18px 0 18px;
}

.aff-msg-bot .aff-msg-bubble {
    background: #fff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px 18px 18px 0;
}

/* Typing Indicator */
.aff-msg-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
}

.aff-msg-typing span {
    width: 6px;
    height: 6px;
    background-color: #666;
    border-radius: 50%;
    animation: aff-typing 1.4s infinite ease-in-out both;
}

.aff-msg-typing span:nth-child(1) {
    animation-delay: -0.32s;
}

.aff-msg-typing span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes aff-typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Chat Input Area */
.aff-ai-chat-input-area {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 10px 15px;
}

.aff-ai-chat-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    resize: none !important;
    height: 40px !important;
    font-size: 14px !important;
    padding: 10px !important;
    background: transparent !important;
    color: #333 !important;
    box-shadow: none !important;
}

.aff-ai-chat-send-btn {
    background: transparent;
    border: none;
    color: #0b335e;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.aff-ai-chat-send-btn:hover {
    color: #315b9d;
    transform: scale(1.1);
}

.aff-ai-chat-send-btn .send-icon {
    width: 20px;
    height: 20px;
}

/* Product Cards and Lists in Chat */
.aff-ai-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}

.aff-ai-card {
    display: flex;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 10px;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: inherit !important;
}

.aff-ai-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    border-color: rgba(11, 51, 94, 0.15);
}

.aff-ai-card-img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    background: #f7f7f7;
    flex-shrink: 0;
}

.aff-ai-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aff-ai-card-title {
    margin: 0 0 5px 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.3 !important;
}

.aff-ai-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.aff-ai-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #0b335e;
}

.aff-ai-card-type {
    font-size: 10px;
    text-transform: uppercase;
    background: #eaeaea;
    color: #666;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Card Button: Add to Quote */
.aff-ai-btn-add-quote {
    background: #0b335e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

.aff-ai-btn-add-quote:hover {
    background: #16467d;
}

.aff-ai-btn-add-quote.loading {
    background: #666 !important;
    pointer-events: none;
}

.aff-ai-btn-add-quote.success {
    background: #2e7d32 !important;
    pointer-events: none;
}

/* Animations */
@keyframes aff-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quick Prompts Starters */
.aff-ai-chat-quick-starters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    animation: aff-fade-up 0.3s ease-out;
}

.aff-ai-quick-btn {
    background: rgba(11, 51, 94, 0.08) !important;
    color: #0b335e !important;
    border: 1px solid rgba(11, 51, 94, 0.15) !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

.aff-ai-quick-btn:hover {
    background: #0b335e !important;
    color: #fff !important;
    border-color: #0b335e !important;
    transform: translateY(-1px) !important;
}

/* ============================================================
   AFF Gallery Lightbox — Full-Screen Carousel
   Works with: [gallery link="file" ids="..."]
   ============================================================ */

/* Overlay */
.aff-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.aff-lightbox-overlay.aff-lb-active {
    opacity: 1;
    visibility: visible;
}

/* Image wrapper */
.aff-lightbox-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 140px);
}

.aff-lightbox-img-wrap img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    object-fit: contain;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.aff-lightbox-img-wrap img.aff-lb-loaded {
    opacity: 1;
    transform: scale(1);
}

/* Loading spinner */
.aff-lightbox-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.aff-lightbox-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: aff-lb-spin 0.7s linear infinite;
}

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

/* Navigation arrows */
.aff-lightbox-prev,
.aff-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100001;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: unset !important;
}

.aff-lightbox-prev {
    left: 16px;
}

.aff-lightbox-next {
    right: 16px;
}

.aff-lightbox-prev:hover,
.aff-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.aff-lightbox-prev:active {
    transform: translateY(-50%) scale(0.92) translateX(-2px);
}

.aff-lightbox-next:active {
    transform: translateY(-50%) scale(0.92) translateX(2px);
}

.aff-lightbox-prev svg,
.aff-lightbox-next svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
    top: auto;
    left: auto;
}

/* Close button */
.aff-lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100001;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: unset;
}

.aff-lightbox-close:hover {
    background: rgba(255, 80, 80, 0.5);
    transform: rotate(90deg);
}

.aff-lightbox-close svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
    top: unset !important;
    left: unset !important;
}

/* Counter */
.aff-lightbox-counter {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 14px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

/* Caption */
.aff-lightbox-caption {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100001;
    text-align: center;
    padding: 16px 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    pointer-events: none;
    min-height: 56px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Hide arrows when only 1 image */
.aff-lightbox-overlay.aff-lb-single .aff-lightbox-prev,
.aff-lightbox-overlay.aff-lb-single .aff-lightbox-next {
    display: none;
}

/* Thumbnail dots */
.aff-lightbox-dots {
    position: fixed;
    bottom: 54px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
    display: flex;
    gap: 6px;
    pointer-events: none;
}

.aff-lightbox-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.aff-lightbox-dot.aff-lb-dot-active {
    background: #fff;
    transform: scale(1.4);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .aff-lightbox-prev {
        left: 8px;
        width: 40px;
        height: 40px;
    }

    .aff-lightbox-next {
        right: 8px;
        width: 40px;
        height: 40px;
    }

    .aff-lightbox-img-wrap {
        max-width: calc(100vw - 80px);
    }

    .aff-lightbox-caption {
        font-size: 12px;
        padding: 12px 50px;
    }
}

/* Associated Products Slider Styles */
.aff-slider-container-outer {
    position: relative;
    width: 100%;
}

.aff-project-products-slider {
    display: flex;
    gap: 30px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding: 10px 0;
}

.aff-project-products-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Grab cursor for dragging */
.aff-project-products-slider.aff-slider-draggable {
    cursor: grab;
    user-select: none;
}

.aff-project-products-slider.aff-slider-draggable:active {
    cursor: grabbing;
}

/* Disable smooth scrolling during drag */
.aff-project-products-slider.aff-slider-dragging {
    scroll-behavior: auto !important;
}

/* Slider Cards sizing */
.aff-has-slider .aff-project-product-card {
    flex: 0 0 calc((100% - 90px) / 4);
    /* 4 items visible on desktop */
    max-width: none;
    box-sizing: border-box;
}

/* Responsive slider items */
@media (max-width: 1200px) {
    .aff-has-slider .aff-project-product-card {
        flex: 0 0 calc((100% - 60px) / 3);
        /* 3 items */
    }
}

@media (max-width: 768px) {
    .aff-has-slider .aff-project-product-card {
        flex: 0 0 calc((100% - 30px) / 2);
        /* 2 items */
    }

    .aff-slider-arrow {
        display: none !important;
        /* Hide arrows on touch devices */
    }
}

@media (max-width: 480px) {
    .aff-has-slider .aff-project-product-card {
        flex: 0 0 85%;
        /* Peek of next item */
    }
}

/* Non-slider horizontal grid layout (<= threshold items) */
.aff-project-products-section:not(.aff-has-slider) .aff-project-products-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

@media (min-width: 768px) {
    .aff-project-products-section:not(.aff-has-slider) .aff-project-products-slider {
        grid-template-columns: repeat(4, 1fr);
        /* Max 4 in a row */
    }
}

/* Slider Arrows */
.aff-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #0b335e;
    padding: 0;
}

.aff-slider-arrow:hover {
    background: #0b335e;
    color: #ffffff;
    border-color: #0b335e;
    box-shadow: 0 6px 14px rgba(11, 51, 94, 0.2);
}

.aff-slider-arrow svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.aff-slider-prev {
    left: -22px;
}

.aff-slider-next {
    right: -22px;
}