.nfl-custom-select {
    position: relative;
}

.nfl-custom-select-native {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 54px;
    opacity: 0;
    pointer-events: none;
}

.nfl-custom-select-trigger {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 16px;
    background: #fff;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 15px;
    text-align: left;
    box-shadow: none;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.nfl-custom-select-trigger:after {
    content: "";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23ef4f05' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transition: transform .2s ease;
}

.nfl-custom-select-trigger:hover,
.nfl-custom-select.is-open .nfl-custom-select-trigger {
    border-color: rgba(239, 79, 5, .45);
    box-shadow: 0 10px 22px rgba(239, 79, 5, .12);
}

.nfl-custom-select.is-disabled .nfl-custom-select-trigger {
    background: #f4f4f6;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
}

.nfl-custom-select-placeholder {
    color: #9a9a9a;
}

.nfl-custom-select.is-awaiting-selection:not(.is-disabled):not(.is-loading) .nfl-custom-select-placeholder {
    color: #444;
}

.nfl-custom-select-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nfl-custom-select-spinner {
    display: none;
    flex: 0 0 auto;
}

.nfl-custom-select.is-open .nfl-custom-select-trigger:after {
    transform: rotate(180deg);
}

.nfl-custom-select.is-loading .nfl-custom-select-spinner {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(239, 79, 5, .22);
    border-top-color: var(--pxpMainColor);
    border-radius: 50%;
    animation: nflCustomSelectSpin .8s linear infinite;
}

.nfl-custom-select.is-disabled .nfl-custom-select-trigger:after,
.nfl-custom-select.is-loading .nfl-custom-select-trigger:after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    content: none !important;
}

.nfl-custom-select.is-loading .nfl-custom-select-value {
    color: #8d8d8d;
}

@keyframes nflCustomSelectSpin {
    to {
        transform: rotate(360deg);
    }
}

.nfl-custom-select-popover {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 1060;
    display: none;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .14);
}

.nfl-custom-select.is-open .nfl-custom-select-popover {
    display: block;
}

.nfl-custom-select-search {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 999px;
    background: var(--pxpMainColorLight);
    padding: 0 16px;
    color: #444;
    font-size: 13px;
    outline: none;
}

.nfl-custom-select-search:focus {
    border-color: rgba(239, 79, 5, .45);
    box-shadow: 0 0 0 4px rgba(239, 79, 5, .08);
}

.nfl-custom-select-options {
    max-height: 240px;
    overflow: auto;
    margin-top: 10px;
    padding: 4px;
}

.nfl-custom-select-option {
    width: 100%;
    margin-bottom: 6px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    transition: background-color .2s ease, color .2s ease;
}

.nfl-custom-select-option:last-child {
    margin-bottom: 0;
}

.nfl-custom-select-option:hover,
.nfl-custom-select-option.is-focused {
    background: rgba(239, 79, 5, .08);
    color: var(--pxpMainColor);
}

.nfl-custom-select-option.is-selected {
    background: var(--pxpMainColor);
    color: #fff;
}

.nfl-custom-select-empty {
    padding: 16px 12px;
    color: #999;
    font-size: 13px;
    text-align: center;
}

.nfl-custom-select-native.error + .nfl-custom-select-trigger,
.nfl-custom-select-native.error ~ .nfl-custom-select-trigger,
.nfl-custom-select.is-error .nfl-custom-select-trigger {
    border-color: var(--pxpMainColor);
    box-shadow: 0 10px 24px rgba(239, 79, 5, .22);
}

body.nfl-custom-select-open {
    overflow: hidden;
}

.nfl-select-modal {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: none;
    padding: 18px;
}

.nfl-select-modal.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nfl-select-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 22, 31, .48);
}

.nfl-select-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: min(78vh, 620px);
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

.nfl-select-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.nfl-select-modal-eyebrow {
    display: block;
    color: var(--pxpMainColor);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.nfl-select-modal-title {
    margin: 6px 0 0;
    color: #30313d;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.04em;
}

.nfl-select-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(239, 79, 5, .35);
    border-radius: 50%;
    background: #fff;
    color: var(--pxpMainColor);
    font-size: 28px;
    line-height: 1;
}

.nfl-select-modal-search {
    width: 100%;
    height: 46px;
    flex: 0 0 auto;
    border: 1px solid rgba(239, 79, 5, .35);
    border-radius: 999px;
    background: rgba(239, 79, 5, .07);
    padding: 0 18px;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    outline: none;
}

.nfl-select-modal-search:focus {
    border-color: rgba(239, 79, 5, .65);
    box-shadow: 0 0 0 4px rgba(239, 79, 5, .08);
}

.nfl-select-modal-options {
    min-height: 0;
    margin-top: 14px;
    padding: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.nfl-select-modal-option {
    width: 100%;
    min-height: 44px;
    margin-bottom: 6px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #3f414a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.nfl-select-modal-option:last-child {
    margin-bottom: 0;
}

.nfl-select-modal-option:hover,
.nfl-select-modal-option.is-selected {
    background: var(--pxpMainColor);
    color: #fff;
}

@media (max-width: 767px) {
    .nfl-custom-select-popover {
        position: fixed;
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 16px;
        width: auto;
        min-width: 0;
        max-width: none;
        max-height: 68vh;
        overflow: hidden;
        padding: 14px;
        border-radius: 26px;
        z-index: 5000;
    }

    .nfl-custom-select-options {
        max-height: calc(68vh - 84px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .nfl-select-modal {
        padding: 16px;
    }

    .nfl-select-modal-dialog {
        width: 100%;
        max-height: 82vh;
        padding: 18px;
        border-radius: 26px;
    }

    .nfl-select-modal-title {
        font-size: 20px;
    }

    .nfl-select-modal-option {
        font-size: 14px;
    }
}
