.block-search .block-title-main {
    font-size: 1.5em;
    margin-bottom: 10px;
    background: #f5f5f5;
    padding: 10px;
    color: #fff;
    position: relative;
}

.static-top-header {
    display: none;
}

.page-title-wrapper {
    display: none !important;
}


#search-results-container {
    width: 100%;
    padding: 56px 0;
    display: none;
    margin: 0px auto 0;
    background: #fff;
    float: left;
}

#search-results-container h2 {
    text-align: center;
    font-size: 25px;
}

#search-results-container table.table.ajax-results {
    margin: 56px 0;
    box-shadow: none;
    padding: 0 0px;
    display: block;
}

#search-results-container table th,
#search-results-container table td {
    padding: 10px 21px;
    vertical-align: middle;
}

#search-results-container p {
    padding: 0 56px;
}

.block-search .block-content {
    width: 55%;
}

#search-results-container table td .action.view,
#search-results-container table td .action {
    background: #000;
    padding: 8px 15px;
    border: solid 1px #000;
    font-size: 12px;
    color: #fff;
    border-radius: 3px;
}

table.data.table.ajax-results tr:nth-child(even) {
    background-color: transparent;
}

#search-results-container table td .action.buy {
    color: #000;
    background: #fff;
    margin: 0;
}

#search-results-container table th:last-child {
    text-align: right;
    display: none;
}

#search-results-container table td:first-child {
    box-shadow: 0 1.90909px 3.18182px .636364px #00000040;
    width: 208px;
    background-color: rgb(254 207 8 / 1);
    border-radius: 4px;
    text-align: center;
    font-size: 28px;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    color: #000;
    line-height: 40px;
    z-index: 1;
    padding: 0;
}

#search-results-container table td:nth-child(2) {
    width: 80px;
    font-size: 12px;
    font-weight: 300;
    color: #6d6d6d;
    background: #f5f5f5;
    border-radius: 4px;
    margin: 0 auto 0 -4px;
    text-align: center;
}

#search-results-container table tr {
    display: flex;
    border-radius: 4px;
    align-items: center;
}

#search-results-container table tbody {
    display: flex;
    flex-wrap: wrap;
    background: transparent;
    border: none;
    box-shadow: none;
    justify-content: center;
    gap: 24px;
}

#search-results-container table thead {
    display: none;
}

#search-results-container table td .action .block-search .block-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* New Plate Search Grid Layout */


.plate-results-grid {
    width: 100%;
    max-width: 1000px;
    /* Increased max-width for 2 columns */
    margin: 20px auto;
}

.plate-results-header {
    display: none;
}

.plate-results-body {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    /* Gutter compensation */
}

.plate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px;
    width: 50%;
    /* 2 items per row */
    box-sizing: border-box;
    border-right: 1px solid #eee;
    /* Vertical border */
}

.plate-row:nth-child(2n) {
    border-right: none;
    /* Remove right border for even items */
}

/* Ensure top border for first two items */


.plate-row:nth-child(1),
.plate-row:nth-child(2) {
    border-top: 1px solid #eee;
}

/* Plate Information Column */


.plate-info {
    flex: 0 0 45%;
}

.plate-number-box {
    background-color: #fecf08;
    color: #000;
    font-weight: 900;
    text-align: center;
    border-radius: 6px;
    padding: 8px 15px;
    font-family: 'Number Plate', sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-block;
    min-width: 160px;
    /* Slightly reduced for 2-col */
}

/* Price Information Column */


.price-info {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-price {
    font-size: 20px;
    color: #28a745;
    font-weight: 800;
    line-height: 1.2;
}

.finance-price {
    font-size: 13px;
    color: #888;
    line-height: 1.2;
}

.finance-price span {
    color: #aaa;
}

.finance-price strong {
    color: #888;
}

/* Action Buttons Column */


.action-buttons {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 10px;
}

.action.buy-btn {
    background-color: #000;
    /* Black color */
    color: #fff !important;
    border: none;
    padding: 8px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    line-height: 1;
    min-width: 70px;
    display: inline-block;
}

.action.buy-btn:hover {
    background-color: green;
    text-decoration: none;
}

.action.enquire-btn {
    background-color: #fecf08;
    /* Yellow/Gold color */
    color: #fff;
    /* White icon usually */
    border: none;
    font-size: 24px;
    /* Increased icon size */
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    line-height: 1;
    min-width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action.enquire-btn .icon-envelope {
    color: #000;
    font-style: normal;
}

.action.enquire-btn:hover {
    background-color: #e5ba07;
}

/* Override existing container styles if needed */


#search-results-container table.table.ajax-results {
    display: none;
}

/* Specific overrides */


.platesearch-index-index #maincontent .column.main,
.platesearch-list-index #maincontent .column.main {
    width: 100%;
    padding: 0;
}

/* Mobile Responsiveness */


@media (max-width: 768px) {
    .plate-results-grid {
        max-width: 100%;
        margin: 0;
    }

    .plate-results-body {
        margin: 0;
    }

    .plate-row {
        width: 100%;
        border-right: none !important;
        padding: 10px;
    }

    .plate-row:first-child {
        border-top: 1px solid #eee;
    }

    .plate-number-box {
        font-size: 18px;
        min-width: 140px;
        padding: 8px 10px;
    }

    .main-price {
        font-size: 18px;
    }
}

.platesearch-index-index #maincontent .block.block-search,
.platesearch-list-index #maincontent .block.block-search {
    float: none;
    padding: 40px 80px;
    flex-wrap: wrap;
    width: 100%;
    background-image: url(../img/search-banner-bg.jpg);
    overflow: hidden;
    display: flex;
    align-items: start;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* horizontal center */
    align-items: center;
    /* vertical center */
    text-align: center;
}

#top-search-btn {
    opacity: 1 !important;
    z-index: 1005 !important;
    cursor: pointer !important;
    position: relative;
    pointer-events: auto;
}

.platesearch-index-index #plate_search_form,
.platesearch-list-index #plate_search_form {
    margin: 0 0 0 auto;
}

.form.minisearch .field.search .control input#query {
    font-size: 30px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 64px !important;
    height: 64px;
    text-align: center;
    width: 460px !important;
    border: none;
    box-shadow: none;
    padding: 15px 20px;
    border-radius: 5px 0 0px 5px;
    margin: 0;
    font-family: 'Number Plate' !important;
    font-size: 40px
}

.platesearch-index-index .block-search .actions,
.platesearch-list-index .block-search .actions {
    margin: 0 !important;
    width: 70px;
}

.platesearch-index-index .block-search .actions .search,
.platesearch-list-index .block-search .actions .search {
    border-radius: 0 5px 5px 0 !important;
    overflow: hidden;
    width: 100%;
    position: relative;
    background: #fdc83f !important;
    right: auto;
    height: 64px;

}

.platesearch-index-index #plate_search_form,
.platesearch-list-index #plate_search_form {
    display: flex;
    flex-wrap: wrap;
    max-width: 650px;
    justify-content: end;
}

.platesearch-index-index .block-search .actions .search::before,
.platesearch-list-index .block-search .actions .search::before {
    font-size: 38px;
    color: #000;
    line-height: 1;
}

.platesearch-index-index .block-search .control,
.platesearch-list-index .block-search .control {
    padding: 0;
    margin: 0 !important;
}

.platesearch-index-index .block-search .field.search,
.platesearch-list-index .block-search .field.search {
    margin: 0 !important;
}

.platesearch-index-index .toggle-advanced,
.platesearch-list-index .toggle-advanced {
    padding: 0 32px;
    background: #d6d7d9;
    letter-spacing: 1px;
    width: auto;
    height: 56px;
    border-radius: 5px;
    font-size: 15px;
    color: #000;
    font-weight: 600;
    margin: 24px 0 0 !important;
}

.form.minisearch .field.search {
    margin-bottom: 10px;
    position: relative;
    display: flex;
    align-items: center;
}

.form.minisearch .field.search .label {
    display: inline-block;
    width: 100px;
    margin-right: 10px;
}

.form.minisearch .field.search .control input {
    width: 200px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}

.form.minisearch .field.search .search-help {
    font-size: 1.2em;
    color: #007bff;
    cursor: pointer;
    margin-left: 10px;
}

.form.minisearch .actions {
    margin-top: 10px;
}

.form.minisearch .actions .action.search {
    background: #f4a81d;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

.advanced-search {
    background: #e9ecef;
    padding: 10px;
    border: 1px solid #ddd;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    order: 4;
}

div.advanced-search {
    position: relative;
    flex-direction: row;
    right: 0;
    left: 0;
    gap: 40px;
    top: 0;
    background: #d6d7d9;
    z-index: 1002;
    align-items: self-start;
    padding: 32px 90px;
    justify-content: flex-start;
    margin: 20px -80px 0;
    width: -webkit-fill-available;
}

button.advanced-search-btn:before {
    content: '\e615';
    font-family: 'icons-blank-theme';
    font-size: 38px;
    color: #000;
    line-height: 1;
}

.spinner-container {
    display: inline-block;
    position: relative;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #1979c3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.loading-text .dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

.loading-status {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}


/* Mobile Sidebar for Advanced Search */
@media (max-width: 768px) {

    /* Main Search Form Layout */
    .platesearch-index-index #plate_search_form,
    .platesearch-list-index #plate_search_form {
        display: flex !important;
        flex-wrap: nowrap !important;
        /* Ensure single row */
        align-items: stretch !important;
        width: 100% !important;
        justify-content: center;
        gap: 5px;
        /* Small gap between elements */
    }

    /* Input Field Container */
    .form.minisearch .field.search {
        flex: 1 !important;
        /* Take remaining space */
        width: auto !important;
        margin: 0 !important;
    }

    /* Input Field */
    .form.minisearch .field.search .control input#query {
        width: 100% !important;
        /* Fill container */
        min-width: 0 !important;
        /* Allow shrinking */
        border-radius: 5px !important;
        height: 64px !important;
        font-size: 24px !important;
        /* Slightly smaller text for mobile */
    }

    /* Search Action Container */
    .platesearch-index-index .block-search .actions,
    .platesearch-list-index .block-search .actions {
        width: 64px !important;
        /* Square button */
        flex: 0 0 64px !important;
        margin: 0 !important;
    }

    /* Search Button */
    .platesearch-index-index .block-search .actions .search,
    .platesearch-list-index .block-search .actions .search {
        width: 100% !important;
        border-radius: 5px !important;
        /* Rounded corners */
        height: 64px !important;
    }

    /* Advanced Toggle Button */
    .toggle-advanced {
        font-size: 0 !important;
        /* Hide text */
        padding: 0 !important;
        width: 64px !important;
        /* Match search button size */
        flex: 0 0 64px !important;
        height: 64px !important;
        background: #d6d7d9;
        position: static !important;
        /* flow with flexbox */
        right: auto !important;
        top: auto !important;
        margin: 0 !important;
        border-radius: 5px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .toggle-advanced:before {
        content: '\e609';
        /* Filter/Settings Icon */
        font-family: 'icons-blank-theme';
        font-size: 24px;
        color: #000;
        display: block;
    }

    div.advanced-search {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 75vh;
        background: #fff;
        z-index: 99999;
        padding: 20px 20px 20px !important;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        margin: 0 !important;
        display: block !important;
        /* Override JS toggle usage */
        flex-direction: column;
    }

    div.advanced-search.active {
        left: 0 !important;
    }

    .close-advanced-mobile {
        display: block !important;
        position: absolute;
        top: 10px;
        right: 15px;
        background: none;
        border: none;
        font-size: 32px;
        color: #333;
        line-height: 1;
        cursor: pointer;
        padding: 5px;
        z-index: 100000;
    }

    /* Adjust content inside sidebar */
    div.advanced-search .field {
        width: 100%;
        margin-bottom: 0px;
    }

    /* Reorder Layout: Buttons Top, Content Bottom */
    .format-tabs {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .tab {
        display: contents;
        /* Ungroup the tab container */
    }

    .tab-button {
        order: 1;
        /* Show all buttons first */
        width: 100%;
        text-align: center;
        padding: 10px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 8px;
        font-weight: bold;
    }

    .format-section .tab-content {
        order: 2;
        /* Content appears after all buttons */
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        padding: 20px 0 10px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        display: none;
        /* Let JS handle visibility - visible one will be order 2 */
        gap: 5px;
        background: transparent;
        justify-content: center;
    }

    .format-label {
        margin-bottom: 15px;
        display: block;
        font-weight: bold;
        text-align: center;
    }

    /* Styling Dropdowns */
    .tab-content select {
        width: 30% !important;
        flex: 1 0 30%;
        margin-bottom: 10px;
        background: #fff;
        border: 1px solid #ccc !important;
        border-radius: 4px;
        height: 40px;
        padding: 5px;
        appearance: auto;
        /* Ensure arrow is visible default browser style or custom */
        color: #333 !important;
    }

    /* Styling Buttons inside tab content */
    button.advanced-search-btn {
        width: 48% !important;
        height: 44px !important;
        margin: 10px 0 0 0 !important;
        border-radius: 4px !important;
        font-size: 0;
        /* Icon based */
        background: #fdc83f !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        float: none;
        flex: 1;
    }

    button.advanced-search-btn:before {
        font-size: 24px;
        /* Adjust icon size */
    }

    button.advanced-reset-btn {
        width: 48% !important;
        height: 44px;
        margin: 10px 0 0 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f0f0f0;
        border: 1px solid #ccc;
        border-radius: 4px;
        flex: 1;
    }
}

.advanced-reset-btn {
    margin-left: 10px;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.advanced-reset-btn:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

.advanced-reset-btn:active {
    background-color: #d0d0d0;
}

button.advanced-search-btn {
    border-radius: 0 5px 5px 0 !important;
    overflow: hidden;
    width: 55px;
    position: relative;
    right: auto;
    height: 71px;
    background: #fdc83f !important;
    margin: -16px;
    margin-left: 12px;
    font-size: 0;
}

.platesearch-index-index .format-section select,
.platesearch-list-index .format-section select {
    border: 2px solid #6d6d6d;
    color: #6d6d6d;
    width: 55px;
    appearance: none;
    margin-left: 6px;
}

.platesearch-index-index .format-section select:first-child,
.platesearch-list-index .format-section select:first-child {
    margin: 0;
}

div.advanced-search .field {
    width: 180px;
}

.platesearch-index-index .format-section .tab-button,
.platesearch-list-index .format-section .tab-button {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
    border-radius: 5px;
    overflow: hidden;
    width: 120px;
    letter-spacing: 0;
    font-weight: 700;
}

.platesearch-index-index .format-section .tab-content,
.platesearch-list-index .format-section .tab-content {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    background: #fff;
    border-radius: 4px;
}

span.format-label {
    font-weight: 600;
    color: #000;
    line-height: 1;
    margin: 0;
    position: relative;
    top: 0px;
}

.platesearch-index-index .format-section .tab-button:hover,
.platesearch-list-index .format-section .tab-button:hover {
    background: #fff;
    box-shadow: none;
}

div.advanced-search .field * {
    width: 100% !important;
}

div.advanced-search .field label {
    line-height: 1;
}

.platesearch-index-index div.advanced-search .field input#max_price,
.platesearch-list-index div.advanced-search .field input#max_price {
    border: none;
    border-radius: 2px !important;
    box-shadow: 0px 0px 1px 1px #000;
    padding: 8px 20px;
    height: 42px;
    background: #fff;
}

.advanced-search .field {
    margin-bottom: 0;
}

.advanced-search .field label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
}

.advanced-search .control input[type="number"] {
    width: 100px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.format-section {
    margin-bottom: 0;
}

.format-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    display: inline-block;
}

.format-tabs {
    display: flex;
    gap: 10px;
}

.tab {
    flex: 1;
}

.tab-button {
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-weight: bold;
}

.tab-content {
    margin-top: 5px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.tab-content select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 60px;
}

.advanced-search-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 5px;
}

.advanced-search-submit {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    align-self: flex-end;
}

.toggle-advanced {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    width: 150px;
    text-align: center;
}

.ajax-search-results {
    margin-top: 10px;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.ajax-search-results p {
    padding: 10px;
    margin: 0;
    color: #666;
}

.data.table.ajax-results {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.data.table.ajax-results th,
.data.table.ajax-results td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: left;
    font-size: 0.9em;
}

.data.table.ajax-results th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.data.table.ajax-results tr:nth-child(even) {
    background-color: #f9f9f9;
}


.data.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data.table th,
.data.table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.data.table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.data.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Extend the table layout for better clarity */




.data.table.ajax-results,
.data.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    /* Add margin for spacing */
}

.data.table th,
.data.table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 0.9em;
}

/* Add hover effects to the table rows */


.data.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data.table tr:hover {
    background-color: #f1f1f1;
}

/* Add extra styles for table headers for better visibility */




.data.table th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-transform: uppercase;
    /* Make headers more distinct */
    letter-spacing: 1px;
    /* Add spacing between letters */
    font-size: 1em;
    /* Increase font size slightly */
}

/* Add hover effect for buttons */


.data.table .action.view:hover,
.data.table .action.buy:hover {
    opacity: 0.8;
    /* Add subtle opacity effect when hovered */
}

/* Add rounded borders to the table */


.data.table,
.data.table.ajax-results {
    border-radius: 8px;
    /* Add rounded corners to the entire table */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Add shadow for depth */
}

/* Make the price column standout by applying a background color */


.data.table.ajax-results td:nth-child(2),
.data.table td:nth-child(2) {
    background-color: #f9f9f9;
    font-weight: bold;
    color: #333;
}

/* Improve the button styles with subtle animations */


.data.table .action.view,
.data.table .action.buy {
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}


.ajax-search-results {
    margin-top: 10px;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.ajax-search-results p {
    padding: 10px;
    margin: 0;
    color: #666;
}



@media (max-width:1280px) {
    div.advanced-search {
        padding: 15px 40px;
    }

    .platesearch-index-index .format-section .tab-content,
    .platesearch-list-index .format-section .tab-content {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        min-width: auto;
    }

    .format-tabs {
        display: block;
    }

    .platesearch-index-index .format-section .tab-button,
    .platesearch-list-index .format-section .tab-button {
        margin: 10px 0 5px;
    }

    .platesearch-index-index #maincontent .block.block-search,
    .platesearch-list-index #maincontent .block.block-search {
        flex-wrap: wrap;
    }

    .block-search div.block-title {
        font-size: 30px !important;
    }
}

@media (max-width:991px) {
    .block-search div.block-title {
        font-size: 26px !important;
    }

    .platesearch-index-index #maincontent .block.block-search,
    .platesearch-list-index #maincontent .block.block-search {
        padding: 30px;
    }

    .format-section {
        width: 100%;
    }

    .format-tabs {
        display: flex;
        flex-direction: column;
        align-items: self-start;
    }

    div.advanced-search {
        padding: 15px 40px;
        margin: 20px -40px 0;
        flex-wrap: wrap;
    }

    span.format-label {
        top: 9px;
        font-size: 14px;
    }
}

/* Add responsiveness for smaller screen sizes */


@media (max-width: 767px) {

    .data.table th,
    .data.table td {
        font-size: 0.8em;
        padding: 4px;
    }

    .platesearch-index-index #maincontent .block.block-search,
    .platesearch-list-index #maincontent .block.block-search {
        justify-content: center;
    }

    #search-results-container h2 {
        font-size: 25px;
    }

    #search-results-container table.table.ajax-results {
        margin: 48px 0;
    }

    #search-results-container table th,
    #search-results-container table td {
        padding: 5px 10px;
    }

    #search-results-container table td .action.view,
    #search-results-container table td .action {
        padding: 5px 10px;
        font-size: 10px;
    }

    .form.minisearch .field.search .control input#query {
        width: auto !important;
        transform: none;
        position: inherit;
        max-width: 250px;
        line-height: 1 !important;
        height: 56px;
    }

    .platesearch-index-index .block-search .control {
        width: auto !important;
    }

    .form.minisearch .field.search label.label,
    .platesearch-index-index .block-search .actions .search span {
        display: none !important;
    }

    .platesearch-index-index .block-search .actions {
        width: 65px;
    }

    .platesearch-index-index .block-search .control {
        border: none;
    }

    .platesearch-index-index .block-search .actions .search {
        height: 56px;
    }

    .platesearch-index-index #plate_search_form {
        justify-content: center;
    }

    div.advanced-search .field {
        width: 100%;
    }

    .platesearch-index-index div.advanced-search .field input#max_price {
        position: inherit;
    }

    .platesearch-index-index .format-section select {
        width: 34px;
        margin-left: 2px;
        height: 32px;
        appearance: none;
    }

    button.advanced-search-btn {
        height: 64px;
        width: 64px;
    }

    .platesearch-index-index .block-search .actions .search,
    .platesearch-index-index .block-search .actions .search:before {
        display: block;
        content: '\e615';
        font-family: 'icons-blank-theme';
    }

    .block-search div.block-title {
        line-height: 1;
        margin: 0 0 30px;
    }

    div.advanced-search {
        flex-wrap: wrap;
        row-gap: 0;
        position: relative;
        margin: 20px -30px -30px;
        width: auto;
        top: inherit;
        padding: 32px 24px;
    }

    .data.table .action.view,
    .data.table .action.buy {
        padding: 4px 8px;
    }

    .data.table .action.view,
    .data.table .action.buy {
        font-size: 0.8em;
        padding: 4px 8px;
    }
}

/* Style for no results message */


.data.table.ajax-results .no-results {
    text-align: center;
    font-size: 1.2em;
    color: #999;
    padding: 20px;
}

/* General container styling */


.plate-details-container1 {
    font-family: Arial, sans-serif;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Title styling */


.plate-details-container h2 {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

/* Paragraph styling */


.plate-details-container p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

/* Highlighted text (strong) */


.plate-details-container p strong {
    color: #000;
}

/* Styling for the Buy Now button */


.plate-details-container form button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    /* Bootstrap primary blue */
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.plate-details-container form button:hover {
    background-color: #0056b3;
    /* Darker blue for hover effect */
}

@media (max-width:390px) {
    .platesearch-index-index .block-search .control {
        width: 100% !important;
    }

    .platesearch-index-index .block-search .actions {
        width: 100% !important;
    }

    .block-search div.block-title {
        text-align: center;
    }

    .form.minisearch .field.search .control input#query {
        border-radius: 4px;
    }

    .form.minisearch .actions .action.search {
        border-radius: 4px !important;
        max-width: 250px;
        margin: 15px auto 0;
    }

    button.advanced-search-btn {
        width: 100%;
        margin: 12px 0 0;
        height: 50px;
        border-radius: 4px !important;
    }

    .platesearch-index-index .format-section .tab-content {
        flex-wrap: wrap;
    }

    .platesearch-index-index .toggle-advanced {
        max-width: 250px;
    }
}

/* One Column Layout Styles */


.platesearch-main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure main content takes full width */


.page-layout-1column .column.main {
    width: 100% !important;
    padding: 0 !important;
}

.page-layout-1column .main.content {
    width: 100% !important;
    max-width: 100% !important;
}

/* Force one column layout for plate search */


.platesearch_plate_view .column.main {
    width: 100% !important;
    padding: 0 !important;
}

.platesearch_plate_view .sidebar {
    display: none !important;
}

/* Mobile grid overrides */


@media (max-width: 767px) {

    .plate-details-container .col-md-12,
    .plate-details-container .col-lg-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .plate-details-container .d-none.d-md-block {
        display: none !important;
    }

    .plate-details-container .plate-details-part {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Plate Details Page Styles */


.plate-details-container * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Reset & Base */


.plate-details-container {
    background-color: #f8f8f8;
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 20px 0;
}

@media only screen and (min-width: 1320px) {
    .plate-details-container .main-wrapper .container {
        max-width: 1320px !important;
        padding: 0 12px !important;
    }
}

/* Top Section (Form + Image) */


.plate-details-container .top-section {
    margin-bottom: 40px;
}

.plate-details-container .view-form {
    flex: 1 1 480px;
    background-color: #fff !important;
    border: solid #eaeaea !important;
    border-radius: 18px !important;
    border-width: 1px 1px 8px !important;
    padding: 30px !important;
    box-sizing: border-box;
}

.plate-details-container .car-image {
    flex: 1 1 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.plate-details-container .car-image {
    position: relative;
}

.plate-details-container .car-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* Number Plate Overlay */


.plate-details-container .car-image .plate-overlay {
    position: absolute;
    bottom: 105px;
    background: #fee100;
    border: 3px solid #000;
    border-radius: 8px;
    padding: 5px 3px;
    font-family: 'Rubik', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    white-space: nowrap;
    text-align: center;
    min-width: 154px;
}

/* Responsive plate overlay */


@media (max-width: 768px) {
    .plate-details-container .car-image .plate-overlay {
        font-size: 24px;
        padding: 10px 20px;
        min-width: 160px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .plate-details-container .car-image .plate-overlay {
        font-size: 20px;
        padding: 8px 16px;
        min-width: 140px;
        bottom: 10px;
    }
}

/* Form Head */


.plate-details-container .yellow-plate {
    text-align: center !important;
    border: 1px solid #000 !important;
    background: #fee100 !important;
    border-radius: 8px 8px 8px 8px !important;
    box-shadow: 0 6px 5px #0000001a !important;
    margin-top: 15px;
}

.plate-details-container .white-plate {
    text-align: center !important;
    border: 1px solid #000 !important;
    background: #fff !important;
    border-radius: 8px 8px 8px 8px !important;
    box-shadow: 0 6px 5px #0000001a !important;
}

.plate-details-container .view-form-head h2 {
    color: #000 !important;
    font-size: 56px !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    line-height: 100% !important;
    padding: 15px 0 !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

.plate-details-container .view-form-head p {
    background: #000;
    border-radius: 0 0 4px 4px;
    color: #fff;
    font-family: Rubik;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 27px;
    margin: 0;
    padding: 15px 0;
    text-align: center;
    text-transform: capitalize;
    margin-top: 15px;
}

.plate-details-container .view-form-head p span {
    font-weight: 700;
}

/* Form Body */


.plate-details-container .view-form-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plate-details-container .view-form-body ul li {
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #222;
    align-items: center;
    background: #f7f7f7;
    border: 1px solid #dfdfdf;
    display: flex;
    justify-content: space-between;
    padding: 13px 20px;
}

.plate-details-container .view-form-body ul li h2,
.plate-details-container .view-form-body ul li span {
    font-size: 16px !important;
    line-height: 0px;
    text-align: center;
    padding-top: 3px;
    text-transform: capitalize;
    font-weight: bold;
}

.plate-details-container .view-form-body ul li.total-free span {
    font-weight: 700;
    font-size: 18px;
}

.plate-details-container .view-form-body .total-free {
    background: #fff;
}

.plate-details-container .view-form-body .total-free h2 {
    font-size: 24px;
    font-weight: 600;
}

.plate-details-container .view-form-body .total-free span {
    font-size: 24px;
}

.plate-details-container .checkbox-section {
    margin-block: 20px;
    background: #ffffff;
}

.plate-details-container .add-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 5px 20px;
    border: 1px solid #ddd;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    min-height: 50px;
}

.plate-details-container .add-option:hover {
    background: #f9f9f9;
}

.plate-details-container .add-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plate-details-container .add-button {
    background-color: #42c600;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.plate-details-container .add-button:hover {
    background-color: #ccf0cc;
}

.plate-details-container .add-button.active {
    background-color: #42c600;
    color: #000;
}

.plate-details-container .dropdown-arrow {
    font-size: 18px;
    color: #555;
}

.plate-details-container .option-detail {
    display: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    padding: 14px 20px;
    font-size: 14px;
    margin-bottom: 12px;
    border-radius: 0 0 6px 6px;
    line-height: 1.6;
}

.plate-details-container .view-button-form {
    align-items: self-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 20px;
}

.plate-details-container .view-button-form button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: 0.3s ease;
}

.plate-details-container .view-button-form:not(.outline) button {
    background-color: #000;
    color: #fff;
}

.plate-details-container .view-button-form.outline button {
    border: 2px solid #000;
    background-color: #fff;
    color: #000;
}

.plate-details-container .visa-img {
    text-align: center;
    margin-top: 15px;
}

.plate-details-container .visa-img img {
    max-height: 40px;
}

/* Responsive */


@media (max-width: 992px) {
    .plate-details-container .top-section {
        flex-direction: column;
    }

    .plate-details-container .view-form {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .plate-details-container .car-image {
        flex: 1 1 100% !important;
        width: 100% !important;
        margin-top: 20px;
    }
}

/* Mobile specific styles */


@media (max-width: 767px) {
    .plate-details-container .top-section {
        flex-direction: column;
        gap: 20px;
    }

    .plate-details-container .view-form {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .plate-details-container .car-image {
        flex: 1 1 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .plate-details-container .car-image img {
        width: 100% !important;
        height: auto !important;
    }

    /* Ensure form takes full width on mobile */


    .plate-details-container .plate-details-part {
        width: 100% !important;
        float: none !important;
    }
}

@media (max-width: 768px) {
    .plate-details-container .view-form-head h2 {
        font-size: 24px;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
        border: 2px solid #000;
        border-radius: 4px;
        letter-spacing: 2px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        margin-block-end: 10px;
        background-color: #fff82d;
    }

    .plate-details-container .view-form {
        background-color: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .plate-details-container .view-form-head {
        text-align: center;
        border-bottom: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .plate-details-container .view-form-head p {
        background: #fff82d;
        text-transform: capitalize;
        padding: 14px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: bold;
        text-align: center;
        line-height: 1.5;
        color: #000;
        margin-bottom: 15px;
    }

    .plate-details-container .view-form-body ul li {
        font-size: 15px;
        color: #222;
        border: 0;
        background: #fff;
        border-bottom: 1px solid #ddd;
        padding: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 25px 20px;
    }

    .plate-details-container .view-form-body ul li h2,
    .plate-details-container .view-form-body ul li span {
        font-size: 14px;
        color: #000;
        margin: 0;
        font-weight: 400;
    }

    .plate-details-container .view-form-body ul li.view-form-table-heading {
        background-color: #0b57d0;
        font-weight: 700;
    }

    .plate-details-container .view-form-body ul li.view-form-table-heading h2 {
        font-weight: 700;
        color: #fff;
    }

    .plate-details-container .view-form-body ul li.view-form-table-heading span {
        font-weight: 700;
        color: #fff;
    }

    .plate-details-container .add-option {
        padding: 12px;
        font-size: 14px;
        border: 0;
        border-bottom: 1px solid #ccc;
    }

    .plate-details-container .add-button {
        font-size: 14px;
        padding: 8px 15px;
    }

    .plate-details-container .view-button-form {
        justify-content: end;
        margin-block: 30px;
    }

    .plate-details-container .view-button-form:not(.outline) button,
    .plate-details-container .view-button-form button {
        transition: 0.3s ease;
        padding: 13px 20px;
        font-size: 15px;
        font-weight: 600;
        background-color: #42c600;
        color: #000;
        border: none;
        border-radius: 4px;
        width: auto;
    }
}

/* Customer Gallery Styles */


.plate-details-container .customer-gallery {
    margin-bottom: 100px;
    margin-top: 50px;
    width: 100% !important;
}

/* Ensure customer gallery is always visible and full width */




.plate-details-container .customer-gallery {
    width: 100% !important;
    max-width: 100% !important;
}

.plate-details-container .customer-gallery-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    color: #222;
}

.plate-details-container .customer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure customer gallery takes full width on all screen sizes */


@media (max-width: 767px) {
    .plate-details-container .customer-gallery {
        display: block !important;
        width: 100% !important;
        margin: 30px 0 50px 0;
    }

    .plate-details-container .customer-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .plate-details-container .customer-card {
        margin-bottom: 15px;
    }
}

.plate-details-container .customer-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.plate-details-container .customer-star {
    display: flex;
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
}

.plate-details-container .customer-star li {
    color: #fcd503;
    font-size: 18px;
    margin-right: 4px;
}

.plate-details-container .customer-card p {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
}

.plate-details-container .customer-card h2 {
    font-size: 14px;
    color: #777;
    margin-bottom: 6px;
}

.plate-details-container .customer-card h3 a {
    font-size: 14px;
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
}

.plate-details-container .customer-card h3 a:hover {
    text-decoration: underline;
}

.plate-details-container .see-all-button {
    text-align: center;
    margin-top: 30px;
}

.plate-details-container .see-all-button a {
    font-size: 16px;
    color: #4285f4;
    font-weight: 600;
    text-decoration: none;
}

.plate-details-container .see-all-button a:hover {
    text-decoration: underline;
}

/* FAQ Section Styles */


.plate-details-container .faq-title {
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 40px;
}

.plate-details-container .faq-item {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.plate-details-container .faq-title-bar {
    background: linear-gradient(133.98deg, #f2f2f2, #f2f2f2);
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.plate-details-container .faq-title-bar.open {
    background: #fee100;
}

.plate-details-container .faq-title-bar::after {
    content: '▼';
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
    font-size: 20px;
}

.plate-details-container .faq-title-bar.open::after {
    transform: rotate(180deg);
}

.plate-details-container .faq-content {
    background: #fff;
    padding: 20px 24px;
    font-size: 18px;
    color: #333;
    display: none;
    animation: fadeIn 0.3s ease;
    line-height: 1.6;
}

.plate-details-container .faq-content.open {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile FAQ Section */


.plate-details-container .mobile-faq-section {
    margin-top: 30px;
    margin-bottom: 50px;
}

.plate-details-container .mobile-faq-section .faq-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.plate-details-container .mobile-faq-section .faq-item {
    margin-bottom: 12px;
}

.plate-details-container .mobile-faq-section .faq-title-bar {
    font-size: 16px;
    padding: 12px 16px;
}

.plate-details-container .mobile-faq-section .faq-content {
    font-size: 14px;
    padding: 16px 20px;
}

.column.main {
    width: 100% !important;
}

.plate-details-part {
    float: left;
    width: 49%;
}

.plate-details-container .customer-gallery.d-none,
.plate-details-container .customer-gallery.d-md-block {
    display: inline-block;
}

.d-block.d-md-none.text-center.text-uppercase {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    font-weight: bolder;
    font-size: 21px;
    box-shadow: 0 10px 14px #0000001a !important;
}

/* Button States and Interactions */


.plate-details-container .add-button {
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plate-details-container .add-button.active {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.plate-details-container .add-button.active:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    transform: translateY(-1px);
}

.plate-details-container .add-button:not(.active):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* FAQ Improvements */


.plate-details-container .faq-title-bar {
    transition: all 0.3s ease;
    user-select: none;
}

.plate-details-container .faq-title-bar:hover {
    background: #fee100 !important;
    transform: translateX(4px);
}

.plate-details-container .faq-content {
    transition: all 0.3s ease;
    border-top: 1px solid #eee;
}

/* Price Summary Styling */


.plate-details-container .price-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.plate-details-container .price-summary .total-free {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    min-height: 50px;
}

.plate-details-container .price-summary .total-free h2 {
    margin: 0;
    color: #333;
}

.plate-details-container .price-summary .total-free span {
    color: #28a745;
    font-size: 24px;
}

/* Option Detail Styling */


.plate-details-container .option-detail {
    background: #f8f9fa;
    border-left: 4px solid #fee100;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Dropdown Arrow Animation */


.plate-details-container .dropdown-arrow {
    transition: transform 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.plate-details-container .dropdown-arrow:hover {
    color: #fee100;
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .plate-details-container .view-form-head h2 {
        font-size: 40px !important;
    }

    .d-block.d-md-none.text-center.text-uppercase {
        font-size: 16px;
        box-shadow: none;
    }
}

.action.view-more {
    background-color: #d6d7d9;
    padding: 10px;
    text-decoration: none;
    color: black;
    min-width: 255px;
    display: inline-block;
    font-size: 16px;
    margin-bottom: 60px;
}

.view-more-section {
    text-align: center;
    margin-bottom: 30px;
}

.result-group {
    padding-bottom: 30px;
}

.loading-indicator {
    padding-bottom: 20px;
}

.view-more-section button {
    border-radius: 3px;
    padding: 15px;
    min-width: 225px;
    font-size: 16px;
}

.error-message {
    padding-top: 10px !important;
}

.no-more-results {
    padding-top: 10px !important;
}

.actions {
    border: none !important;
}

.actions:hover {
    background: none !important;
}

#search-results-container table td .action {
    background: #000 !important;
    padding: 8px 15px;
    border: solid 1px #000;
    font-size: 12px;
    color: #fff !important;
    border-radius: 3px;
    text-decoration: none;
}

.plate-number {
    box-shadow: 0 1.90909px 3.18182px .636364px #00000040;
    width: 208px;
    background-color: rgb(254 207 8 / 1);
    border-radius: 4px;
    text-align: center;
    font-size: 28px !important;
    font-family: Montserrat, sans-serif !important;
    font-weight: 600 !important;
    color: #000;
    line-height: 40px;
    z-index: 1;
    padding: 0;
}

.action.view {
    background: #000 !important;
    padding: 8px 15px;
    border: solid 1px #000;
    font-size: 15px;
    color: #fff;
    border-radius: 3px;
    text-align: center;
    min-width: 56px;
}

.action.buy {
    background: #fff !important;
    padding: 8px 15px;
    border: solid 1px #000;
    font-size: 15px;
    color: #000 !important;
    border-radius: 3px;
    text-align: center;
    min-width: 56px;
}

/* 3-Column Grid Layout Styles */


.plate-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    /* Align to left/start */
    margin: 20px 0;
}

.plate-item {
    flex: 0 0 calc(33.333% - 14px);
    /* 3 items per row with gap adjustment */
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.plate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plate-item .plate-number-display {
    background-color: #fecf08;
    color: #000;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    box-sizing: border-box;
}

.plate-item .plate-price-display {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.plate-item .plate-action {
    margin-top: auto;
}

/* Buy Now Button Style - Black Background */


.plate-item .action.buy {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.plate-item .action.buy:hover {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
    opacity: 1;
}

/* Responsive adjustments */


@media (max-width: 991px) {
    .plate-item {
        flex: 0 0 calc(50% - 14px);
        /* 2 items per row */
    }
}

@media (max-width: 576px) {
    .plate-item {
        flex: 0 0 100%;
        /* 1 item per row */
    }
}

/* Enquiry Modal Styles */


#enquiry-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.enquiry-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.enquiry-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.enquiry-modal-content h3 {
    margin-top: 0;
    border-bottom: 2px solid #fecf08;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control,
.readonly-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    /* Fix padding issue */
    font-size: 14px;
}

.readonly-field {
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.required {
    color: red;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

.send-enquiry-btn {
    background-color: #000;
    color: white;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
}

.send-enquiry-btn:hover {
    background-color: #333;
}

#enquiry-response {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

#enquiry-response.success {
    color: green;
}

#enquiry-response.error {
    color: red;
}

/* Result Group Header Styles */


.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2756a4;
    /* Royal Blue */
    color: #ffffff;
    padding: 10px 20px;
    margin-bottom: 20px;
    width: 95%;
    margin: 0 auto;
}

.group-header h2 {
    margin: 0;
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: none !important;
    padding-bottom: 0;
}

.sort-wrapper {
    position: relative;
}

.sort-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #6392e6;
    /* Lighter blue */
    border: none;
    color: #ffffff;
    padding: 8px 35px 8px 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    outline: none;
}


.sort-select option {
    background-color: #fff;
    color: #333;
}

@media (max-width: 768px) {
    .group-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .sort-wrapper,
    .sort-select {
        width: 100%;
    }
}

@media (max-width: 767px) {
    #search-results-container h2 {
        font-size: 16px;
    }

    .sort-wrapper,
    .sort-select {
        width: 73%;
    }
}

@media screen and (max-width: 767px) {

    .format-tabs {
        padding-top: 10px;
    }

    .platesearch-index-index .format-section .tab-button,
    .platesearch-list-index .format-section .tab-button {
        display: block;
        margin: 0 auto;
        /* center horizontally */
        text-align: center;
    }

    .platesearch-index-index h2 {
        font-size: 25px;
        padding-bottom: 10px;
    }

    .nav-before-open header.page-header .menu-wrapper .nav-tabs>li>a {
        color: #fff !important;

    }
}