/**
 * Ohio Segmented Filter / Pill Switcher Styles
 */
.ohio-segmented-filter-wrap {
    display: flex !important;
    width: 100%;
    box-sizing: border-box;
}

.ohio-segmented-filter-wrap.-align-left,
.ohio-segmented-filter-wrap.-align-flex-start,
[class*="ohio-filter-align-left"] .ohio-segmented-filter-wrap {
    justify-content: flex-start !important;
    text-align: left;
}

.ohio-segmented-filter-wrap.-align-center,
[class*="ohio-filter-align-center"] .ohio-segmented-filter-wrap {
    justify-content: center !important;
    text-align: center;
}

.ohio-segmented-filter-wrap.-align-right,
.ohio-segmented-filter-wrap.-align-flex-end,
[class*="ohio-filter-align-right"] .ohio-segmented-filter-wrap {
    justify-content: flex-end !important;
    text-align: right;
}

.ohio-segmented-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
    background-color: #f1f2f4;
    border-radius: 999px;
    padding: 4px;
    list-style: none;
    margin: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.ohio-segmented-filter::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

/* Sliding pill indicator */
.ohio-filter-indicator {
    position: absolute;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    background-color: #000000;
    border-radius: 999px;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 1;
    will-change: transform, width;
    opacity: 0;
}

.ohio-segmented-filter.is-initialized .ohio-filter-indicator {
    opacity: 1;
}

/* Tab item */
.ohio-filter-item {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 22px;
    border-radius: 999px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.25s ease;
    background: transparent;
    border: none;
    outline: none;
}

.ohio-filter-item:hover:not(.is-active) {
    color: #000000;
}

.ohio-filter-item.is-active {
    color: #ffffff;
}

/* Badge (e.g., -20% or Popular) */
.ohio-filter-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    background-color: #10b981;
    color: #ffffff;
    letter-spacing: 0.02em;
    vertical-align: middle;
    transition: all 0.25s ease;
}

.ohio-filter-item.is-active .ohio-filter-badge {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Animation for toggling target elements */
.ohio-filter-toggle-target {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ohio-filter-toggle-target.is-hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(6px);
}

/* Most Popular Badge next to plan name when is_popular: true */
.pricing-table-headline .title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.most-popular-badge {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    margin-left: 4px !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
}

/* Elementor comparison table cross icon styling */
.elementor-icon-list-item .bi-x-lg,
.elementor-icon-list-item .bi-x {
    color: #94a3b8 !important;
    font-size: 1.1em;
    font-weight: 700;
}

.elementor-icon-list-item:has(.bi-x-lg) .elementor-icon-list-text,
.elementor-icon-list-item:has(.bi-x) .elementor-icon-list-text {
    color: #64748b;
}

/* Icon list items: align items to top (flex-start) instead of center for multiline text */
.elementor-widget-icon-list {
    --icon-vertical-align: flex-start !important;
}

.elementor-widget-icon-list .elementor-icon-list-item,
.elementor-widget-icon-list .elementor-icon-list-item a,
.elementor-icon-list-item,
.elementor-icon-list-item a {
    align-items: flex-start !important;
}

.elementor-widget-icon-list .elementor-icon-list-icon+.elementor-icon-list-text,
.elementor-icon-list-icon+.elementor-icon-list-text {
    align-self: flex-start !important;
}

.elementor-widget-icon-list .elementor-icon-list-icon,
.elementor-icon-list-icon {
    align-self: flex-start !important;
    margin-top: 3px !important;
}


/* ==========================================================================
   Ohio Country Selector Dropdown & Switcher Flex Layout
   ========================================================================== */

/* Wrap with pills on left and country select on right */
.ohio-segmented-filter-wrap.-has-country-select {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.ohio-segmented-filter-wrap .ohio-filter-pills-col {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.ohio-segmented-filter-wrap .ohio-country-select-col {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

/* Standalone Country Select Wrapper */
.ohio-country-select-wrap {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

.ohio-country-select-wrap.-align-right {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-left: auto;
}

.ohio-country-select-wrap.-align-left {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-right: auto;
}

.ohio-country-select-wrap.-align-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ohio-country-select-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: auto;
    min-width: 220px;
    max-width: 100%;
}

/* Globe Icon Prefix */
.ohio-country-select-globe {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #4b5563;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transition: color 0.25s ease;
}

/* Ohio Theme Styled Select */
.ohio-country-select,
select.ohio-country-select,
.ohio-country-select-inner select {
    position: relative;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 100%;
    min-width: 220px;
    max-width: 290px;
    height: 38px !important;
    min-height: 38px !important;
    line-height: 36px !important;
    background-color: #f1f2f4 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 999px !important;
    padding: 0 36px 0 38px !important;
    color: #1f2937 !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231f2937' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 11px 9px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.ohio-country-select:hover,
select.ohio-country-select:hover {
    background-color: #e5e7eb !important;
    border-color: rgba(0, 0, 0, 0.14) !important;
    color: #000000 !important;
}

.ohio-country-select:hover+.ohio-country-select-globe,
.ohio-country-select-inner:hover .ohio-country-select-globe {
    color: #111827;
}

.ohio-country-select:focus,
select.ohio-country-select:focus {
    background-color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08) !important;
    color: #000000 !important;
}

.ohio-country-select:focus+.ohio-country-select-globe,
.ohio-country-select-inner:focus-within .ohio-country-select-globe {
    color: #000000;
}

.ohio-country-select option {
    background-color: #ffffff;
    color: #1f2937;
    font-size: 13px;
    padding: 8px 12px;
}

/* Loading state on pricing numbers when country is switching */
.price-number.is-country-loading {
    opacity: 0.45 !important;
    filter: blur(1px);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Dark Scheme Compatibility */
body.dark-scheme .ohio-country-select,
body.dark-scheme select.ohio-country-select {
    background-color: #1f242d !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f1f5f9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

body.dark-scheme .ohio-country-select-globe {
    color: #94a3b8;
}

body.dark-scheme .ohio-country-select:hover {
    background-color: #2b323e !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

body.dark-scheme .ohio-country-select:focus {
    background-color: #15181e !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

body.dark-scheme .ohio-country-select option {
    background-color: #1f242d;
    color: #f1f5f9;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .ohio-segmented-filter-wrap.-has-country-select {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
    }

    .ohio-segmented-filter-wrap .ohio-filter-pills-col {
        width: 100%;
        justify-content: flex-start;
    }

    .ohio-segmented-filter-wrap .ohio-country-select-col {
        width: 100%;
        margin-left: 0;
    }

    .ohio-country-select-wrap,
    .ohio-country-select-wrap.-align-right {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .ohio-country-select-inner {
        width: 100% !important;
        min-width: 100% !important;
    }

    .ohio-country-select,
    select.ohio-country-select {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* Visibility utilities */
.is-hidden,
.is-hidden-cycle {
    display: none !important;
}