/*
 Theme Name: Astra Child
 Template: astra
*/

/* Add basic reset to avoid conflicts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Let the parent container (e.g., Spectra Pro or Astra) control the width */
.transfer-partners-wrapper {
    width: 100% !important; /* Inherit the parent container's width (e.g., 80%) */
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
}

/* Ensure child elements respect the parent container's width */
.transfer-partners-wrapper > .bonus-section,
.transfer-partners-wrapper > .search-container,
.transfer-partners-wrapper > .alliance-filter-table,
.transfer-partners-wrapper > #transfer-partners-table {
    width: 100% !important; /* Inherit the wrapper's width */
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Adjust table layout for dynamic width */
.transfer-partners-wrapper > #transfer-partners-table {
    table-layout: auto !important;
}

/* Preserve minimum width for first column */
.transfer-partners-wrapper > #transfer-partners-table colgroup col:first-child {
    min-width: 300px !important;
}

/* Mobile-specific adjustments (including iPad) */
@media only screen and (max-width: 1024px) {
    .transfer-partners-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .transfer-partners-wrapper > .bonus-section,
    .transfer-partners-wrapper > .search-container,
    .transfer-partners-wrapper > .alliance-filter-table,
    .transfer-partners-wrapper > #transfer-partners-table {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .transfer-partners-wrapper > #transfer-partners-table colgroup col:first-child {
        min-width: 200px !important; /* Adjust for smaller screens */
    }
}

/* Remove aggressive global overrides to allow parent container styling */
.spectra-container,
.wp-block-container,
.ast-container {
    /* Let the theme or plugin control width and padding */
    width: auto !important;
    max-width: none !important;
    padding: inherit !important;
    margin: inherit !important;
}

/* Remove overly aggressive img rule to prevent interference with logo sizes */
.transfer-partners-wrapper img {
    /* Let specific classes (e.g., .bonus-logo, .alliance-image) control dimensions */
    width: auto !important;
}