.phm-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    z-index: 9999;
}

.phm-backdrop[aria-hidden="false"] {
    display: flex;
}

.phm-modal {
    background: #fff;
    max-width: 720px;
    width: 92%;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    overflow: hidden;
}

.phm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
}

.phm-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.phm-close {
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.phm-body,
.phm-footer {
    padding: 12px 18px 18px;
    max-height: 70vh;
    overflow: auto;
}

.phm-footer * {
    font-size: 12px;
}

.phm-footer ul {
    margin-left: 10px;
}

.phm-table {
    width: 100%;
    border-collapse: collapse;
}

.phm-table th,
.phm-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-size: 14px;
}

.phm-empty {
    padding: 14px;
    color: #666;
}

.phm-trigger i {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    padding: 2px;
    border-radius: 50%;
    border: 1px solid #d6ae5e;
    color: #d6ae5e;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transform: translate(3px, -1px);
    background: #fff;
}

.phm-trigger i:hover {
    background: #d6ae5e;
    color: #fff;
}

.phm-trigger.tooltip-phm {
    border: none;
}

.tooltip-phm.lp-min-price {
    border-bottom: 1px dotted rgba(0, 0, 0, .4);
    cursor: help;
}

.tooltip-phm {
    position: relative;
    display: inline-block;
    line-height: 1.4;
    border-bottom: 1px dashed #bbb;
    cursor: help;
    font-weight: 500;
    color: #222;
}

.tooltip-phm::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 125%;
    transform: translateX(-50%) scale(0.95);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    transform-origin: bottom center;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}

.tooltip-phm::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 115%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
    opacity: 0;
    transition: opacity .25s ease;
}

.tooltip-phm:hover::after,
.tooltip-phm:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

td.flat_pdf a {
    white-space: nowrap;
    font-size: 12px;
    padding: 2px 10px;
    border: 1px solid #d6ae5e;
    border-radius: 100px;
    font-weight: 400;
    margin-bottom: 5px;
    display: inline-block;
}

.flat_price {
    white-space: nowrap;
}
