/* Targeted reset for search results containers only */
.iki-search-results-container,
.iki-quote-request-main {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.iki-search-results-container *,
.iki-quote-request-main * {
    box-sizing: border-box;
}

/* Basic reset */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* FORCE FULL WIDTH - Override ALL WordPress Theme Constraints for Search Results */

/* Force HTML and Body to use full width */
html,
body {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Complete WordPress Theme Override */
body,
#page,
#main,
.site,
.site-content,
.site-main,
.wp-site-blocks,
.wp-block-group,
.wp-block-group__inner-container,
.wp-container,
.entry-content,
.post-content,
.page-content,
.content-area,
.primary,
.main-content,
.is-layout-constrained {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Plugin Container Full Width Override */
.iki-search-results-container,
.search-result-container {
    max-width: 100vw !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

.margin-top-footer{

  margin-top: 2.5rem;

}

.iki-suggested-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end; /* align buttons to right */
}

.iki-suggested-actions .btn {
    padding: 0.65rem 1.5rem;
    border: none;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.iki-suggested-actions .btn-green {
    background-color: #4CAF50; /* green */
    color: white;
}

.iki-suggested-actions .btn-blue {
    background-color: #1976d2; /* blue */
    color: white;
}

.iki-suggested-actions .btn:hover {
    opacity: 0.9;
}

.iki-search-res-portal-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.iki-search-res-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.iki-search-res-portal-logo {
    color: #3b82f6;
    font-size: 1.5rem;
    font-weight: 600;
}

.iki-search-res-quote-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.iki-search-res-quote-text {
    color: #64748b;
    font-size: 0.9rem;
}

.iki-search-res-quote-number {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
}

.iki-search-res-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.iki-quote-request-main {
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;     /* center vertically */
    min-height: 100vh;       /* take full screen height (optional) */
    /* text-align: left;      center inline content like text */
}

.iki-quote-request-main-container {
    max-width: 1400px;
    padding: 2rem;
}

.iki-search-res-search-header {
    text-align: center;
    margin-bottom: 3rem;
}

.iki-search-res-search-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.iki-search-res-search-count {
    color: #64748b;
    font-size: 1rem;
}

.iki-search-res-results-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}



.iki-quote-request-results-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}


.iki-quote-request-results-table table {
    border-collapse: collapse;
    margin: 0 auto; /* ensures table is centered */
}

.iki-suggested-parts-table {
  margin-top: 5%;
    background: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(228, 223, 223, 0.1);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.iki-suggested-parts-table th {
    background: #bebebe;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}


td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

.iki-search-res-serial-number {
    color: #64748b;
    font-family: monospace;
    font-size: 0.9rem;
}

.iki-search-res-product-number {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
}

.iki-search-res-product-number:hover {
    text-decoration: underline;
}

.iki-search-res-description {
    max-width: 600px;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.4;
}

.iki-search-res-quantity {
    text-align: center;
    color: #374151;
    font-weight: 500;
}


.qty-input {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    color: #374151;
    background: #f8fafc;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
}

.qty-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}



.iki-search-res-quantity-dropdown {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    color: #64748b;
}

.iki-search-res-add-to-quote-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.iki-search-res-add-to-quote-btn:hover {
    background: #eff6ff;
    text-decoration: underline;
}

.iki-search-res-portal-footer {
    margin-top: 4rem;
    padding: 2rem;
    /* border-top: 1px solid #e2e8f0; */
    background: white;
}

.iki-search-res-footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iki-search-res-footer-logo {
    color: #3b82f6;
    font-size: 1.25rem;
    font-weight: 600;
}

.iki-search-res-footer-nav {
    display: flex;
    gap: 2rem;
}

.iki-search-res-footer-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
}

.iki-search-res-footer-nav a:hover {
    color: #3b82f6;
}

.iki-search-res-footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.iki-search-res-footer-copyright {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.iki-search-res-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.iki-search-res-social-link {
    color: #64748b;
    text-decoration: none;
    font-size: 1.25rem;
}

.iki-search-res-social-link:hover {
    color: #3b82f6;
}

.iki-search-res-made-with {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Mobile styles - only apply to mobile devices */
@media (max-width: 480px) {
    .iki-search-res-header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .iki-search-res-main-container {
        padding: 1rem;
    }

    .iki-search-res-search-title {
        font-size: 1.5rem;
    }

    table {
        font-size: 0.8rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }

    /* Hide desktop elements on mobile - ONLY FOR SEARCH RESULTS TABLES */
    .desktop-description,
    .desktop-quantity,
    .desktop-action-cell,
    .iki-search-res-results-table thead th:nth-child(3),
    .iki-search-res-results-table thead th:nth-child(4),
    .search-result-container thead th:nth-child(3),
    .search-result-container thead th:nth-child(4) {
        display: none !important;
    }

    /* Show mobile elements */
    .mobile-description-row {
        display: table-row !important;
    }

    .mobile-description {
        display: table-cell !important;
        padding: 0.5rem;
        font-size: 0.8rem;
        color: #666;
        border-bottom: 1px solid #e2e8f0;
        border-top: none !important;
    }

    /* Remove border between main row and description row on mobile */
    .main-row td {
        border-bottom: none !important;
    }

    .mobile-description-row {
        border-top: none !important;
    }

    .mobile-action-cell {
        display: table-cell !important;
        vertical-align: middle;
        text-align: center;
        padding: 0.75rem 0.5rem;
    }

    .mobile-add-btn {
        display: block !important;
        margin-bottom: 0.75rem;
    }

    .mobile-qty-container {
        display: block !important;
    }

    .mobile-qty {
        display: block !important;
        width: 70px;
        margin: 0 auto;
    }

    .iki-search-res-footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .iki-search-res-footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Tablet and Desktop styles - hide mobile elements and keep original layout */
@media (min-width: 481px) {
    .mobile-description-row,
    .mobile-description,
    .mobile-action-cell,
    .mobile-qty-container,
    .mobile-qty,
    .mobile-add-btn {
        display: none !important;
    }

    .desktop-action-cell {
        display: table-cell !important;
    }
}

/* Tablet specific adjustments if needed */
@media (min-width: 481px) and (max-width: 768px) {
    .iki-search-res-description {
        max-width: 300px;
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }
}
