/* Generated by tools/scope-css.py from assets/src/ — edit the source, then run it again. */
/* Ported from salming-admin resources/views/partials/phone-field.blade.php. */
/* Structure only. What the box looks like is the page's business. */
    .salming-pv-root [data-phone-group] {
        display: flex;
        align-items: stretch;
        padding: 0;
        overflow: hidden;
    }

    /* Higher specificity than a page's own `select, input` rules, so the two
       controls lose their borders without an !important anywhere. */
    .salming-pv-root [data-phone-group] select[data-phone-country], .salming-pv-root [data-phone-group] input[data-phone-input] {
        border: 0;
        border-radius: 0;
        margin: 0;
        background: transparent;
        font: inherit;
        color: inherit;
        padding: 13px 14px;
        min-width: 0;
    }

    .salming-pv-root [data-phone-group] select[data-phone-country] {
        /* Sized to its content up to a ceiling: long enough for "United States
           (+1)", never so wide that the number it qualifies has nowhere to go. */
        flex: 0 0 auto;
        max-width: 48%;
        border-right: 1px solid rgba(0, 0, 0, 0.34);
        /* Quieter than the number beside it. It is a hint about how to read the
           field, not the answer the field is asking for. */
        opacity: 0.66;
        cursor: pointer;
    }

    .salming-pv-root [data-phone-group] input[data-phone-input] {
        flex: 1 1 auto;
    }

    /* The ring belongs to the GROUP — focusing either half would otherwise
       outline half a field. */
    .salming-pv-root [data-phone-group] select[data-phone-country]:focus, .salming-pv-root [data-phone-group] input[data-phone-input]:focus {
        outline: none;
    }

    .salming-pv-root [data-phone-group]:focus-within {
        outline: 2px solid currentColor;
        outline-offset: -1px;
    }

    /* The searchable country field that replaces the select when script runs
       (see below). The select stays in the DOM, hidden, as the value that
       posts — so a page without script still has a working control.

       Styled as the select segment it stands in for. The group loses its
       overflow:hidden while enhanced, because the list has to hang below the
       border; both controls inside are transparent, so nothing bleeds past
       the rounded corners. */
    .salming-pv-root [data-phone-group][data-phone-enhanced] { position: relative; overflow: visible; }

    .salming-pv-root [data-phone-group] input[data-phone-combo] {
        border: 0;
        border-radius: 0;
        margin: 0;
        background: transparent;
        font: inherit;
        color: inherit;
        padding: 13px 14px;
        flex: 0 0 auto;
        width: 7.5em;
        min-width: 0;
        border-right: 1px solid rgba(0, 0, 0, 0.34);
        opacity: 0.66;
        cursor: pointer;
        outline: none;
    }

    .salming-pv-root [data-phone-group] input[data-phone-combo]:focus { opacity: 1; cursor: text; }

    .salming-pv-root [data-phone-list] {
        position: absolute;
        z-index: 30;
        top: calc(100% + 6px);
        left: 0;
        width: min(100%, 22em);
        max-height: 280px;
        overflow-y: auto;
        margin: 0;
        padding: 6px;
        list-style: none;
        background: #fff;
        color: #000;
        border: 1px solid rgba(0, 0, 0, 0.34);
        border-radius: 10px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
        font-size: 15px;
    }

    .salming-pv-root [data-phone-list][hidden] { display: none; }

    .salming-pv-root [data-phone-list] li {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 12px;
        border-radius: 6px;
        cursor: pointer;
    }

    .salming-pv-root [data-phone-list] li[aria-selected="true"] { background: #F1F1F1; }
    .salming-pv-root [data-phone-list] li.is-current { font-weight: 500; }
    .salming-pv-root [data-phone-list] li.is-pinned-last { position: relative; margin-bottom: 11px; }
    .salming-pv-root [data-phone-list] li.is-pinned-last::after {
        content: ''; position: absolute; left: 12px; right: 12px; bottom: -6px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    }
    .salming-pv-root [data-phone-list] li span:last-child { opacity: 0.6; font-variant-numeric: tabular-nums; }
    .salming-pv-root [data-phone-list] .is-empty { cursor: default; opacity: 0.6; }

    /* On a narrow screen the two stack INSIDE the same border, so it is still
       one field: the hairline moves from the side to the top. */
    @media (max-width: 479px) {
        .salming-pv-root [data-phone-group] { flex-direction: column; }

        .salming-pv-root [data-phone-group] select[data-phone-country], .salming-pv-root [data-phone-group] input[data-phone-combo] {
            max-width: 100%;
            width: 100%;
            border-right: 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.34);
        }

        .salming-pv-root [data-phone-list] { width: 100%; top: calc(3.2em + 6px); }
    }
