/* === Membership Price Table === */
.price-table {
    max-width: 1200px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.desktop-only {
    display: block;
}
.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
    }
}

.price-table__thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 2px 2px rgba(0,0,0,0.05);
    background: #fff; /* Base background for sticky headers */
    border: none; /* Remove default borders from all header cells */
    border-right: 1px solid black; /* Apply internal column border to all th by default */
}

/* Ensure the last header cell in any row doesn't have a right border */
.price-table__thead th:last-child {
    border-right: none;
}

/* Header Row 1 styling */
.price-table__header-row-1 th {
    background-color: #CECECE; /* Default for Row 1 */
    padding: 0.5rem 1rem;
    vertical-align: middle;
    text-align: left;
    border-bottom: none; /* No border between row 1 and 2 */
}

/* Header Row 1, Column 3 (Recommended badge cell) specific background */
.price-table__header-row-1 th:nth-child(3) {
    background-color: #6ebc9d;
    color: #fff; /* Keep text white for this specific cell */
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    padding: 0.5rem 1rem;
}

/* Header Row 2 styling */
.price-table__header-row-2 th {
    background-color: #FFFFFF; /* Default for Row 2 */
    padding: 1rem;
    vertical-align: top;
    text-align: left;
    border-bottom: 2px solid black; /* 2px border between row 2 and 3 */
}

/* Header Row 2, Column 3 (PREMIUM plan header) specific background */
.price-table__header-row-2 th:nth-child(3) {
    background-color: #add9c7;
}

/* Table Styles */
.price-table__wrapper {
    overflow-x: auto;
}

.price-table__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: none; /* No outside border for the table */
}

/* All data cells (td) */
.price-table__table td {
    padding: 1rem;
    text-align: left;
    vertical-align: top;
    border: none; /* Remove default borders from all cells */
    border-right: 1px solid black; /* Add internal column border */
    border-top: none; /* No top border for rows by default */
    border-bottom: none; /* No bottom border for rows by default */
    word-wrap: break-word;
}

/* Ensure the last column cells don't have a right border */
.price-table__table td:last-child {
    border-right: none;
}

/* Specific 2px border on top of the first data row (between row 2 and row 3) */
.price-table__table tbody tr:first-child td {
    border-top: 2px solid black;
}

/* Data Rows (tbody) - Odd rows (3rd, 5th, etc., including Monthly price plan and Lifetime cost) */
.price-table__table tbody tr:nth-child(odd) {
    background-color: #FFFFFF;
}
.price-table__table tbody tr:nth-child(odd) td:nth-child(3) { /* Column 3 in odd data rows */
    background-color: #add9c7;
}

/* Data Rows (tbody) - Even rows (4th, 6th, etc., including Annual upfront plan and features) */
.price-table__table tbody tr:nth-child(even) {
    background-color: #f0f0f0;
}
.price-table__table tbody tr:nth-child(even) td:nth-child(3) { /* Column 3 in even data rows */
    background-color: #a7d3c1;
}

/* The .price-table__col--highlight class's background will be overridden by the more specific rules above.
   It remains in HTML for any other styling it might apply (e.g., text color, box-shadow if any). */
/*
.price-table__col--highlight {
    background: #b9dfd3 !important;
}
*/

/* Plan Header within row 2 */
.price-table__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-table__plan {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.price-table__plan small {
    font-weight: normal;
    font-size: 0.85rem;
    display: block;
}

.price-table__recommended-for-header {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

/* Adjust button margin within the header */
.price-table__head .price-table__button {
    margin-top: 0;
}

/* Mobile Swiper */
.price-table__mobile {
    padding-bottom: 30px;
}

.price-table__mobile-slide {
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.price-table__sticky-head {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 1rem;
    margin: -1rem -1rem 1rem -1rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-table__recommended-for {
    font-size: 0.9em;
    margin-top: 0.5rem;
    line-height: 1.3;
}

.price-table__list {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.price-table__list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.price-table__list li strong {
    min-width: 80px;
    display: inline-block;
}

.price-table__list hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1.5rem 0;
}

.price-table__apply-button-mobile {
    text-align: center;
    margin-top: 1rem;
}

.price-table__note {
    font-size: 0.75rem;
    color: #666;
    margin-top: 1rem;
    line-height: 1.3;
}

.price-table__button {
    background: #d33c33;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    white-space: nowrap;
}

.price-table__button:hover {
    opacity: 0.9;
}

.feature-check {
    color: #47be9b;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 5px;
    line-height: 1;
}

.feature-cross {
    color: #d33c33;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 5px;
    line-height: 1;
}

.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #47be9b;
}