/* ═══════════════════════════════════════════
   Gads Table Component
   ═══════════════════════════════════════════ */

.gads-table-wrapper {
    width: 100%;
    margin: 0 auto;
}

.gads-table--scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gads-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

.gads-table th,
.gads-table td {
    padding: 12px 24px;
    border: none;
    vertical-align: middle;
    line-height: 1.5;
}

/* ── Header ── */

.gads-table thead th {
    background-color: #e891a5;
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 14px 24px;
}

/* ── Body ── */

.gads-table tbody td {
    background-color: #fff;
    color: #888;
    text-align: center;
}

.gads-table tbody tr:nth-child(even) td {
    background-color: #fdf0f3;
}

/* ── Text + Subtext ── */

.gads-table__text {
    display: block;
}

.gads-table__subtext {
    display: block;
    font-weight: 400;
    font-size: 0.85em;
    opacity: 0.9;
    margin-top: 2px;
}

/* ── Responsive: Horizontal Scroll ── */

.gads-table--scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Responsive: Stack on Mobile ── */

@media (max-width: 768px) {
    .gads-table--stack table,
    .gads-table--stack thead,
    .gads-table--stack tbody,
    .gads-table--stack th,
    .gads-table--stack td,
    .gads-table--stack tr {
        display: block;
    }

    .gads-table--stack thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .gads-table--stack tbody tr {
        margin-bottom: 12px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .gads-table--stack tbody td {
        border: none;
        border-bottom: 1px solid #f5e5e8;
        position: relative;
        padding: 10px 16px 10px 45%;
        text-align: right;
        white-space: normal;
        word-wrap: break-word;
    }

    .gads-table--stack tbody td:last-child {
        border-bottom: none;
    }

    .gads-table--stack tbody td::before {
        content: attr(data-label);
        position: absolute;
        top: 50%;
        left: 16px;
        transform: translateY(-50%);
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        font-weight: 600;
        color: inherit;
    }
}
