/* Ring Size Table Styles */
.ring-size-table-wrapper {
    overflow-x: auto;
    margin: 0.5rem 0 1rem;
    border-radius: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.ring-size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ring-size-table thead {
    background: linear-gradient(135deg, #7f4d5a, #d08aa1);
}

.ring-size-table th {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    border-bottom: 2px solid rgba(127, 77, 90, 0.25);
    vertical-align: middle;
}

.ring-size-table th:first-child {
    border-top-left-radius: 0.75rem;
}

.ring-size-table th:last-child {
    border-top-right-radius: 0.75rem;
}

/* Stacked header cells for mobile optimization */
.ring-size-table__th-stacked .ring-size-table__th-main,
.ring-size-table__th-stacked .ring-size-table__th-sub,
.ring-size-table__th-stacked .ring-size-table__th-sub-mobile {
    display: block;
}

.ring-size-table__th-main {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.ring-size-table__th-sub {
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.85;
    line-height: 1.2;
}

.ring-size-table__th-sub-mobile {
    display: none;
}

.ring-size-table td {
    padding: 0.65rem 0.4rem;
    text-align: center;
    border-bottom: 1px solid rgba(127, 77, 90, 0.12);
    color: rgba(34, 30, 31, 0.88);
}

.ring-size-table tbody tr:nth-child(even) {
    background: rgba(216, 169, 180, 0.08);
}

.ring-size-table tbody tr:hover {
    background: rgba(216, 169, 180, 0.18);
}

.ring-size-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 0.75rem;
}

.ring-size-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 0.75rem;
}

/* Numbered list styles for steps */
.section-card__list--numbered {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step-counter;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-card__list--numbered li {
    position: relative;
    padding-left: 2.5rem;
    line-height: 1.6;
    counter-increment: step-counter;
}

.section-card__list--numbered li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7f4d5a, #d08aa1);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-card__list--centered {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

/* Text paragraph style */
.section-card__text {
    line-height: 1.7;
    color: rgba(34, 30, 31, 0.85);
}

/* Mobile styles */
@media (max-width: 575.98px) {
    .ring-size-table {
        font-size: 0.8rem;
    }

    .ring-size-table th {
        padding: 0.6rem 0.25rem;
    }

    .ring-size-table__th-main {
        font-size: 0.8rem;
    }

    .ring-size-table__th-sub {
        font-size: 0.65rem;
    }

    .ring-size-table__th-sub-mobile {
        display: block;
        font-weight: 400;
        font-size: 0.65rem;
        opacity: 0.85;
        line-height: 1.2;
    }

    .ring-size-table td {
        padding: 0.55rem 0.2rem;
        font-size: 0.8rem;
    }

    .section-card__list--numbered li {
        padding-left: 2.2rem;
    }

    .section-card__list--numbered li::before {
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.8rem;
    }
}

/* Extra small mobile */
@media (max-width: 374px) {
    .ring-size-table {
        font-size: 0.72rem;
    }

    .ring-size-table th {
        padding: 0.5rem 0.15rem;
    }

    .ring-size-table__th-main {
        font-size: 0.72rem;
    }

    .ring-size-table__th-sub,
    .ring-size-table__th-sub-mobile {
        font-size: 0.6rem;
    }

    .ring-size-table td {
        padding: 0.5rem 0.15rem;
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ring-size-table tbody tr {
        transition: none;
    }
}
