/* Price Table Pro — Frontend Styles */

.ptp-wrap {
    --ptp-blue: #1a6dff;
    --ptp-blue-dark: #1557d4;
    --ptp-blue-light: #e8f0ff;
    --ptp-border: #e2e6ea;
    --ptp-text: #1a1f36;
    --ptp-muted: #6b7380;
    --ptp-highlight-bg: #edf3ff;
    --ptp-free-bg: #fff;
    --ptp-free-border: #c8d8ff;
    --ptp-free-text: #1a6dff;
    --ptp-radius: 6px;
    --ptp-btn-radius: 5px;
    font-family: inherit;
    box-sizing: border-box;
}
.ptp-wrap *, .ptp-wrap *::before, .ptp-wrap *::after {
    box-sizing: inherit;
}

/* ── Tabs Nav ───────────────────────────────── */
.ptp-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.ptp-tab {
    display: inline-block;
    padding: 7px 16px;
    border-radius: var(--ptp-btn-radius);
    border: 1px solid transparent;
    background: transparent;
    color: var(--ptp-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.4;
}
.ptp-tab:hover {
    background: var(--ptp-blue-light);
    color: var(--ptp-blue);
}
.ptp-tab.ptp-tab-active {
    background: var(--ptp-blue);
    color: #fff;
    border-color: var(--ptp-blue);
}

/* ── Panel ──────────────────────────────────── */
.ptp-panel-hidden {
    display: none;
}
.ptp-panel-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.ptp-panel-inner.ptp-has-image {
    /* image takes ~45% */
}

/* ── Image ──────────────────────────────────── */
.ptp-image-wrap {
    flex: 0 0 44%;
    max-width: 44%;
    border-radius: var(--ptp-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #3b8dff 0%, #1a6dff 50%, #5ba4ff 100%);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ptp-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ── Table ──────────────────────────────────── */
.ptp-table-wrap {
    flex: 1 1 0;
    min-width: 0;
    border: 1px solid var(--ptp-border);
    border-radius: var(--ptp-radius);
    overflow: hidden;
}
.ptp-panel-inner:not(.ptp-has-image) .ptp-table-wrap {
    width: 100%;
}

.ptp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ptp-table thead tr {
    border-bottom: 2px solid var(--ptp-border);
}
.ptp-table thead th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    color: var(--ptp-text);
    background: #fff;
    white-space: nowrap;
}
.ptp-table thead th:last-child {
    width: 120px;
}

.ptp-table tbody tr {
    border-bottom: 1px solid var(--ptp-border);
    transition: background 0.1s;
}
.ptp-table tbody tr:last-child {
    border-bottom: none;
}
.ptp-table tbody tr.ptp-row-even {
    background: #fff;
}
.ptp-table tbody tr.ptp-row-odd {
    background: #fafbfc;
}
.ptp-table tbody tr.ptp-row-highlight {
    background: var(--ptp-highlight-bg) !important;
}
.ptp-table tbody tr:hover {
    background: var(--ptp-blue-light) !important;
}

.ptp-table td {
    padding: 11px 14px;
    color: var(--ptp-text);
    vertical-align: middle;
}

/* Service column */
.ptp-col-service {
    font-weight: 500;
}
.ptp-row-highlight .ptp-col-service {
    font-weight: 700;
}
.ptp-service-note {
    display: block;
    font-size: 12px;
    color: var(--ptp-muted);
    font-weight: 400;
    margin-top: 2px;
}

/* Time column */
.ptp-col-time {
    color: var(--ptp-muted);
    white-space: nowrap;
    font-size: 13px;
}

/* Price column */
.ptp-col-price {
    white-space: nowrap;
}
.ptp-price {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--ptp-border);
    border-radius: var(--ptp-btn-radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--ptp-text);
    background: #fff;
    min-width: 80px;
    text-align: center;
}
.ptp-price.ptp-price-free {
    border-color: var(--ptp-free-border);
    color: var(--ptp-free-text);
    background: var(--ptp-free-bg);
}

/* Button column */
.ptp-col-btn {
    white-space: nowrap;
    text-align: right;
}
.ptp-btn {
    display: inline-block;
    padding: 7px 16px;
    background: var(--ptp-blue);
    color: #fff !important;
    border-radius: var(--ptp-btn-radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}
.ptp-btn:hover {
    background: var(--ptp-blue-dark);
    transform: translateY(-1px);
}
.ptp-btn:active {
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 860px) {
    .ptp-panel-inner.ptp-has-image {
        flex-direction: column;
    }
    .ptp-image-wrap {
        flex: none;
        max-width: 100%;
        width: 100%;
        min-height: 180px;
    }
    .ptp-table-wrap {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .ptp-table {
        font-size: 13px;
    }
    .ptp-table thead th,
    .ptp-table td {
        padding: 9px 10px;
    }
    .ptp-col-time {
        display: none; /* hide time column on mobile */
    }
    .ptp-table thead th:nth-child(2) {
        display: none;
    }
    .ptp-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
