/* Purchase control + recommended services modal */
body.pom-open {
    overflow: hidden;
}

.pom[hidden],
.pom [hidden] {
    display: none !important;
}

.pom {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 28px;
}

.pom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 17, 43, .76);
    backdrop-filter: blur(9px);
}

.pom-dialog {
    position: relative;
    width: min(1180px, 100%);
    max-height: min(900px, 92vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(218, 226, 244, .92);
    border-radius: 34px;
    background: #f8faff;
    box-shadow: 0 40px 100px rgba(3, 13, 37, .34);
    animation: pom-enter .24s ease-out both;
}

@keyframes pom-enter {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pom-close {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #e1e6f0;
    border-radius: 50%;
    background: #fff;
    color: #101a37;
    font-size: 25px;
    box-shadow: 0 10px 24px rgba(13, 25, 56, .11);
    cursor: pointer;
}

.pom-header {
    flex: 0 0 auto;
    margin: 34px 34px 0;
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 76px 18px 20px;
    border: 1px solid #d7e1f5;
    border-radius: 24px;
    background: linear-gradient(115deg, #eef6ff 0%, #f5f3ff 100%);
    box-shadow: 0 18px 46px rgba(31, 58, 110, .08);
}

.pom-header-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #5148d7, #684bff);
    font-size: 26px;
}

.pom-header > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.pom-header small,
.pom-added small {
    color: #5049bd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.pom-header strong {
    overflow: hidden;
    color: #101a37;
    font-size: 20px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pom-header-check {
    margin-left: auto;
    color: #22aa78;
    font-size: 30px;
}

.pom-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 34px;
}

.pom-stage {
    width: min(940px, 100%);
    margin: 0 auto;
}

.pom-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.pom-title > span:last-child {
    min-width: 0;
}

.pom-step {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: #5049d7;
    font-weight: 800;
}

.pom-title h2,
.pom-recommendation-head h2 {
    margin: 0;
    color: #101a37;
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.pom-title p,
.pom-recommendation-head p {
    margin: 7px 0 0;
    color: #74809e;
    font-size: 16px;
}

.pom-input-wrap {
    display: grid;
    gap: 9px;
    color: #1b2746;
    font-size: 14px;
    font-weight: 750;
}

.pom-input-control {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid #dbe2f0;
    border-radius: 17px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.pom-input-control:focus-within {
    border-color: #aeb9cf;
    box-shadow: none;
}

.pom-input-control i {
    color: #5c56d8;
    font-size: 22px;
}

.pom-input-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111b37;
    font-size: 16px;
    font-weight: 650;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.gd-site .pom-input-control input:focus,
.gd-site .pom-input-control input:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

.pom-input-help,
.pom-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 22px;
    color: #78839e;
    font-size: 13px;
    line-height: 1.5;
}

.pom-primary,
.pom-secondary,
.pom-rec-add {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.pom-primary,
.pom-rec-add {
    color: #fff;
    background: linear-gradient(105deg, #5148d3, #694dff);
    box-shadow: 0 14px 28px rgba(83, 70, 215, .22);
}

.pom-entry > .pom-primary {
    width: 100%;
}

.pom-primary:hover,
.pom-rec-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 17px 32px rgba(83, 70, 215, .28);
}

.pom button:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.pom-loading {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pom-loading h2 {
    margin: 18px 0 5px;
    color: #111b37;
    font-size: 27px;
}

.pom-loading p {
    margin: 0;
    color: #7b86a1;
}

.pom-spinner {
    width: 54px;
    height: 54px;
    border: 5px solid #e3e6f6;
    border-top-color: #5d50e7;
    border-radius: 50%;
    animation: pom-spin .8s linear infinite;
}

@keyframes pom-spin { to { transform: rotate(360deg); } }

.pom-post-toolbar {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border: 1px solid #e0e5f1;
    border-radius: 15px;
    color: #717c98;
    background: #fff;
    font-size: 13px;
}

.pom-post-toolbar strong {
    color: #5148d7;
    font-size: 15px;
}

.pom-post-toolbar button {
    color: #5148d7;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.pom-post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.pom-post-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 18px;
    background: #e8ebf4;
    box-shadow: 0 10px 24px rgba(25, 38, 76, .1);
    cursor: pointer;
    isolation: isolate;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pom-post-card:hover {
    transform: translateY(-2px);
}

.pom-post-card.is-selected {
    border-color: #684dff;
    box-shadow: 0 0 0 3px rgba(104, 77, 255, .17), 0 14px 28px rgba(50, 39, 135, .2);
}

.pom-post-media,
.pom-post-media img,
.pom-post-media video,
.pom-post-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pom-post-media img,
.pom-post-media video {
    object-fit: cover;
}

.pom-post-media video {
    pointer-events: none;
    background: #11152c;
}

.pom-post-media::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 40% 0 0;
    background: linear-gradient(to bottom, transparent, rgba(5, 10, 29, .76));
    pointer-events: none;
}

.pom-post-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #6050df, #a748c7);
    font-size: 36px;
}

.pom-post-likes,
.pom-post-increase,
.pom-post-check {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.pom-post-likes {
    left: 10px;
    bottom: 10px;
    gap: 5px;
    font-size: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.pom-post-likes i {
    color: #ff6680;
    font-size: 16px;
}

.pom-post-likes b {
    font-size: 12px;
}

.pom-post-increase {
    right: 9px;
    bottom: 8px;
    min-height: 27px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 9px;
    background: rgba(31, 174, 126, .9);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
    font-size: 11px;
    font-weight: 850;
}

.pom-post-check {
    top: 9px;
    right: 9px;
    width: 30px;
    height: 30px;
    transform: scale(.72);
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    opacity: 0;
    background: #684dff;
    box-shadow: 0 7px 17px rgba(24, 18, 93, .3);
    transition: opacity .18s ease, transform .18s ease;
}

.pom-post-card.is-selected .pom-post-check {
    transform: scale(1);
    opacity: 1;
}

.pom-post-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 30px;
    border: 1px dashed #d8deec;
    border-radius: 20px;
    color: #7b86a1;
    text-align: center;
    background: #fff;
}

.pom-post-empty i {
    color: #6052df;
    font-size: 34px;
}

.pom-post-empty strong {
    color: #111b37;
    font-size: 17px;
}

.pom-post-empty > span {
    max-width: 440px;
    line-height: 1.5;
}

.pom-post-retry {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 7px;
    padding: 0 18px;
    border: 1px solid #d9deed;
    border-radius: 13px;
    color: #5148d7;
    background: #f6f4ff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.pom-post-picker.is-empty .pom-post-toolbar,
.pom-post-picker.is-empty [data-pom-post-confirm] {
    display: none;
}

.pom-post-picker.is-empty .pom-post-actions {
    grid-template-columns: 1fr;
}

.pom-post-actions {
    position: sticky;
    z-index: 4;
    bottom: -34px;
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 12px;
    margin: 20px -34px -34px;
    padding: 16px 34px;
    border-top: 1px solid rgba(220, 226, 239, .92);
    background: rgba(248, 250, 255, .96);
    box-shadow: 0 -12px 28px rgba(24, 39, 79, .06);
    backdrop-filter: blur(12px);
}

.pom-preview-card {
    padding: 24px;
    border: 1px solid #dde3f0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(24, 39, 79, .08);
}

.pom-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pom-visual {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 27px;
    color: #fff;
    background: linear-gradient(145deg, #5d4ee2, #9b41c9);
    box-shadow: 0 10px 28px rgba(69, 56, 181, .2);
    font-size: 34px;
}

.pom-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pom-identity-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.pom-identity-copy small {
    color: #5750c9;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pom-identity-copy strong {
    overflow: hidden;
    color: #111b37;
    font-size: 24px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pom-identity-copy > span {
    overflow: hidden;
    color: #6f7a96;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pom-identity-copy code {
    max-width: 100%;
    overflow: hidden;
    color: #8b94aa;
    font-family: inherit;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pom-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.pom-metric {
    min-height: 76px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 12px 15px;
    border: 1px solid #e1e6f2;
    border-radius: 16px;
    background: #f8f9fe;
}

.pom-metric > small {
    color: #7e89a4;
    font-size: 11px;
    font-weight: 750;
}

.pom-metric-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pom-metric-value strong {
    color: #111b37;
    font-size: 20px;
}

.pom-metric-value b {
    padding: 4px 8px;
    border-radius: 9px;
    color: #fff;
    background: #28ad7d;
    font-size: 12px;
}

.pom-notice {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 13px;
    background: #f2f5fb;
}

.pom-preview-actions {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 12px;
    margin-top: 18px;
}

.pom-secondary {
    color: #273252;
    border: 1px solid #dce2ef;
    background: #fff;
}

.pom-added {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid #d5e2f5;
    border-radius: 22px;
    background: linear-gradient(115deg, #eef7ff, #f6f3ff);
}

.pom-added > span:first-child {
    color: #23aa78;
    font-size: 31px;
}

.pom-added > span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.pom-added strong {
    overflow: hidden;
    color: #111b37;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pom-recommendation-head {
    margin: 30px 6px 22px;
}

.pom-recommendations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pom-rec-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dde3ee;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(25, 37, 71, .07);
}

.pom-rec-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.pom-rec-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #d6e0f6;
    border-radius: 15px;
    color: #554ed0;
    background: #f0f5ff;
    font-size: 22px;
}

.pom-rec-head > strong {
    color: #101a37;
    font-size: 16px;
    line-height: 1.25;
}

.pom-rec-facts {
    display: flex;
    gap: 7px;
}

.pom-rec-facts > span {
    min-width: 84px;
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid #e0e4ef;
    border-radius: 13px;
    background: #f7f8fc;
    text-align: right;
}

.pom-rec-facts small {
    color: #828ca5;
    font-size: 9px;
    font-weight: 700;
}

.pom-rec-facts b {
    color: #3f3aa8;
    font-size: 15px;
}

.pom-rec-control {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    margin: 17px 0 13px;
    padding: 10px;
    border: 1px solid #e1e6f1;
    border-radius: 15px;
    background: #f7f9fd;
}

.pom-rec-slider {
    position: relative;
    min-width: 0;
    display: grid;
    align-items: center;
    gap: 7px;
}

.pom-rec-slider > small {
    color: #8993aa;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.pom-rec-control input[type="range"] {
    --rec-progress: 0%;
    height: 7px;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 999px;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(
        to right,
        #5c4ee4 0,
        #5c4ee4 var(--rec-progress),
        #dfe4ef var(--rec-progress),
        #dfe4ef 100%
    );
    cursor: pointer;
}

.pom-rec-control input[type="range"]::-webkit-slider-thumb {
    width: 21px;
    height: 21px;
    border: 3px solid #fff;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: #5c4ee4;
    box-shadow: 0 0 0 2px rgba(92, 78, 228, .18), 0 4px 10px rgba(65, 57, 180, .25);
}

.pom-rec-control input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #5c4ee4;
    box-shadow: 0 0 0 2px rgba(92, 78, 228, .18), 0 4px 10px rgba(65, 57, 180, .25);
}

.pom-rec-slider-hint {
    position: absolute;
    top: 3px;
    left: 0;
    width: 21px;
    height: 21px;
    border: 3px solid #fff;
    border-radius: 50%;
    opacity: 0;
    background: #5c4ee4;
    box-shadow: 0 0 0 5px rgba(92, 78, 228, .14), 0 5px 13px rgba(65, 57, 180, .3);
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 2;
}

.pom-rec-slider.is-hinting .pom-rec-slider-hint {
    animation: pom-rec-slide-hint 1.8s ease-in-out .2s 2;
}

.pom-rec-slider.is-hinting input[type="range"]::-webkit-slider-thumb {
    opacity: 0;
}

.pom-rec-slider.is-hinting input[type="range"]::-moz-range-thumb {
    opacity: 0;
}

@keyframes pom-rec-slide-hint {
    0% { left: 0; opacity: 0; }
    12% { opacity: 1; }
    72% { left: calc(100% - 21px); opacity: 1; }
    100% { left: calc(100% - 21px); opacity: 0; }
}

.pom-rec-arrow {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #dee4ef;
    border-radius: 12px;
    color: #5148ca;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}

.pom-rec-add {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
}

.pom-rec-add.is-added {
    background: #24aa79;
    box-shadow: none;
}

.pom-no-recommendations {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #7b86a0;
    text-align: center;
}

.pom-no-recommendations i {
    margin-bottom: 8px;
    color: #23aa78;
    font-size: 38px;
}

.pom-no-recommendations strong {
    color: #111b37;
    font-size: 19px;
}

.pom-footer {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 12px;
    padding: 16px 34px;
    border-top: 1px solid #e0e5ef;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -12px 30px rgba(17, 31, 66, .07);
}

.pom-footer a {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 17px;
    font-weight: 800;
}

.pom-home {
    color: #17213e;
    border: 1px solid #dfe4ee;
    background: #fff;
}

.pom-cart-link {
    color: #fff;
    background: linear-gradient(100deg, #6848f6, #1eafe9);
    box-shadow: 0 13px 28px rgba(60, 93, 220, .25);
}

.pom-cart-link b {
    min-width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    font-size: 12px;
}

@media (max-width: 820px) {
    .pom {
        inset: auto 0 auto;
        top: var(--pom-vtop, 0px);
        width: 100%;
        height: var(--pom-vh, 100dvh);
        display: block;
        padding: 0;
    }
    .pom-dialog {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .pom-header {
        min-height: 76px;
        margin: calc(10px + env(safe-area-inset-top)) 14px 0;
        padding: 12px 56px 12px 13px;
        border-radius: 18px;
    }
    .pom-header-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
        font-size: 21px;
    }
    .pom-header strong { font-size: 16px; }
    .pom-header-check { display: none; }
    .pom-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
    }
    .pom-scroll { padding: 25px 18px; }
    .pom-loading { min-height: 180px; }
    .pom-spinner {
        width: 44px;
        height: 44px;
        border-width: 4px;
    }
    .pom-loading h2 {
        margin-top: 13px;
        font-size: 23px;
    }
    .pom-title h2,
    .pom-recommendation-head h2 { font-size: 28px; }
    .pom-recommendations { grid-template-columns: 1fr; }
    .pom-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pom-post-actions {
        bottom: -25px;
        margin: 18px -18px -25px;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    }
    .pom-footer {
        grid-template-columns: .75fr 1.25fr;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 560px) {
    .pom-title p,
    .pom-recommendation-head p { font-size: 14px; }
    .pom-preview-card { padding: 17px; }
    .pom-identity { align-items: flex-start; gap: 13px; }
    .pom-visual {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
        border-radius: 21px;
    }
    .pom-identity-copy strong { font-size: 20px; }
    .pom-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pom-preview-actions { grid-template-columns: 1fr; }
    .pom-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .pom-post-card { border-radius: 15px; }
    .pom-post-actions { grid-template-columns: .62fr 1.38fr; }
    .pom-post-actions .pom-secondary,
    .pom-post-actions .pom-primary {
        min-height: 52px;
        padding: 0 10px;
        font-size: 13px;
    }
    .pom-rec-head { grid-template-columns: 44px minmax(0, 1fr); }
    .pom-rec-facts {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .pom-rec-facts > span { text-align: left; }
    .pom-footer a { min-height: 52px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .pom-rec-slider-hint { display: none; }
}
