.wc-hp-table {
    margin: 0 0 1.5em;
    border: 1px solid #DFECF1;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
}

/* ------------------------------------------------------------------ */
/* Header                                                               */
/* ------------------------------------------------------------------ */

.wc-hp-table__header {
    background: linear-gradient(90deg, #ECF5F9 0%, #FFFFFF 100%);
    border-bottom: 1px solid #DFECF1;
    padding: 0.75rem 1rem;
    line-height: 1 !important;
}

.wc-hp-table__group-name {
    font-size: 1rem;
    font-weight: 700;
    color: #212121;
    line-height: 1 !important;
}


/* ------------------------------------------------------------------ */
/* Scroll wrapper                                                        */
/* ------------------------------------------------------------------ */

.wc-hp-table__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ------------------------------------------------------------------ */
/* Table resets                                                          */
/* ------------------------------------------------------------------ */

.wc-hp-table__table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    font-size: 0.8rem !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wc-hp-table__table thead,
.wc-hp-table__table tbody,
.wc-hp-table__table tr {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-hp-table__table th {
    padding: 0.5rem 0.6rem !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #6b7280 !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #DFECF1 !important;
    vertical-align: bottom !important;
    white-space: nowrap !important;
}

.wc-hp-table__table td {
    padding: 0.5rem 0.6rem !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #DFECF1 !important;
    color: #111827 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.wc-hp-table__table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Stat columns shrink to content */
.wc-hp-table__table th:not(.wc-hp-table__team-col),
.wc-hp-table__table td:not(.wc-hp-table__team-col) {
    width: 1% !important;
    min-width: 0 !important;
}

/* ------------------------------------------------------------------ */
/* Team column (sticky)                                                  */
/* ------------------------------------------------------------------ */

.wc-hp-table__table th.wc-hp-table__team-col,
.wc-hp-table__table td.wc-hp-table__team-col {
    text-align: left !important;
    width: auto !important;
    max-width: 30px !important;
    position: sticky !important;
    left: 0 !important;
    background: #fff !important;
    z-index: 1 !important;
}

.wc-hp-table__table thead th.wc-hp-table__team-col {
    z-index: 2 !important;
}

.wc-hp-table__team {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.wc-hp-table__flag {
    display: block;
    flex-shrink: 0;
    border-radius: 2px;
}

.wc-hp-table__team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

/* ------------------------------------------------------------------ */
/* Scotland highlight                                                    */
/* ------------------------------------------------------------------ */

.wc-hp-table__row--highlight td {
    background: #ECF5F9 !important;
}

.wc-hp-table__row--highlight td.wc-hp-table__team-col {
    background: #ECF5F9 !important;
}

.wc-hp-table__team-name--highlight {
    font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Points column                                                         */
/* ------------------------------------------------------------------ */

.wc-hp-table__pts {
    font-weight: 700 !important;
}

/* ------------------------------------------------------------------ */
/* Form badges                                                           */
/* ------------------------------------------------------------------ */

.wc-hp-table__form {
    display: inline-flex;
    gap: 2px;
}

.wc-hp-table__result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff !important;
    border-radius: 2px;
    line-height: 1;
    border: none !important;
}

.wc-hp-table__result--w {
    background-color: #16a34a !important;
}

.wc-hp-table__result--d {
    background-color: #d97706 !important;
}

.wc-hp-table__result--l {
    background-color: #dc2626 !important;
}

/* ------------------------------------------------------------------ */
/* Footer / CTA                                                          */
/* ------------------------------------------------------------------ */

.wc-hp-table__footer {
    background: linear-gradient(90deg, #FFFFFF 0%, #ECF5F9 100%);
    border-top: 1px solid #DFECF1;
    padding: 0.65rem 1rem;
    text-align: right;
    line-height: 1 !important;
}

.wc-hp-table__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.78rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.wc-hp-table__cta:hover {
    text-decoration: underline;
}

.wc-hp-table__cta-arrow {
    flex-shrink: 0;
}
