/* =========================================================
   PHONEORIGIN SERVICE DIRECTORY V1
   ========================================================= */


/* PAGE */

.po-directory-page {
    padding-top: 42px;
}


/* =========================================================
   COMPACT HERO
   ========================================================= */

.po-directory-hero {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(320px, .75fr);

    gap: 30px;

    align-items: center;

    padding:
        34px
        0
        28px;
}


.po-directory-intro h1 {
    max-width: 760px;

    margin: 8px 0 12px;

    font-family:
        Poppins,
        sans-serif;

    font-size:
        clamp(
            36px,
            4.5vw,
            54px
        );

    line-height: 1.06;

    letter-spacing: -2px;
}


.po-directory-intro h1 span {
    color: #c772b3;
}


.po-directory-intro p {
    max-width: 660px;

    margin: 0;

    color: var(--po-muted);

    font-size: 15px;

    line-height: 1.7;
}


/* ACCOUNT MINI PANEL */

.po-directory-account {
    display: grid;

    grid-template-columns:
        1fr
        1px
        1fr;

    gap: 20px;

    align-items: center;

    padding: 22px;

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

    border-radius: 17px;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(128,2,96,.18),
            transparent 65%
        ),
        var(--po-surface);
}


.po-directory-account-divider {
    width: 1px;
    height: 52px;

    background:
        var(--po-border);
}


.po-directory-account-item {
    display: grid;

    gap: 4px;
}


.po-directory-account-item span {
    color: var(--po-muted);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .7px;
}


.po-directory-account-item strong {
    color: #fff;

    font-family:
        Poppins,
        sans-serif;

    font-size: 18px;
}


.po-directory-account-item small {
    color: #d08abb;

    font-size: 11px;

    font-weight: 700;
}


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

.po-service-search-panel {
    min-height: 76px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding:
        13px
        16px;

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

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.007)
        ),
        var(--po-surface);

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


.po-service-search-panel:focus-within {
    border-color:
        rgba(179,19,135,.5);

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


.po-service-search-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    color: #e6a3d6;

    background:
        var(--po-accent-soft);

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

    font-size: 24px;
}


.po-service-search-field {
    min-width: 0;

    flex: 1;

    display: grid;

    gap: 2px;
}


.po-service-search-field label {
    color: var(--po-muted);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .8px;

    text-transform: uppercase;
}


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

    padding: 2px 0;

    border: 0;

    outline: 0;

    color: #fff;

    background: transparent;

    font: inherit;

    font-size: 16px;
}


.po-service-search-field input::placeholder {
    color: #686a73;
}


.po-search-clear {
    min-height: 38px;

    padding:
        8px
        12px;

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

    border-radius: 9px;

    color: #d4d5da;

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

    font: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}


.po-search-summary {
    margin-top: 12px;

    color: #c778b4;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   CATEGORY DIRECTORY
   ========================================================= */

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


.po-directory-section-heading h2 {
    margin:
        5px
        0
        5px;

    font-family:
        Poppins,
        sans-serif;

    font-size: 30px;
}


.po-directory-section-heading p {
    margin: 0;

    color: var(--po-muted);

    font-size: 14px;
}


.po-directory-category-grid {
    margin-top: 20px;

    display: grid;

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

    gap: 16px;
}


.po-directory-category-card {
    min-width: 0;

    min-height: 190px;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    padding: 22px;

    text-align: left;

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

    border-radius: 17px;

    color: #fff;

    background:
        var(--po-surface);

    font: inherit;

    cursor: pointer;

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


.po-directory-category-card:hover {
    transform:
        translateY(-2px);

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

    background:
        var(--po-surface-2);
}


.po-directory-category-card.active {
    border-color:
        rgba(179,19,135,.55);

    background:
        linear-gradient(
            145deg,
            rgba(128,2,96,.14),
            rgba(255,255,255,.015)
        ),
        var(--po-surface);
}


.po-directory-category-card.search-match {
    border-color:
        rgba(179,19,135,.28);
}


.po-directory-category-card-top {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 15px;
}


.po-category-symbol {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    color: #e19acf;

    background:
        var(--po-accent-soft);

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

    font-family:
        Poppins,
        sans-serif;

    font-size: 15px;

    font-weight: 800;
}


.po-category-count {
    color: var(--po-muted);

    font-size: 11px;

    font-weight: 700;
}


.po-directory-category-card h3 {
    margin:
        18px
        0
        7px;

    font-family:
        Poppins,
        sans-serif;

    font-size: 20px;
}


.po-directory-category-card p {
    flex: 1;

    margin: 0;

    color: var(--po-muted);

    font-size: 13px;

    line-height: 1.55;
}


.po-category-explore {
    margin-top: 20px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 12px;

    color: #db91c7;

    font-size: 12px;

    font-weight: 800;
}


/* =========================================================
   CATEGORY SERVICE PANEL
   ========================================================= */

.po-service-directory {
    margin-top: 30px;
}


.po-directory-category-panel {
    scroll-margin-top: 100px;

    padding:
        25px;

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

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.018),
            rgba(255,255,255,.004)
        ),
        #0d0e12;
}


.po-directory-category-panel[hidden] {
    display: none;
}


.po-directory-category-header {
    display: flex;

    align-items: flex-start;

    justify-content:
        space-between;

    gap: 20px;

    padding-bottom: 22px;

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


.po-directory-category-header h2 {
    margin:
        5px
        0
        5px;

    font-family:
        Poppins,
        sans-serif;

    font-size: 28px;
}


.po-directory-category-header p {
    margin: 0;

    color: var(--po-muted);

    font-size: 13px;
}


.po-category-close {
    min-height: 38px;

    padding:
        8px
        13px;

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

    border-radius: 9px;

    color: #cfd0d5;

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

    font: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   COMPACT SERVICE ROWS
   ========================================================= */

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


.po-directory-service-row {
    min-width: 0;

    display: grid;

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

    gap: 25px;

    align-items: center;

    padding:
        20px
        4px;

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


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


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


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


.po-service-name-row {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}


.po-service-name-row h3 {
    margin: 0;

    color: #f4f4f6;

    font-size: 15px;

    line-height: 1.35;
}


.po-service-meta {
    margin-top: 7px;

    display: flex;

    align-items: center;

    gap: 0;

    flex-wrap: wrap;

    color: #888a94;

    font-size: 11px;

    font-weight: 600;
}


.po-service-meta span {
    display: inline-flex;

    align-items: center;
}


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

    margin:
        0
        8px;

    color: #44464e;
}


.po-service-code {
    color: #c276af;
}


.po-service-description {
    max-width: 720px;

    margin:
        8px
        0
        0;

    color: var(--po-muted);

    font-size: 12px;

    line-height: 1.55;
}


.po-service-order-area {
    min-width: 245px;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 18px;
}


.po-service-price-block {
    min-width: 92px;

    display: grid;

    text-align: right;
}


.po-service-price-block small {
    color: var(--po-muted);

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .5px;
}


.po-service-price-block strong {
    color: #fff;

    font-family:
        Poppins,
        sans-serif;

    font-size: 17px;
}


.po-service-old-price {
    color: #6f717a;

    font-size: 10px;

    text-decoration:
        line-through;
}


.po-directory-order-button {
    min-width: 122px;

    min-height: 40px;

    padding:
        8px
        13px;

    gap: 8px;

    font-size: 12px;
}


/* =========================================================
   EMPTY RESULTS
   ========================================================= */

.po-global-no-results {
    margin-top: 25px;

    padding:
        55px
        25px;

    text-align: center;

    border:
        1px dashed
        rgba(255,255,255,.14);

    border-radius: 18px;

    background:
        var(--po-surface);
}


.po-global-no-results-icon {
    width: 45px;
    height: 45px;

    margin:
        0
        auto
        15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: #d986c2;

    background:
        var(--po-accent-soft);

    font-weight: 800;
}


.po-global-no-results h3 {
    margin:
        0
        0
        7px;
}


.po-global-no-results p {
    margin: 0;

    color: var(--po-muted);

    font-size: 13px;
}


.po-category-no-results {
    padding:
        25px
        0;

    color: var(--po-muted);

    text-align: center;
}


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

@media (max-width: 950px) {

    .po-directory-hero {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .po-directory-account {
        max-width: 620px;
    }


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


    .po-directory-service-row {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .po-service-order-area {
        width: 100%;

        justify-content:
            space-between;

        padding-top: 4px;
    }


    .po-service-price-block {
        text-align: left;
    }

}


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

@media (max-width: 700px) {

    .po-directory-page {
        padding-top: 18px;
    }


    .po-directory-hero {
        padding-top: 15px;
    }


    .po-directory-intro h1 {
        font-size:
            clamp(
                30px,
                9vw,
                38px
            );

        letter-spacing:
            -1.3px;
    }


    .po-directory-account {
        grid-template-columns: 1fr;

        gap: 13px;

        padding: 18px;
    }


    .po-directory-account-divider {
        width: 100%;
        height: 1px;
    }


    .po-service-search-panel {
        min-height: 68px;

        gap: 11px;

        padding:
            10px
            12px;
    }


    .po-service-search-icon {
        width: 39px;
        height: 39px;

        flex-basis: 39px;

        font-size: 21px;
    }


    .po-search-clear {
        padding:
            7px
            9px;
    }


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


    .po-directory-category-grid {
        grid-template-columns: 1fr;
    }


    .po-directory-category-card {
        min-height: 155px;

        padding: 19px;
    }


    .po-directory-category-card h3 {
        margin-top: 14px;
    }


    .po-directory-category-panel {
        padding:
            18px;

        border-radius: 16px;
    }


    .po-directory-category-header {
        flex-direction: column;

        gap: 13px;
    }


    .po-category-close {
        width: 100%;
    }


    .po-directory-service-row {
        padding:
            18px
            0;
    }


    .po-service-order-area {
        align-items:
            flex-end;

        gap: 12px;
    }


    .po-directory-order-button {
        min-width: 120px;
    }

}


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

@media (max-width: 430px) {

    .po-service-search-field input {
        font-size: 16px;
    }


    .po-service-search-icon {
        display: none;
    }


    .po-directory-section-heading h2 {
        font-size: 25px;
    }


    .po-directory-category-header h2 {
        font-size: 24px;
    }


    .po-service-order-area {
        display: grid;

        grid-template-columns:
            1fr
            1fr;

        align-items: end;
    }


    .po-directory-order-button {
        width: 100%;
        min-width: 0;
    }

}
