/* Frontend Styles for Simple Tiered Pricing */

.stp-shortcode-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
}

.stp-table-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Horizontal Style - Matrix Layout */
.stp-style-horizontal .stp-pricing-horizontal {
    overflow-x: auto;
    margin-top: 10px;
}

.stp-style-horizontal .stp-horizontal-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.stp-style-horizontal .stp-horizontal-table thead th {
    background: var(--e-global-color-primary, #4a7c59);
    color: #fff;
    padding: 5px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.stp-style-horizontal .stp-horizontal-table thead th.stp-header-tiername {
    text-align: left;
    min-width: 200px;
}

.stp-style-horizontal .stp-horizontal-table thead th.stp-header-quantity {
    text-align: center;
    min-width: 90px;
}

.stp-style-horizontal .stp-horizontal-table tbody td {
    padding: 5px;
    border: 1px solid #e1e1e1;
    font-size: 14px;
}

.stp-style-horizontal .stp-horizontal-table tbody td.stp-cell-tiername {
    background: #f7f7f7;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.stp-style-horizontal .stp-horizontal-table tbody td.stp-cell-price {
    text-align: center;
    color: var(--e-global-color-primary, #2e6bc6);
    font-weight: 600;
    font-size: 16px;
}

.stp-style-horizontal .stp-horizontal-table tbody tr:hover td {
    background: #f0f6fc;
}

.stp-style-horizontal .stp-horizontal-table tbody tr:hover td.stp-cell-tiername {
    background: #e5f0fa;
}

.stp-style-horizontal .stp-horizontal-table .stp-no-price {
    color: #999;
    font-weight: normal;
}

/* Responsive */
@media (max-width: 768px) {
    .stp-shortcode-wrapper {
        padding: 15px;
    }

    .stp-table-title {
        font-size: 18px;
    }

    .stp-style-horizontal .stp-pricing-horizontal {
        overflow-x: auto;
    }

    .stp-style-horizontal .stp-horizontal-table {
        min-width: 100%;
    }

    .stp-style-horizontal .stp-horizontal-table thead th,
    .stp-style-horizontal .stp-horizontal-table tbody td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .stp-style-horizontal .stp-horizontal-table thead th.stp-header-tiername {
        min-width: 150px;
    }

    .stp-style-horizontal .stp-horizontal-table thead th.stp-header-quantity {
        min-width: 80px;
    }

    .stp-style-horizontal .stp-horizontal-table tbody td.stp-cell-price {
        font-size: 14px;
    }
}
