/* WPCode 70790 — Classic Transfers – A-Z Brand Directory Styling */
/* =====================================================
   CLASSIC TRANSFERS – A-Z BRAND DIRECTORY
   CLEAN VERSION FOR NEW PHP STRUCTURE
   ===================================================== */


/* =====================================================
   WHOLE DIRECTORY
   ===================================================== */

.ct-brand-directory {
    width: 100%;
    margin-top: 24px;
    box-sizing: border-box;
}

/* =========================================
   CLASSIC TRANSFERS - BRAND SEARCH
   ========================================= */
	
	/* =========================================
   CLASSIC TRANSFERS - BRAND SEARCH
   ========================================= */

.ct-brand-search {
    position: relative;
    width: 100%;
    max-width: 560px;
}


/* Search field container */
.ct-brand-search-box {
    position: relative;
    width: 100%;
}


/* Search icon */
.ct-brand-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #667085;

    pointer-events: none;
    z-index: 2;
}


/* Actual input */
.ct-brand-search-input {
    display: block !important;

    width: 100% !important;
    height: 52px !important;

    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 18px 0 54px !important;

    background: #ffffff !important;

    border: 1px solid #d7dadd !important;
    border-radius: 0 !important;

    color: #222222 !important;

    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;

    line-height: 52px !important;

    appearance: none;
    -webkit-appearance: none;

    box-shadow: none !important;
    outline: none !important;
}


/* Placeholder */
.ct-brand-search-input::placeholder {
    color: #7b8490 !important;
    opacity: 1;
}


/* Focus */
.ct-brand-search-input:focus {
    border-color: #00875a !important;
    box-shadow: 0 0 0 1px #00875a !important;
}


/* Remove browser search decorations */
.ct-brand-search-input::-webkit-search-decoration,
.ct-brand-search-input::-webkit-search-cancel-button,
.ct-brand-search-input::-webkit-search-results-button,
.ct-brand-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}


/* =========================================
   SEARCH RESULTS DROPDOWN
   ========================================= */

.ct-brand-search-results {
    position: absolute;

    top: calc(100% + 6px);
    left: 0;
    right: 0;

    z-index: 100;

    background: #ffffff;

    border: 1px solid #e2e2e2;
    border-radius: 6px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

    overflow: hidden;
}


.ct-brand-search-results[hidden] {
    display: none !important;
}


.ct-brand-search-result {
    display: block;

    padding: 12px 16px;

    color: #222222 !important;
    text-decoration: none !important;

    border-bottom: 1px solid #eeeeee;

    background: #ffffff;

    font-size: 14px;
}


.ct-brand-search-result:last-child {
    border-bottom: 0;
}


.ct-brand-search-result:hover {
    background: #f4f7f5;
    color: #00875a !important;
}


.ct-brand-search-empty {
    padding: 12px 16px;

    color: #777777;
    font-size: 14px;

    background: #ffffff;
}
    


/* =========================
   A-Z ALPHABET NAVIGATION
   ========================= */

.ct-alphabet {
    display: grid !important;
    grid-template-columns: repeat(26, 1fr) !important;
    align-items: center !important;

    width: 100% !important;
    margin: 0 0 32px 0 !important;
    padding: 0 8px !important;

    box-sizing: border-box !important;
}

.ct-alphabet a,
.ct-alphabet .ct-letter-disabled {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;

    justify-self: center !important;

    /* Letter vertical position: smaller value = higher */
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;

    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;

    box-sizing: border-box !important;
}

/* Normal letters */
.ct-alphabet a {
    background: transparent !important;
    color: #00875a !important;
}

/* Hover */
.ct-alphabet a:hover {
    background: #00875a !important;
    color: #ffffff !important;
}

/* Disabled letters */
.ct-alphabet .ct-letter-disabled {
    background: transparent !important;
    color: #9a9a9a !important;
    font-weight: 500 !important;

}

/* =====================================================
   4 COLUMN GRID
   ===================================================== */

.ct-brand-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    align-items: stretch !important;
}


/* =====================================================
   WHITE CARD
   ===================================================== */

.ct-brand-directory .ct-letter-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;

    /*
     * Tight top padding.
     * Bottom padding kept neat around View All row.
     */
    padding: 5px 22px 14px 22px !important;

    background: #ffffff !important;

    border: 0 !important;
    border-radius: 12px !important;

    box-shadow: 0 1px 4px rgba(0,0,0,0.025) !important;

    box-sizing: border-box !important;

    transform: none !important;
}


/* =====================================================
   LETTER HEADING
   ===================================================== */

.ct-brand-directory .ct-letter-card > h3 {
    display: flex !important;
    align-items: center !important;

    width: 100% !important;

    /*
     * More compact than before so A/B/C/D
     * sits higher in the card.
     */
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;

    margin: 0 0 6px 0 !important;
    padding: 0 0 5px 0 !important;

    border: 0 !important;
    border-bottom: 1px solid #dcdcdc !important;

    color: #007f55 !important;

    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    position: static !important;
    top: auto !important;

    transform: none !important;

    box-sizing: border-box !important;
}


/* =====================================================
   BRAND LIST
   ===================================================== */

.ct-brand-directory
.ct-letter-card
> .ct-brand-list {

    display: block !important;

    width: 100% !important;

    /*
     * IMPORTANT:
     * No fixed/minimum height.
     * This removes the large blank space
     * below Dunlop etc.
     */
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    transform: none !important;

    box-sizing: border-box !important;
}


/* =====================================================
   MANUFACTURER ROW
   NEW PHP: THE ROW ITSELF IS THE <a>
   ===================================================== */

.ct-brand-directory
.ct-letter-card
.ct-brand-list
> a.ct-brand-row {

    display: flex !important;
    align-items: center !important;

    position: relative !important;

    width: 100% !important;

    /*
     * Compact row height reduces the gap
     * between manufacturer names.
     */
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;

    margin: 0 !important;

    /*
     * 30px right space reserves room for arrow.
     * 4px bottom makes text sit slightly higher
     * above the divider.
     */
    padding: 0 30px 16px 0 !important;

    border: 0 !important;
    border-bottom: 1px solid #dedede !important;

    background: transparent !important;

    color: #222222 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    text-align: left !important;
    text-decoration: none !important;

    box-sizing: border-box !important;

    transform: none !important;
}


/* =====================================================
   FIRST MANUFACTURER
   ===================================================== */

.ct-brand-directory
.ct-letter-card
.ct-brand-list
> a.ct-brand-row:first-child {

    border-top: 0 !important;
    margin-top: 0 !important;
}


/* =====================================================
   MANUFACTURER NAME
   ===================================================== */

.ct-brand-directory
a.ct-brand-row
> .ct-brand-name {

    display: block !important;

    flex: 1 1 auto !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    color: inherit !important;

    text-decoration: none !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    box-sizing: border-box !important;
}


/* =====================================================
   MANUFACTURER ARROW – FAR RIGHT
   SAME METHOD AS VIEW ALL
   ===================================================== */

.ct-brand-directory
.ct-letter-card
.ct-brand-list
> a.ct-brand-row
> span.ct-brand-arrow {

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    position: absolute !important;

    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;

    width: 24px !important;
    height: 26px !important;

    margin: 0 !important;
    padding: 0 0 4px 0 !important;

    border: 0 !important;

    color: #7d8588 !important;

    font-size: 22px !important;
    font-weight: 300 !important;
    line-height: 1 !important;

    text-align: right !important;
    text-decoration: none !important;

    float: none !important;

    transform: none !important;

    box-sizing: border-box !important;
}

.ct-brand-directory
.ct-letter-card
.ct-brand-list
> a.ct-brand-row {
    position: relative !important;
}


/* =====================================================
   HIDDEN MAKES
   ===================================================== */

.ct-brand-directory
.ct-letter-card
.ct-brand-list
> a.ct-brand-row.ct-brand-hidden {

    display: none !important;
}


/* Reveal after View All clicked */

.ct-brand-directory
.ct-letter-card
.ct-brand-list
> a.ct-brand-row.ct-brand-hidden.ct-brand-visible {

    display: flex !important;
}


/* =====================================================
   VIEW ALL
   KEEP THE SLIM DIRECTORY-ROW STYLE
   ===================================================== */

.ct-brand-directory .ct-show-more {

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    position: relative !important;

    width: 100% !important;

    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;

    /*
     * Only a small gap after final manufacturer.
     */
    margin: 4px 0 0 0 !important;

    padding: 0 30px 3px 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-bottom: 1px solid #dedede !important;
    border-radius: 0 !important;

    color: #007f55 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    text-align: left !important;

    cursor: pointer;

    transform: none !important;

    box-sizing: border-box !important;
}


/* =====================================================
   VIEW ALL TEXT
   ===================================================== */

.ct-brand-directory .ct-show-more-text {

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1 !important;
}


/* =====================================================
   VIEW ALL ARROW
   ===================================================== */

.ct-brand-directory .ct-show-more-arrow {

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    position: absolute !important;

    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;

    width: 24px !important;
    height: 36px !important;

    margin: 0 !important;
    padding: 0 0 3px 0 !important;

    color: inherit !important;

    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    transform: none !important;

    box-sizing: border-box !important;
}


/* =====================================================
   VIEW ALL HOVER
   ===================================================== */

.ct-brand-directory .ct-show-more:hover {

    background: transparent !important;
    color: #005f40 !important;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1000px) {

    .ct-brand-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .ct-alphabet {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}




/* =====================================================
   MANUFACTURER ARROWS - FORCE TO FAR RIGHT
   ===================================================== */

.ct-brand-directory .ct-brand-list > a.ct-brand-row {
    position: relative !important;
}

/* Create arrow with CSS */
.ct-brand-directory .ct-brand-list > a.ct-brand-row::after {
    content: "›" !important;

    position: absolute !important;
    display: block !important;

    top: 50% !important;
    right: 0 !important;
    left: auto !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #7d8588 !important;

    font-size: 22px !important;
    font-weight: 300 !important;
    line-height: 1 !important;

    transform: translateY(-55%) !important;

    pointer-events: none !important;
}

/* Green arrow on hover */
.ct-brand-directory .ct-brand-list > a.ct-brand-row:hover::after {
    color: #007f55 !important;
}

/* =====================================================
   MOVE LETTER HEADINGS UP ONLY
   ===================================================== */

.ct-brand-directory .ct-letter-card > h3 {
    position: relative !important;
    top: -48px !important;
}

/* =====================================================
   MOVE MANUFACTURER LIST UP + REMOVE VACATED SPACE
   ===================================================== */

.ct-brand-directory .ct-letter-card > .ct-brand-list {
    position: relative !important;
    top: -88px !important;
    margin-bottom: -145px !important;
}


/* =====================================================
   VIEW ALL - FOLLOW MANUFACTURER LIST NATURALLY
   ===================================================== */

.ct-brand-directory .ct-letter-card > .ct-show-more {
    position: static !important;
    top: auto !important;

    margin: 4px 0 0 0 !important;

    transform: none !important;
}

/* =====================================================
   EXTRA BOTTOM SPACE FOR CARDS WITHOUT "VIEW ALL"
   ===================================================== */

.ct-brand-directory .ct-letter-card:not(:has(.ct-show-more)) {
    padding-bottom: 28px !important;
}

/* =====================================================
   MANUFACTURER FONT SIZE
   ===================================================== */

.ct-brand-directory .ct-brand-row .ct-brand-name {
    font-size: 13px !important;
}

/* =====================================================
   MANUFACTURER ROW HOVER
   ===================================================== */

.ct-brand-directory
.ct-letter-card
.ct-brand-list
> a.ct-brand-row:hover {
    color: #007f55 !important;
    border-bottom: 1px solid #007f55 !important;
}

.ct-brand-directory
.ct-letter-card
.ct-brand-list
> a.ct-brand-row:hover
> .ct-brand-name {
    color: #007f55 !important;
}

/* =====================================================
   VIEW ALL - HIDDEN / VISIBLE MANUFACTURERS
   ===================================================== */

.ct-brand-directory
.ct-letter-card
.ct-brand-list
> a.ct-brand-row.ct-brand-hidden {
    display: none !important;
}

.ct-brand-directory
.ct-letter-card
.ct-brand-list
> a.ct-brand-row.ct-brand-hidden.ct-brand-visible {
    display: flex !important;
}



/* =========================
   MOTORCYCLE BRAND SEARCH
   ========================= */

.ct-brand-search {
    width: 100%;
    max-width: 520px;
    position: relative;
}

.ct-brand-search-box {
    position: relative;
    width: 100%;
}

.ct-brand-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    pointer-events: none;
    z-index: 2;
}

.ct-brand-search-input {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    height: 52px !important;

    margin: 0 !important;
    padding: 0 18px 0 54px !important;

    background: #ffffff !important;
    border: 1px solid #d8dadd !important;
    border-radius: 6px !important;

    color: #222222 !important;
    font-size: 15px !important;
    font-family: inherit !important;
    line-height: 52px !important;

    outline: none !important;
    box-shadow: none !important;

    appearance: none;
    -webkit-appearance: none;
}

.ct-brand-search-input::placeholder {
    color: #7b8491 !important;
    opacity: 1;
}

.ct-brand-search-input:focus {
    border-color: #00875a !important;
    box-shadow: 0 0 0 1px #00875a !important;
}


/* ==========================================================
   CLASSIC TRANSFERS – BRAND SEARCH DROPDOWN
   ========================================================== */

.ct-brand-search {
    position: relative;
    z-index: 50;
}

/* Results dropdown */
.ct-brand-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

    overflow: hidden;
    z-index: 999;
}

/* Make sure hidden really means hidden */
.ct-brand-search-results[hidden] {
    display: none !important;
}

/* Individual manufacturer result */
.ct-brand-search-result {
    display: block;
    width: 100%;
    box-sizing: border-box;

    padding: 11px 15px;

    color: #222;
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none !important;

    background: #fff;
    border-bottom: 1px solid #eeeeee;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

/* Remove divider from final result */
.ct-brand-search-result:last-child {
    border-bottom: 0;
}

/* Hover */
.ct-brand-search-result:hover,
.ct-brand-search-result:focus {
    background: #f5f5f3;
    color: #00845b;
}

/* No results message */
.ct-brand-search-empty {
    padding: 12px 15px;
    color: #777;
    font-size: 14px;
}

/* ==========================================================
   SEARCH + POPULAR MANUFACTURERS — CLEAN FINAL VERSION
   ========================================================== */

/* Search */
.ct-brand-search {
    position: relative !important;
    width: 100% !important;
    max-width: 520px !important;
    transform: none !important;
}

/* Popular manufacturers container */
.ct-popular-brands {
    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;

    gap: 10px !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* ----------------------------------------------------------
   GREY DIVIDER
   ---------------------------------------------------------- */

.ct-popular-brands::before {
    content: "" !important;

    position: absolute !important;

    left: -34px !important;
    top: 0 !important;

    width: 1px !important;
    height: 52px !important;

    background: #dddddd !important;

    pointer-events: none !important;
}


/* ----------------------------------------------------------
   POPULAR MANUFACTURER BUTTONS
   ---------------------------------------------------------- */

.ct-popular-brand-button {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    height: 52px !important;
    min-height: 52px !important;

    padding: 0 26px 14px 26px !important;
    margin: 0 !important;

    box-sizing: border-box !important;

    background: #ffffff !important;

    border: 0 !important;
    border-radius: 12px !important;

    color: #111111 !important;

    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;

    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;

    vertical-align: middle !important;

    transform: none !important;
}


/* Stop inner elements/text inheriting odd spacing */
.ct-popular-brand-button * {
    margin: 0 !important;
    padding: 0 !important;

    line-height: 1 !important;

    position: static !important;
    transform: none !important;
}


/* Hover */
.ct-popular-brand-button:hover {
    background: #00875a !important;
    color: #ffffff !important;
}
/* ==========================================================
   SEARCH / POPULAR — POSITION TUNING
   ========================================================== */

/* Give the whole Popular section more breathing room */
.ct-popular-brands {
    margin-left: 28px !important;
}

/* Divider: sit centrally in the new gap */
.ct-popular-brands::before {
    left: -40px !important;
    top: 14px !important;
    height: 52px !important;
}

/* Buttons slightly slimmer, but centred against 52px search */
.ct-popular-brand-button {
    height: 48px !important;
    min-height: 48px !important;
}

/* Keep the popular heading aligned with the buttons */
.ct-popular-heading {
    margin-left: -22px !important;
}
/* =========================================
   MOBILE - BRAND CARDS
   ========================================= */

@media (max-width: 600px) {

    .ct-brand-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 14px !important;
    }

    .ct-brand-directory .ct-letter-card {
        width: 100% !important;
        height: auto !important;
    }

}
/* =========================================
   BRAND DIRECTORY - MOBILE PAGE PADDING
   ========================================= */

@media (max-width: 767px) {

    .ct-brand-page {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

}

/* =========================================
   BRAND FINDER - MOBILE TOOLS ROW
   ========================================= */

@media (max-width: 767px) {

    /* Stack Search + Popular on mobile */
    .ct-brand-tools-row {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        gap: 24px !important;
    }

    /* Both columns become full width */
    .ct-brand-tools-row > .wp-block-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 100% !important;
    }

    /* Search fills its column */
    .ct-brand-tools-row .ct-brand-search,
    .ct-brand-tools-row .ct-brand-search-box,
    .ct-brand-tools-row .ct-brand-search-input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Popular manufacturers can wrap */
    .ct-brand-tools-row .ct-popular-brands {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        margin-left: 0 !important;

        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    /* Remove desktop divider */
    .ct-brand-tools-row .ct-popular-brands::before {
        display: none !important;
    }

    /* Remove desktop heading offset */
    .ct-brand-tools-row .ct-popular-heading {
        margin-left: 0 !important;
    }

    /* Let popular buttons fit the phone */
    .ct-brand-tools-row .ct-popular-brand-button {
        width: auto !important;
        min-width: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
	/* Fix category banner overflowing mobile */
.wp-block-cover {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
	


    /* ================================
   MOBILE A-Z NAVIGATION
   ================================ */

.ct-brand-page .ct-alphabet {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px 6px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* The P elements are the actual grid cells */
.ct-brand-page .ct-alphabet > p {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;
}

/* The clickable letter */
.ct-brand-page .ct-alphabet > p > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 32px !important;

    margin: 0 !important;
    padding: 0 !important;
}


    /* ================================
       MOBILE POPULAR MANUFACTURERS
       ================================ */

    .ct-brand-tools-row > .wp-block-group {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .ct-brand-tools-row .ct-popular-heading {
        width: 100% !important;
        margin: 0 0 10px 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .ct-brand-tools-row .ct-popular-brands {
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
    }
/* Popular manufacturers - align with search on mobile */
.ct-brand-tools-row > .wp-block-group:nth-child(2) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.ct-brand-tools-row > .wp-block-group:nth-child(2) > * {
    margin-left: 0 !important;
}

.ct-brand-tools-row .ct-popular-heading,
.ct-brand-tools-row .ct-popular-brands {
    margin-left: 0 !important;
    text-align: left !important;
}
	/* Prevent brand finder causing horizontal mobile overflow */
.ct-brand-page,
.ct-brand-directory,
.ct-brand-tools-row,
.ct-brand-page .ct-alphabet,
.ct-brand-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.ct-brand-page .ct-alphabet > p,
.ct-brand-page .ct-alphabet > p > a {
    min-width: 0 !important;
    max-width: 100% !important;
}
} /* <-- final closing bracket for mobile */
@media (max-width: 781px) {
    .footer-columns {
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
        row-gap: 30px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
    }

    .footer-columns > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}
/* =========================================
   MOBILE HEADER
   ========================================= */

@media (max-width: 781px) {

    /* Whole header */
    .mega-menu-header {
        position: relative !important;
    }

    /* Main green logo/menu section */
    .mega-menu-header .mobile-header-row {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 20px !important;
        box-sizing: border-box !important;
    }
	

    /* Logo + hamburger */
    .mega-menu-header .mobile-logo-menu {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }

    /* Search positioned in dark-green utility bar */
    .mega-menu-header .mobile-search-row {
        position: absolute !important;

        top: -51px !important;
        left: 16px !important;

        width: 150px !important;
        max-width: 150px !important;

        margin: 0 !important;
        padding: 0 !important;

        z-index: 20 !important;
        box-sizing: border-box !important;
    }

    /* Force everything inside search to obey width */
    .mega-menu-header .mobile-search-row,
    .mega-menu-header .mobile-search-row > *,
    .mega-menu-header .mobile-search-row form,
    .mega-menu-header .mobile-search-row .wp-block-woocommerce-product-search {
        width: 150px !important;
        max-width: 150px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* WooCommerce search block */
    .mega-menu-header .mobile-search-row .wp-block-woocommerce-product-search {
        height: 30px !important;
        min-height: 30px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Search input */
    .mega-menu-header .mobile-search-row input {
        height: 30px !important;
        min-height: 30px !important;
        min-width: 0 !important;
        padding: 2px 6px !important;
        box-sizing: border-box !important;
    }

    /* Search button */
    .mega-menu-header .mobile-search-row button {
        width: 34px !important;
        min-width: 34px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
}	    
/* =========================================
   MOBILE UTILITY BAR
   ========================================= */

@media (max-width: 781px) {

    /* Dark-green Search / Login / Cart bar */
    .mobile-utility-bar {
        padding-top: 5px !important;
        padding-bottom: 14px !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    /* Nudge Login + Cart down without changing horizontal position */
    .mobile-utility-bar > .wp-block-group,
    .mobile-utility-bar > .wp-block-row {
        position: relative !important;
        top: 4px !important;
    }

}
/* =========================================
   HIDE A-Z NAVIGATION ON MOBILE
   British + US / International directories
   ========================================= */

@media (max-width: 767px) {

    .ct-brand-page .ct-alphabet {
        display: none !important;
    }

}
/* British & US / International directory spacing */
.ct-brand-page {
    background-color: #f5f5f5 !important;
    padding-bottom: 110px !important;
    margin-bottom: 0 !important;
}

@media (max-width: 600px) {
    .ct-brand-page {
        padding-bottom: 55px !important;
    }
}
