/* Internal styles extracted from trader/show-subcategories.blade.php */

/* CSS Block 1 */
@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

    div#suggestions-list {
        z-index: 99999999;
        /* border: 1px solid #ddd; */
        max-height: 301px;
        overflow-y: auto;
        position: absolute;
        background: #ffffff;
        z-index: 1000;
        width: 197px;
        left: 67%;
        top: 50px;
        text-align: start;
    }

    div#suggestions-list {
        z-index: 99999999;
        /* border: 1px solid #ddd; */
        max-height: 301px;
        overflow-y: auto;
        position: absolute;
        background: #ffffff;
        z-index: 1000;
        width: 72%;
        left: 0%;
        top: 69px;
        text-align: start;
    }

    * {
        font-family: Montserrat;
    }

    /* Location modal container */
    .location-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
    }

    /* Location modal content */
    .location-modal-content {
        background-color: white;
        padding: 34px 28px;
        border-radius: 8px;
        /* text-align: center; */
        width: 30%;
        position: relative;
    }

    .location-modal-content h4 {
        font-size: 13px;
        font-family: Montserrat;
        font-weight: 400;
        margin: 0;
        margin-top: 7px;
    }

    .location-modal-content h2 {
        font-family: Montserrat;
        font-size: 22px;
        font-weight: 400;
        margin: 0;
    }

    /* Location modal close button */
    .location-close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 17px;
        cursor: pointer;
        border: 1px solid black;
        border-radius: 25px;
        width: 28px;
        text-align: center;
    }

    .location-input-button {
        margin-top: 26px;
        display: flex;
        align-items: center;
        position: relative;
    }

    /* Location input field */
    .location-input {
        padding: 17px 13px;
        width: 80%;
        margin: 10px 0;
        border: none;
        border-radius: 4px 0 0 4px;
        background: #F3F3F3;
        font-size: 18px;
        font-weight: 400;
    }

    input.location-input::placeholder {
        font-size: 18px;
        font-weight: 400;
        color: #9B9B9B;
    }

    input.location-input:focus {
        outline: none;
    }

    /* Location submit button */
    .location-submit-btn {
        padding: 17px 25px;
        background-color: #00F19C;
        color: white;
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        font-size: 18px;
        font-weight: 400;
    }

    .location-submit-btn:hover {
        background-color: #06c17f;
    }

    button.location-popup-back-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 30px;
        border: none;
        background: none;
        font-size: 18px;
        font-weight: 400;
    }

    img.location-input-icon {
        position: absolute;
        right: 122px;
    }

    @media screen and (min-width: 768px) and (max-width: 1024px) {
        .location-modal-content {
            width: 70%;
        }
    }

    @media screen and (max-width: 767px) {
        .location-modal-content {
            width: 80%;
        }
    }

/* CSS Block 2 */
.Show-allsubCategories {
        margin-top: 30px;
    }

    .allcatename {
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: center;
    }

    /* Container to limit the max width */
    .containerallcatename {
        width: 100%;
        max-width: 1350px;
        padding: 25px;
        background-color: white;
        box-shadow: 0px -1px 8px rgba(0, 0, 0, 0.1);
    }

    h1.allcatename {
        text-align: center;
        margin-bottom: 20px;
    }

    /* Alphabet Row */
    .alphabet-rowallcatename {
        display: flex;
        justify-content: center;
        gap: 13px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .alphabet-rowallcatename a {
        text-decoration: none;
        font-weight: bold;
        color: #007bff;
        font-size: 20px;
        padding: 5px 10px;
    }

    .alphabet-rowallcatename a:hover {
        text-decoration: underline;
    }

    /* Active letter background */
    .subcategory-listallcatename {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        list-style-type: none;
        padding: 0 29px 6px 40px;
    }

    .subcategory-listallcatename li:hover {
        text-decoration: underline;
        cursor: pointer;
    }

    .subcategory-listallcatename li {
        font-weight: 600;
        padding: 0px;
        border-radius: 5px;
        text-align: start;
        font-size: 15px;
    }

    .alphabet-rowallcatename a.active {
        background-color: #00F19C;
        color: white;
        border-radius: 5px;
    }

    /* Link styles */
    a.allcatename {
        color: black;
        text-decoration: none;
    }

    a.allcatename:hover {
        text-decoration: underline;
    }

    .TraderAllCategories-CBST {
        margin: 20px;
        font-size: 22px;
    }

    .TraderAllCategories-CBST:hover {
        text-decoration: underline;
    }

    input#Main-Search-Location {
        width: 100%;
        background: transparent;
        border: 1px solid #ddd;
        padding: 17px;
        border-radius: 3px;
    }

/* CSS Block 3 */
/* Popup background overlay */
    .al-x-popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    /* Popup container */
    .al-x-popup-container {
        background-color: white;
        padding: 20px;
        width: 90%;
        max-width: 500px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        text-align: left;
    }

    /* Popup content styles */
    .al-x-popup-header {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 15px;
    }

    .al-x-popup-text {
        margin-bottom: 20px;
        font-size: 14px;
        color: #333;
    }

    /* Input and button row */
    .al-x-popup-input-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        position: relative;
    }

    .al-x-popup-input-row input {
        flex: 7;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
        position: relative;
    }

    .al-x-popup-input-row button {
        flex: 3;
        padding: 10px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
    }

    .al-x-popup-input-row button:hover {
        background-color: #0056b3;
    }

    /* Location icon styling */
    .al-x-location-icon {
        position: absolute;
        right: 15px;
        bottom: 15px;
        font-size: 20px;
        color: #007bff;
        cursor: pointer;
    }

    .al-x-popup-back-row {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        cursor: pointer;
    }

    .al-x-popup-back-row i {
        font-size: 18px;
    }

    div#suggestions-list li {
        padding: 10px;
        text-shadow: none;
        list-style: none;
    }

    .allcatename {
        text-transform: capitalize !important;
    }

    .location-popup-back-btn {
        margin-top: 16px;
    }

    img.location-input-icon {
        top: 14px;
    }

    div#fetch-location-btn {
        cursor: pointer;
    }

    .location-popup-back-btn {
        cursor: pointer;
    }

    @media only screen and (max-width: 700px) {
        .subcategory-listallcatename {
            grid-template-columns: repeat(2, 1fr);
            padding: 0;
        }

        .containerallcatename {
            padding: 20px;
        }
    }

