/* ============================================
   Biaoge Pricing Table Styles
   ============================================ */

.biaoge-pricing-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 2em auto;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

.biaoge-pricing-scroll {
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    /* max-height set via inline style from block attributes */
}

/* ---- Table Base ---- */
.biaoge-pricing-table {
    width: 100%;
    /* min-width set dynamically via inline style based on column count */
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* ---- Header (sticky top) ---- */
.biaoge-pricing-table thead th {
    padding: 0;
    vertical-align: middle;
    text-align: center;
    font-weight: 600;
    border: none;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 2;
}

.biaoge-corner-cell {
    background: #fff;
    border: none !important;
}

.biaoge-plan-header {
    padding: 14px 10px !important;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 2;
    min-width: 140px;
}

.biaoge-plan-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.biaoge-plan-price {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
}

/* ---- Body ---- */
.biaoge-pricing-table tbody td {
    padding: 16px 12px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
    background: #fff;
}

/* ---- First column ---- */
.biaoge-row-label {
    text-align: left !important;
    font-weight: 500;
    color: #555;
    padding-left: 20px !important;
    background: #fafafa !important;
    line-height: 1.5;
}

.biaoge-row-label-empty {
    background: transparent !important;
    border-color: transparent !important;
    padding: 0 !important;
}

.biaoge-sub {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.biaoge-cell {
    font-weight: 500;
    color: #444;
    min-width: 140px;
}

.biaoge-free {
    color: #999;
}

/* ---- Row Label Content (images left + text right) ---- */
.biaoge-label-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.biaoge-row-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex-shrink: 0;
}

.biaoge-label-text {
    flex: 1;
    min-width: 0;
}

/* ---- Thumbnails ---- */
.biaoge-thumb-wrap {
    position: relative;
    display: inline-block;
}

.biaoge-thumb {
    object-fit: cover;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    cursor: pointer;
    display: block;
}

/* Zoom tooltip — created by biaoge-front.js */
.biaoge-zoom-tooltip {
    display: none;
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    padding: 4px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 30px rgba(0,0,0,0.22);
}

.biaoge-zoom-img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---- Section Divider ---- */
.biaoge-section-divider td {
    padding: 8px 0 !important;
    border-bottom: none !important;
    background: transparent !important;
}

/* ---- Hover Effect ---- */
.biaoge-pricing-table tbody tr:hover td {
    background: #f5f8fc;
}

.biaoge-pricing-table tbody tr:hover .biaoge-row-label {
    background: #eef3f8 !important;
}

.biaoge-section-divider:hover td {
    background: transparent !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .biaoge-pricing-wrapper {
        margin: 1em 0;
    }

    .biaoge-pricing-table {
        font-size: 12px;
    }

    .biaoge-plan-name {
        font-size: 12px;
    }

    .biaoge-plan-price {
        font-size: 10px;
    }

    .biaoge-plan-header {
        padding: 10px 6px !important;
    }

    .biaoge-pricing-table tbody td {
        padding: 12px 6px;
    }

    .biaoge-label-content {
        gap: 6px;
    }

    .biaoge-zoom-tooltip {
        display: none !important;
    }
}

/* ---- Kadence Theme Compatibility ---- */
.entry-content .biaoge-pricing-table,
.kadence-inner-column .biaoge-pricing-table,
.wp-block-kadence-column .biaoge-pricing-table {
    margin: 0;
}

.entry-content .biaoge-pricing-wrapper {
    max-width: 100%;
}
