/* =========================================================
   PHONEORIGIN ORDERS SEARCH V1
   ========================================================= */

.po-orders-search-page {
    padding-top: 30px;
}


/* =========================================================
   FILTER PANEL
   ========================================================= */

.po-orders-filter-panel {
    margin-bottom: 17px;

    padding: 15px;

    border:
        1px solid
        rgba(255,255,255,.075);

    border-radius: 13px;

    background:
        rgba(255,255,255,.018);
}


/* SEARCH */

.po-orders-search-field {
    min-height: 47px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        0
        13px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 9px;

    background:
        #0d0f14;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.po-orders-search-field:focus-within {
    border-color:
        rgba(179,19,135,.50);

    box-shadow:
        0 0 0 3px
        rgba(128,2,96,.10);
}


.po-orders-search-icon {
    flex: 0 0 auto;

    color: #777a84;

    font-size: 17px;
}


.po-orders-search-field input {
    width: 100%;

    min-width: 0;

    border: 0 !important;

    outline: none !important;

    box-shadow: none !important;

    color: #fff;

    background: transparent !important;

    font: inherit;

    font-size: 12px;
}


.po-orders-search-field input::placeholder {
    color: #62656f;
}


/* =========================================================
   FILTER GRID
   ========================================================= */

.po-orders-filter-grid {
    margin-top: 10px;

    display: grid;

    grid-template-columns:
        minmax(220px,1.25fr)
        minmax(150px,.75fr)
        minmax(150px,.75fr)
        auto;

    gap: 9px;

    align-items: end;
}


.po-orders-filter-grid > label {
    min-width: 0;

    display: grid;

    gap: 6px;
}


.po-orders-filter-grid > label > span {
    color: #777a84;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .6px;

    text-transform: uppercase;
}


.po-orders-filter-grid select,
.po-orders-filter-grid
input[type="date"] {
    width: 100%;

    min-height: 41px;

    margin: 0;

    padding:
        0
        11px;

    border:
        1px solid
        rgba(255,255,255,.075);

    border-radius: 8px;

    outline: none;

    color: #dfe0e4;

    background:
        #0d0f14;

    font: inherit;

    font-size: 10px;

    color-scheme: dark;
}


.po-orders-filter-grid select {
    appearance: none;
    -webkit-appearance: none;

    padding-right: 34px;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23898c96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-repeat:
        no-repeat;

    background-position:
        right 11px center;

    background-size:
        11px;
}


.po-orders-filter-grid select:focus,
.po-orders-filter-grid
input[type="date"]:focus {
    border-color:
        rgba(179,19,135,.48);

    box-shadow:
        0 0 0 3px
        rgba(128,2,96,.09);
}


/* =========================================================
   FILTER ACTIONS
   ========================================================= */

.po-orders-filter-actions {
    min-height: 41px;

    display: flex;

    align-items: center;

    gap: 8px;
}


.po-orders-filter-actions
.po-btn {
    min-height: 41px;

    white-space: nowrap;
}


.po-orders-reset {
    min-height: 41px;

    display: inline-flex;

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

    padding:
        7px
        11px;

    border:
        1px solid
        rgba(255,255,255,.075);

    border-radius: 8px;

    color: #aaaab2;

    background:
        rgba(255,255,255,.025);

    text-decoration: none;

    font-size: 9px;

    font-weight: 700;
}


/* =========================================================
   FILTERED STATE
   ========================================================= */

.po-orders-filtered-label {
    display: inline-flex;

    margin-left: 7px;

    padding:
        3px
        6px;

    border-radius: 999px;

    color: #d88bc3;

    background:
        rgba(128,2,96,.09);

    font-size: 7px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .5px;
}


/* =========================================================
   ORDER META
   ========================================================= */

.po-orders-search-page
.po-order-meta {
    flex-wrap: wrap;
}


.po-orders-search-page
.po-order-meta > span {
    min-width: 0;
}


.po-orders-search-page
.po-order-meta
.po-mono {
    overflow-wrap: anywhere;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .po-orders-filter-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }


    .po-orders-filter-actions {
        grid-column:
            1 / -1;

        justify-content: flex-end;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .po-orders-search-page {
        padding-top: 20px;
    }


    .po-orders-filter-panel {
        padding: 11px;
    }


    .po-orders-search-field {
        min-height: 48px;
    }


    .po-orders-search-field input {
        /*
         * Avoid automatic Safari input zoom.
         */
        font-size: 16px;
    }


    .po-orders-filter-grid {
        grid-template-columns: 1fr;
    }


    .po-orders-filter-grid select,
    .po-orders-filter-grid
    input[type="date"] {
        min-height: 45px;

        font-size: 12px;
    }


    .po-orders-filter-actions {
        grid-column: auto;

        display: grid;

        grid-template-columns:
            1fr
            auto;
    }


    .po-orders-filter-actions
    .po-btn {
        width: 100%;
    }


    .po-orders-reset {
        min-height: 45px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .po-orders-filter-actions {
        grid-template-columns: 1fr;
    }


    .po-orders-reset {
        width: 100%;
    }

}
