/**
 * Pricing Table Block
 * Clean responsive table with horizontal scroll on mobile
 */

/* ========== TABLE ========== */
.pt-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pt-table th,
.pt-table td {
    padding: 0.95rem 1rem;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

/* Remove outer borders */
.pt-table tr:first-child th { border-top: none; }
.pt-table tr:last-child td { border-bottom: none; }
.pt-table th:first-child,
.pt-table td:first-child { border-left: none; }
.pt-table th:last-child,
.pt-table td:last-child { border-right: none; }

/* Header */
.pt-table thead th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    white-space: nowrap;
}

/* Body */
.pt-table tbody td {
    color: #374151;
}

.pt-table tbody td:not(:first-child) {
    font-weight: 600;
    color: #111827;
}

/* Category headers */
.pt-table .pt-row-header td {
    background: rgba(43, 180, 70, 0.08);
    border-left: 4px solid #2bb446 !important;
    font-weight: 700;
    font-size: 13px;
    color: #1f2937;
    padding: 0.75rem 1rem;
}

/* Hover */
.pt-table tbody tr:not(.pt-row-header):hover td {
    background: #fafafa;
}

/* ========== ICONS ========== */
.pt-icon-check,
.pt-icon-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.pt-icon-check {
    background: #dcfce7;
    color: #16a34a;
}

.pt-icon-cross {
    background: #f3f4f6;
    color: #9ca3af;
}

/* ========== SCROLLBAR ========== */
.pt-table-wrap {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

.pt-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.pt-table-wrap::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.pt-table-wrap::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.pt-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .pt-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .pt-section h2 {
        font-size: 1.375rem;
    }

    /* Tabs */
    .pt-tabs {
        width: 100%;
    }

    .pt-tab {
        flex: 1;
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Table scroll */
    .pt-table-wrap {
        -webkit-overflow-scrolling: touch;
    }

    .pt-table {
        min-width: 640px;
    }

    .pt-table th,
    .pt-table td {
        padding: 0.7rem 0.6rem;
        font-size: 13px;
    }

    .pt-table thead th {
        font-size: 10px;
    }

    /* Sticky first column */
    .pt-table th:first-child,
    .pt-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: #fff;
        min-width: 180px;
        max-width: 200px;
        box-shadow: 2px 0 8px -2px rgba(0,0,0,0.08);
    }

    .pt-table thead th:first-child {
        background: #f9fafb;
        z-index: 3;
    }

    .pt-table .pt-row-header td {
        position: sticky;
        left: 0;
        z-index: 2;
    }

    /* Icons */
    .pt-icon-check,
    .pt-icon-cross {
        width: 22px;
        height: 22px;
    }

    .pt-icon-check svg,
    .pt-icon-cross svg {
        width: 12px;
        height: 12px;
    }
}

/* ========== PRINT ========== */
@media print {
    .pt-section {
        padding: 0;
    }

    .pt-tabs-wrap {
        display: none;
    }

    .pt-panel {
        display: block !important;
    }

    .pt-panel.hidden {
        display: block !important;
    }
}
