/* =========================================================
   PHONEORIGIN DIRECTORY V1.1
   SERVICE CONSOLE HEADER
   ========================================================= */


/* =========================================================
   CONSOLE HEADER
   ========================================================= */

.po-console-header {
    padding-top: 44px;
    padding-bottom: 10px;
}


/* TITLE ROW */

.po-console-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 28px;

    margin-bottom: 27px;
}


.po-console-kicker {
    display: flex;

    align-items: center;

    gap: 12px;
}


.po-console-online {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding:
        4px
        8px;

    border:
        1px solid
        rgba(83,210,134,.17);

    border-radius: 999px;

    color: #83dba5;

    background:
        rgba(83,210,134,.065);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .8px;
}


.po-console-online span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #59d288;

    box-shadow:
        0 0 0 3px
        rgba(89,210,136,.10);
}


.po-console-heading h1 {
    margin:
        8px
        0
        5px;

    font-family:
        Poppins,
        sans-serif;

    font-size:
        clamp(
            35px,
            4vw,
            48px
        );

    line-height: 1.08;

    letter-spacing: -1.8px;
}


.po-console-heading p {
    margin: 0;

    color: var(--po-muted);

    font-size: 14px;

    line-height: 1.6;
}


.po-console-orders-link {
    min-height: 42px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        9px
        14px;

    flex: 0 0 auto;

    color: #d6d7dc;

    text-decoration: none;

    border:
        1px solid
        var(--po-border);

    border-radius: 10px;

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

    font-size: 12px;

    font-weight: 700;

    transition: .17s ease;
}


.po-console-orders-link:hover {
    color: #fff;

    border-color:
        var(--po-border-hover);

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


/* =========================================================
   COMMAND SEARCH
   ========================================================= */

.po-console-search {
    min-height: 78px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding:
        12px
        15px;

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

    border-radius: 14px;

    background:
        #101116;

    box-shadow:
        0 14px 45px
        rgba(0,0,0,.18);

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


.po-console-search:focus-within {
    border-color:
        rgba(179,19,135,.60);

    background:
        #111217;

    box-shadow:
        0 0 0 3px
        rgba(128,2,96,.11),
        0 18px 55px
        rgba(0,0,0,.24);
}


.po-console-search-symbol {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;

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

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

    border-radius: 10px;

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


.po-console-search-symbol svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: #bbbcc4;

    stroke-width: 1.8;

    stroke-linecap: round;
}


.po-console-search-input {
    min-width: 0;

    flex: 1;

    display: grid;

    gap: 2px;
}


.po-console-search-input label {
    color: #747680;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .9px;

    text-transform: uppercase;
}


.po-console-search-input input {
    width: 100%;

    padding: 0;

    border: 0;

    outline: 0;

    color: #f5f5f7;

    background: transparent;

    font: inherit;

    font-size: 16px;

    font-weight: 500;
}


.po-console-search-input input::placeholder {
    color: #64666e;
}


.po-console-search-actions {
    flex: 0 0 auto;

    display: flex;

    align-items: center;

    gap: 8px;
}


.po-console-shortcut {
    min-width: 28px;
    height: 28px;

    display: flex;

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

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

    border-radius: 7px;

    color: #777982;

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

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;

    font-size: 12px;
}


.po-console-clear {
    min-height: 32px;

    padding:
        6px
        10px;

    border:
        1px solid
        var(--po-border);

    border-radius: 8px;

    color: #c8c9ce;

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

    font: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}


.po-search-summary {
    margin:
        10px
        2px
        0;

    color: #cf7cba;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   SUMMARY CARDS
   ========================================================= */

.po-console-stats {
    margin-top: 15px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 11px;
}


.po-console-stat {
    min-width: 0;

    padding:
        16px
        18px;

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

    border-radius: 12px;

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


.po-console-stat-label {
    color: #70727b;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .8px;
}


.po-console-stat-value {
    margin-top: 6px;

    color: #f6f6f8;

    font-family:
        Poppins,
        sans-serif;

    font-size: 18px;

    font-weight: 700;

    overflow-wrap: anywhere;
}


.po-console-tier {
    color: #dd90c8;
}


.po-console-stat-note {
    margin-top: 3px;

    color: var(--po-muted);

    font-size: 10px;

    font-weight: 600;
}


.po-console-stat-link {
    display: inline-block;

    margin-top: 4px;

    color: #c777b4;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;
}


/* =========================================================
   DIRECTORY HEADING REFINEMENT
   ========================================================= */

.po-directory-categories {
    margin-top: 48px;
}


.po-directory-section-heading {
    padding-bottom: 3px;
}


.po-directory-section-heading h2 {
    margin-top: 6px;

    font-size: 26px;

    letter-spacing: -.6px;
}


.po-directory-section-heading p {
    max-width: 600px;
}


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

@media (max-width: 850px) {

    .po-console-header {
        padding-top: 30px;
    }


    .po-console-heading {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 15px;
    }


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


    .po-console-stat:last-child {
        grid-column:
            1 / -1;
    }

}


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

@media (max-width: 600px) {

    .po-console-header {
        padding-top: 19px;
    }


    .po-console-heading {
        margin-bottom: 20px;
    }


    .po-console-heading h1 {
        font-size: 32px;

        letter-spacing: -1.1px;
    }


    .po-console-heading p {
        font-size: 13px;
    }


    .po-console-orders-link {
        width: 100%;

        justify-content:
            space-between;
    }


    .po-console-search {
        min-height: 69px;

        padding:
            10px
            12px;

        border-radius: 12px;
    }


    .po-console-search-symbol {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }


    .po-console-shortcut {
        display: none;
    }


    .po-console-stats {
        grid-template-columns: 1fr;

        gap: 8px;
    }


    .po-console-stat:last-child {
        grid-column: auto;
    }


    .po-console-stat {
        display: grid;

        grid-template-columns:
            minmax(0,1fr)
            auto;

        align-items: center;

        column-gap: 15px;

        padding:
            14px
            15px;
    }


    .po-console-stat-label {
        grid-column: 1;
    }


    .po-console-stat-value {
        grid-column: 1;

        font-size: 16px;
    }


    .po-console-stat-note,
    .po-console-stat-link {
        grid-column: 2;

        grid-row:
            1 / span 2;

        align-self: center;

        margin: 0;

        text-align: right;
    }


    .po-directory-categories {
        margin-top: 38px;
    }

}


/* =========================================================
   VERY SMALL PHONE
   ========================================================= */

@media (max-width: 390px) {

    .po-console-search-symbol {
        display: none;
    }


    .po-console-heading h1 {
        font-size: 29px;
    }


    .po-console-stat {
        padding: 13px;
    }


    .po-console-stat-note {
        max-width: 115px;
    }

}


/* =========================================================
   DIRECTORY SEARCH MODE V1.2
   ========================================================= */

/*
 * While searching, category cards disappear so
 * matching services sit immediately below search.
 */

.po-directory-page.searching
.po-directory-categories {
    display: none;
}


.po-directory-page.searching
.po-service-directory {
    margin-top: 14px;
}


/*
 * Make result feedback impossible to miss.
 */

.po-directory-page.searching
.po-search-summary {
    display: flex;

    align-items: center;

    min-height: 42px;

    margin-top: 10px;

    padding:
        10px
        13px;

    border:
        1px solid
        rgba(179,19,135,.20);

    border-radius: 10px;

    color: #b7b8c0;

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

    font-size: 12px;
}


.po-directory-page.searching
.po-search-summary strong {
    margin-right: 4px;

    color: #e2a0d1;

    font-weight: 800;
}


/*
 * Search result panels should feel like results,
 * rather than another large catalogue section.
 */

.po-directory-page.searching
.po-directory-category-panel {
    margin-top: 10px;
}


.po-directory-page.searching
.po-directory-category-header {
    padding-bottom: 15px;
}


.po-directory-page.searching
.po-category-close {
    display: none;
}


/* MOBILE */

@media (max-width: 600px) {

    .po-directory-page.searching
    .po-search-summary {
        align-items: flex-start;

        line-height: 1.5;
    }

}


/* =========================================================
   SERVICE GROUPS V1
   ========================================================= */

.po-directory-service-groups {
    display: grid;

    gap: 10px;

    padding-top: 18px;
}


.po-service-group {
    overflow: hidden;

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

    border-radius: 13px;

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


.po-service-group[hidden] {
    display: none;
}


.po-service-group-header {
    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 18px;

    padding:
        15px
        17px;

    cursor: pointer;

    list-style: none;

    user-select: none;

    transition:
        background .16s ease,
        border-color .16s ease;
}


.po-service-group-header::-webkit-details-marker {
    display: none;
}


.po-service-group-header:hover {
    background:
        rgba(255,255,255,.028);
}


.po-service-group[open]
.po-service-group-header {
    background:
        rgba(128,2,96,.055);

    border-bottom:
        1px solid
        rgba(255,255,255,.065);
}


.po-service-group-heading {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 13px;
}


.po-service-group-chevron {
    width: 29px;
    height: 29px;

    flex: 0 0 29px;

    display: flex;

    align-items: center;

    justify-content: center;

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

    border-radius: 8px;

    color: #999ba3;

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

    font-size: 20px;

    line-height: 1;

    transition:
        transform .18s ease,
        color .18s ease,
        background .18s ease;
}


.po-service-group[open]
.po-service-group-chevron {
    transform:
        rotate(90deg);

    color: #dd92c9;

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

    border-color:
        rgba(179,19,135,.22);
}


.po-service-group-heading h3 {
    margin: 0;

    color: #f3f3f5;

    font-family:
        Poppins,
        sans-serif;

    font-size: 14px;

    font-weight: 700;
}


.po-service-group-heading p {
    max-width: 650px;

    margin:
        3px
        0
        0;

    color: #787a84;

    font-size: 10px;

    line-height: 1.45;
}


.po-service-group-count {
    flex: 0 0 auto;

    padding:
        5px
        9px;

    border-radius: 999px;

    color: #a3a5ad;

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

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

    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;
}


.po-service-group-body {
    padding:
        0
        16px;
}


.po-service-group-body
.po-directory-service-row {
    padding:
        18px
        2px;
}


.po-service-group-other
.po-service-group-heading h3 {
    color: #c2c3c9;
}


/* =========================================================
   SEARCH MODE + GROUPS
   ========================================================= */

.po-directory-page.searching
.po-directory-service-groups {
    padding-top: 5px;
}


.po-directory-page.searching
.po-service-group {
    margin-top: 8px;
}


.po-directory-page.searching
.po-service-group-header {
    min-height: 61px;
}


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

@media (max-width: 700px) {

    .po-directory-service-groups {
        gap: 8px;

        padding-top: 14px;
    }


    .po-service-group-header {
        min-height: 64px;

        padding:
            13px
            14px;
    }


    .po-service-group-heading {
        gap: 10px;
    }


    .po-service-group-chevron {
        width: 27px;
        height: 27px;

        flex-basis: 27px;
    }


    .po-service-group-heading p {
        display: none;
    }


    .po-service-group-count {
        padding:
            4px
            7px;

        font-size: 9px;
    }


    .po-service-group-body {
        padding:
            0
            13px;
    }

}


@media (max-width: 430px) {

    .po-service-group-header {
        gap: 9px;
    }


    .po-service-group-heading h3 {
        font-size: 13px;
    }


    .po-service-group-count {
        max-width: 75px;

        overflow: hidden;

        text-overflow: ellipsis;
    }

}


/* =========================================================
   QUICK ACCESS V1
   ========================================================= */

.po-quick-access {
    margin-top: 38px;
}


.po-quick-access-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 14px;
}


.po-quick-access-heading h2 {
    margin: 5px 0 0;

    font-family:
        Poppins,
        sans-serif;

    font-size: 23px;

    letter-spacing: -.5px;
}


.po-quick-access-note {
    color: var(--po-muted);

    font-size: 11px;
}


.po-quick-access-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 12px;
}


.po-quick-panel {
    min-width: 0;

    overflow: hidden;

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

    border-radius: 13px;

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


.po-quick-panel-heading {
    min-height: 58px;

    display: flex;

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

    gap: 15px;

    padding:
        12px
        14px;

    border-bottom:
        1px solid
        rgba(255,255,255,.065);
}


.po-quick-panel-heading > div {
    display: grid;

    gap: 2px;
}


.po-quick-panel-heading strong {
    font-size: 12px;
}


.po-quick-panel-heading span {
    color: #747680;

    font-size: 9px;
}


.po-quick-panel-count {
    min-width: 25px;
    height: 25px;

    display: inline-flex;

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

    padding: 0 6px;

    border-radius: 999px;

    color: #c4c5cb !important;

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

    font-size: 9px !important;

    font-weight: 800;
}


.po-quick-service-list {
    display: grid;
}


.po-quick-service {
    min-width: 0;

    display: grid;

    grid-template-columns:
        auto
        minmax(0,1fr)
        auto
        auto;

    align-items: center;

    gap: 11px;

    padding:
        12px
        14px;

    color: inherit;

    text-decoration: none;

    border-bottom:
        1px solid
        rgba(255,255,255,.05);

    transition:
        background .15s ease;
}


.po-quick-service:last-child {
    border-bottom: 0;
}


.po-quick-service:hover {
    background:
        rgba(255,255,255,.027);
}


.po-quick-service-indicator {
    width: 27px;
    height: 27px;

    display: flex;

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

    border:
        1px solid
        rgba(179,19,135,.16);

    border-radius: 8px;

    color: #d581bf;

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

    font-size: 10px;

    font-weight: 800;
}


.po-quick-service-main {
    min-width: 0;

    display: grid;

    gap: 3px;
}


.po-quick-service-main strong {
    overflow: hidden;

    color: #e9e9ec;

    font-size: 11px;

    white-space: nowrap;
    text-overflow: ellipsis;
}


.po-quick-service-meta {
    display: flex;

    gap: 0;

    min-width: 0;

    color: #747680;

    font-size: 9px;
}


.po-quick-service-meta span {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}


.po-quick-service-meta
span:not(:last-child)::after {
    content: "•";

    margin:
        0
        6px;

    color: #484a51;
}


.po-quick-service-price {
    color: #f4f4f6;

    font-family:
        Poppins,
        sans-serif;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;
}


.po-quick-service-arrow {
    color: #777982;

    font-size: 12px;
}


/* =========================================================
   FAVORITE BUTTON
   ========================================================= */

.po-favorite-toggle {
    min-height: 28px;

    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-left: auto;

    padding:
        4px
        8px;

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

    border-radius: 8px;

    color: #777983;

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

    font: inherit;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;

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


.po-favorite-toggle:hover {
    color: #d8a0ca;

    border-color:
        rgba(179,19,135,.24);
}


.po-favorite-toggle.active {
    color: #df93ca;

    border-color:
        rgba(179,19,135,.26);

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


.po-favorite-toggle:disabled {
    opacity: .55;

    cursor: wait;
}


.po-favorite-star {
    font-size: 11px;
}


/* =========================================================
   FAVORITE TOAST
   ========================================================= */

.po-favorite-toast {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 8000;

    max-width:
        min(
            350px,
            calc(100% - 30px)
        );

    padding:
        11px
        14px;

    opacity: 0;

    pointer-events: none;

    transform:
        translateY(10px);

    border:
        1px solid
        rgba(179,19,135,.25);

    border-radius: 10px;

    color: #e7d4e2;

    background: #181119;

    box-shadow:
        0 18px 50px
        rgba(0,0,0,.38);

    font-size: 11px;

    font-weight: 700;

    transition:
        opacity .18s ease,
        transform .18s ease;
}


.po-favorite-toast.show {
    opacity: 1;

    transform:
        translateY(0);
}


.po-favorite-toast.error {
    color: #ffb2b2;

    border-color:
        rgba(255,100,100,.24);

    background: #1c1113;
}


/*
 * Search must remain immediate.
 * Quick Access disappears while searching.
 */

.po-directory-page.searching
.po-quick-access {
    display: none;
}


/* TABLET */

@media (max-width: 850px) {

    .po-quick-access-grid {
        grid-template-columns: 1fr;
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .po-quick-access {
        margin-top: 30px;
    }


    .po-quick-access-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }


    .po-quick-service {
        grid-template-columns:
            auto
            minmax(0,1fr)
            auto;

        gap: 9px;
    }


    .po-quick-service-arrow {
        display: none;
    }


    .po-favorite-toggle {
        margin-left: 0;
    }


    .po-favorite-toast {
        right: 12px;
        bottom:
            max(
                12px,
                env(safe-area-inset-bottom)
            );

        left: 12px;

        max-width: none;
    }

}
