/* ============= DESKTOP TABLE LAYOUT ============= */
.ipm-support-table {
    width: 100%;
    border-collapse: collapse;
}

.ipm-support-table th {
    background: #14203A;
    text-align: center;
    padding: 12px;
    color: #f7f7f7;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.ipm-support-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
}

.ipm-support-table tbody tr {
    transition: background-color 0.3s ease;
}

.ipm-support-table tbody tr:hover {
    background-color: #f9f9f9;
}

.ipm-support-link {
    font-size: 18px;
    color: #e82e50;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.ipm-support-link:hover {
    opacity: 0.8;
}

.ipm-support-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ipm-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

/* ============= MOBILE CARD LAYOUT ============= */
@media (max-width: 600px) {
    .ipm-support-table {
        border: none;
        border-collapse: separate;
        border-spacing: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
        background: transparent;
    }

    .ipm-support-table thead {
        display: none;
    }

    .ipm-support-table tbody {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .ipm-support-table tr {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        padding: 0;
        overflow: hidden;
    }

    .ipm-support-table tr:hover {
        background: #fafafa;
        border-color: #14203A;
    }

    .ipm-support-table td {
        padding: 12px 16px;
        border: none;
        border-bottom: 1px solid #e5e5e5;
        display: flex;
        flex-direction: column;
    }

    .ipm-support-table td:last-child {
        border-bottom: none;
    }

    .ipm-support-table td:first-child {
        padding-top: 16px;
    }

    .ipm-support-table td:last-child {
        padding-bottom: 16px;
    }

    /* Label styling for mobile */
    .ipm-support-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #14203A;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }

    .ipm-support-table td:first-child::before {
        content: "Product Name";
    }

    .ipm-support-table td:nth-child(2)::before {
        content: "Description";
    }

    .ipm-support-table td:nth-child(3)::before {
        content: "Link";
    }

    .ipm-support-table td:first-child {
        color: #333;
        font-weight: 600;
    }

    .ipm-support-link {
        margin-top: 6px;
        font-size: 16px;
        width: fit-content;
    }

    .ipm-support-table-wrap {
        overflow-x: visible;
    }
}

@media (max-width: 480px) {
    .ipm-support-table tr {
        margin-bottom: 8px;
    }

    .ipm-support-table td {
        padding: 10px 14px;
        font-size: 13px;
    }

    .ipm-support-link {
        font-size: 15px;
    }
}

/* ============= TABS CONTAINER ============= */
.ipm-support-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ============= TAB LINK STYLING ============= */
.ipm-support-tab {
    padding: 5px;
    background: #14203A;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    width: 115px;
    text-align: center;
}

.ipm-support-tab:hover {
    background: #444;
    transform: translateY(-2px);
}

/* ============= ACTIVE TAB STATE ============= */
.ipm-support-tab.active {
    background: #e82e50;
    color: #fff;
    border-color: #c41f3f;
    box-shadow: 0 4px 8px rgba(232, 46, 80, 0.3);
}

.ipm-support-tab.active:hover {
    background: #d02545;
    box-shadow: 0 6px 12px rgba(232, 46, 80, 0.4);
}

/* ============= TABLET VIEW (601px - 900px) ============= */
@media (max-width: 900px) {
    .ipm-support-tabs {
        gap: 10px;
        margin-bottom: 16px;
    }

    .ipm-support-tab {
        padding: 5px;
        font-size: 16px;
    }
}


/* ============= EXTRA SMALL MOBILE (480px and below) ============= */
@media (max-width: 680px) {
    .ipm-support-tabs {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .ipm-support-tab {
        padding: 5px;
        font-size: 16px;
    }

    .ipm-support-tab:hover {
        background: #1e2a4a;
        transform: none;
    }

    .ipm-support-tab.active {
        background: #e82e50;
        color: #fff;
        border: none;
        box-shadow: none;
    }

    .ipm-support-tab.active:hover {
        background: #d02545;
        box-shadow: none;
    }

    a.ipm-support-link {
        text-align: center;
        width: auto;
    }
    .ipm-support-tab {
        width: 45%;
        text-align: center;
    }
}

/* ============= ANIMATION ============= */
@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ipm-support-tab {
    animation: tabSlideIn 0.3s ease-out;
}