/* Frontend shortcode styling for [price_table name="..."] */

.price-table-shortcode {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 24px 0;
    border: 1px solid #dfe7f3;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(8, 40, 80, 0.06);
    box-sizing: border-box;
}

.price-table-shortcode * {
    box-sizing: border-box;
}

.price-table-shortcode__header {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: linear-gradient(135deg, #073b30 0%, #0d5c48 100%);
    padding: 14px 18px;
}

.price-table-shortcode__title {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.price-table-shortcode__body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.price-table-shortcode__table {
    width: 100%;
    min-width: 0;
    max-width: none;
    border-collapse: collapse;
    table-layout: fixed;
}

.price-table-shortcode__table th,
.price-table-shortcode__table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e6edf7;
    text-align: left;
    vertical-align: middle;
}

.price-table-shortcode__table th {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #2f3c4f;
    background: #f3f8ff;
    font-weight: 700;
}

.price-table-shortcode__table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.price-table-shortcode__table tbody tr:hover {
    background: #eef6ff;
}

.price-table-shortcode__table td:nth-child(2) {
    color: var(--green-700);
    font-weight: 700;
    white-space: nowrap;
}

.price-table-shortcode__table th:first-child,
.price-table-shortcode__table td:first-child {
    width: 72%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.price-table-shortcode__table th:nth-child(2),
.price-table-shortcode__table td:nth-child(2) {
    width: 28%;
}

@media (max-width: 767px) {
    .price-table-shortcode__title {
        font-size: 18px;
    }

    .price-table-shortcode__table th,
    .price-table-shortcode__table td {
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .price-table-shortcode {
        margin: 24px 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .price-table-shortcode__header,
    .price-table-shortcode__body {
        width: 560px;
        min-width: 560px;
    }
}

@media (max-width: 380px) {
    .price-table-shortcode__header,
    .price-table-shortcode__body {
        width: 520px;
        min-width: 520px;
    }
}
