:root {
    --turi-accessible-green: #1f7e10;
    --turi-focus-color: #0b57d0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:where(
    a[href],
    button:not([disabled]),
    input:not([type="hidden"]):not([disabled]),
    select:not([disabled]),
    textarea:not([disabled]),
    summary,
    [tabindex]:not([tabindex="-1"])
):focus-visible {
    outline: 3px solid var(--turi-focus-color) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--turi-focus-color) !important;
    transition: none !important;
}

.form-signin .btn-signup,
.form-registration .btn-signup,
#goToBook,
.site-chat__launcher,
.site-chat__header,
.site-chat__footer button {
    background-color: var(--turi-accessible-green) !important;
    color: #fff !important;
}

.ai-overview__eyebrow {
    color: var(--turi-accessible-green) !important;
}

#showButton {
    color: #596168 !important;
}

@media (min-width: 993px) {
    .header .menu > ul > li.menu-item-has-children[data-menu-open="true"] .menu-subs {
        z-index: 109;
        opacity: 1;
        visibility: visible;
    }
}

.tour-date-container .nav-link {
    color: #0a58ca;
}

.modal[aria-hidden="true"]:not(.show) {
    display: none !important;
}

.nf-honeypot input,
[aria-hidden="true"] > input[name="turi_hp_website"] {
    width: 1px !important;
    min-width: 0 !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
}

@media (max-width: 991.98px) {
    .modal .modal-dialog {
        width: auto !important;
        max-width: calc(100vw - 16px) !important;
        margin: 8px !important;
    }

    .modal .modal-content {
        max-width: 100% !important;
        max-height: calc(100dvh - 16px);
        overflow: auto;
    }

    .form-signin,
    .form-registration,
    .form-registration__popup {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 16px !important;
    }
}

@media (max-width: 800px) {
    .tour-banner .tour-title-block,
    .tour-banner .search_wrapper,
    .tour-banner .search_form,
    .tour-banner .search_form > * {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .tour-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .tour-header > *,
    .tour-header .tour-title-block,
    .tour-header .tour-price-block,
    .tour-header .tour-btn-block {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .tour-header .tour-btn-booking,
    .tour-btn-block .tour-btn-booking {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .consultationFormWrapper,
    #consultationForm,
    .booking_wrapper,
    .booking_wrapper .steps_wrapper,
    .booking_form {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .booking_wrapper {
        padding-inline: 12px !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .booking_wrapper > *,
    .booking_info_wrapper,
    .tour_info_wrapper {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .days_filter_wrapper {
        display: flex !important;
        width: 100% !important;
        flex-wrap: wrap !important;
    }

    .days_filter_wrapper .days_filter_button {
        min-width: 0 !important;
        flex: 1 1 130px !important;
        white-space: normal !important;
    }

    .footerForm {
        height: auto !important;
        min-width: 0 !important;
        flex-wrap: wrap !important;
    }

    .footerForm .footerInput,
    .footerForm .footerButton {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .footerForm .footerInput {
        flex: 1 1 170px;
    }

    .footerForm .footerButton {
        flex: 0 1 auto;
    }
}

@media (max-width: 1024px) {
    .booking_wrapper .tour_info_wrapper {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        border-radius: 20px !important;
    }

    .booking_wrapper .tour_info_wrapper > button,
    .booking_wrapper .tour_info_overlay {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .tour-type-list,
    .tour-type-list.main-page,
    .tour-type-list.country,
    .tour-type-list.place {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .tour-type-list .tour-type-item,
    .tour-type-list .tour-type-item-title,
    .tour-type-list .tour-type-item-link {
        min-width: 0;
        max-width: 100%;
    }

    .tour-type-list .tour-type-item-title {
        overflow-wrap: anywhere;
    }

    .tour-type-list .tour-type-item-link {
        padding-inline: 24px;
        white-space: normal;
    }

    .booking_wrapper .tour_info_inner {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 4px;
        padding-inline: 16px;
    }

    .booking_wrapper .tour_info_inner .tour_info_text {
        text-align: left;
        overflow-wrap: anywhere;
    }

    .site-chat__contact-bar .site-chat__visitor {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-chat__contact-bar .site-chat__required-note {
        white-space: normal;
    }
}

@media (min-width: 461px) {
    #mobile-contacts {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}
/* Keyboard parity for hover-revealed country cards loaded from style.min.css. */
.tour-type-list .tour-type-item:focus-within .tour-type-item-title {
    opacity: 0;
}

.tour-type-list .tour-type-item:focus-within .tour-type-item-link,
.tour-type-list .tour-type-item .tour-type-item-link:focus-visible {
    opacity: 1;
}

.country-primary-cta {
    background-color: #237018 !important;
    color: #fff !important;
}

.cmt-wrapper .cmt-input-wrapper .radioButton:focus-visible + .radioButtonLabel {
    outline: 3px solid #1f5f17;
    outline-offset: 3px;
    box-shadow: 0 0 0 2px #fff;
}
