/* ---------- Dealer locator: button ---------- */
.cbc-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color .2s, color .2s;
}

.cbc-button__icon {
    display: inline-flex;
}

.cbc-button__icon svg {
    width: 1em;
    height: 1em;
}

.cbc-editor-hint {
    padding: 16px;
    border: 1px dashed #c3c4c7;
    color: #50575e;
    text-align: center;
}

/* ---------- Dealer locator: map ---------- */
.cbc-dealers {
    --cbc-accent: #EA5B0C;
    --cbc-map-height: 80vh;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border: 1px solid #ddd;
    font-family: 'Fein Light', sans-serif;
}

.cbc-dealers__sidebar {
    width: 380px;
    height: var(--cbc-map-height);
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
}

.cbc-dealers__search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #fdfdfd;
    border-bottom: 2px solid var(--cbc-accent);
}

.cbc-dealers__place {
    width: 100%;
    --gmpx-border-radius: 4px;
}

.cbc-dealers__row {
    display: flex;
    gap: 5px;
    align-items: center;
}

.cbc-dealers__row select,
.cbc-dealers__row button {
    height: 38px;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.cbc-dealers__radius {
    width: 40%;
}

.cbc-dealers__locate {
    flex: 2;
    background: #333;
    color: #fff;
    border: none !important;
    font-family: 'Fein Bold', sans-serif !important;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
}

.cbc-dealers__reset {
    flex: .5;
    background: var(--cbc-accent);
    color: #fff;
    border: none !important;
    font-size: 18px;
    cursor: pointer;
}

.cbc-dealers__info {
    padding: 10px 20px;
    background: #eee;
    border-bottom: 1px solid #ddd;
    color: #555;
    font-family: 'Fein Bold', sans-serif;
    font-size: 11px;
}

.cbc-dealers__list {
    flex-grow: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.cbc-dealers__item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background .2s;
}

.cbc-dealers__item:hover,
.cbc-dealers__item:focus {
    background: #f9f9f9;
    outline: none;
}

.cbc-dealers__item.is-active {
    border-left: 6px solid var(--cbc-accent);
    background: #f0f0f0;
}

.cbc-dealers__item h3 {
    margin: 0;
    font-family: 'Fein Bold', sans-serif;
    font-size: 14px;
}

.cbc-dealers__item p,
.cbc-dealers__popup p {
    margin: 5px 0;
    color: #666;
    font-size: 12px;
}

.cbc-dealers__popup strong {
    color: var(--cbc-accent);
    font-family: 'Fein Bold', sans-serif;
}

.cbc-dealers__directions {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--cbc-accent, #EA5B0C);
    border-radius: 2px;
    color: #fff !important;
    font-family: 'Fein Bold', sans-serif;
    font-size: 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.cbc-dealers__more,
.cbc-dealers__empty {
    padding: 15px 20px;
    color: #888;
    font-size: 12px;
    text-align: center;
}

.cbc-dealers__map {
    flex-grow: 1;
    min-width: 280px;
    height: var(--cbc-map-height);
    background: #e5e3df;
}

@media (max-width: 767px) {
    .cbc-dealers__sidebar {
        width: 100%;
        height: 50vh;
        border-right: none;
    }

    .cbc-dealers__map {
        width: 100%;
        height: 50vh;
        order: -1;
    }
}

/* ---------- Eligible products ---------- */
.cbc-products__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 20px;
    margin-bottom: 16px;
}

.cbc-products__count {
    margin-right: auto;
    color: #666;
    font-size: 13px;
}

.cbc-products__search {
    width: 300px;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.cbc-products__scroll {
    overflow-x: auto;
}

.cbc-products__table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.cbc-products__table th,
.cbc-products__table td {
    padding: 12px 16px;
    text-align: left;
}

.cbc-products__table th {
    position: sticky;
    top: 0;
}

.cbc-products__empty {
    color: #888;
    text-align: center !important;
}

/* ---------- Participation form ---------- */
.cbc-claim-form {
    --cbc-field-bg: #fff;
    --cbc-field-color: #303E47;
    --cbc-text: #fff;
    --cbc-accent: #EA5B0C;
    --cbc-error: #FFB38A;
    --cbc-radius: 4px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    color: var(--cbc-text);
}

.cbc-claim-form .cbc-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.cbc-claim-form .cbc-half { grid-column: span 3; }
.cbc-claim-form .cbc-full { grid-column: 1 / -1; }
.cbc-claim-form .cbc-wide { grid-column: span 4; }
.cbc-claim-form .cbc-narrow { grid-column: span 2; }

@media (max-width: 480px) {
    .cbc-claim-form .cbc-half,
    .cbc-claim-form .cbc-wide,
    .cbc-claim-form .cbc-narrow { grid-column: 1 / -1; }
}

.cbc-claim-form input[type="text"],
.cbc-claim-form input[type="email"],
.cbc-claim-form input[type="tel"] {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 2px solid transparent;
    border-radius: var(--cbc-radius);
    background: var(--cbc-field-bg);
    color: var(--cbc-field-color);
    font: inherit;
    font-size: inherit;
}

.cbc-claim-form input::placeholder {
    color: #8a949b;
    text-transform: uppercase;
    opacity: 1;
}

.cbc-claim-form input:focus {
    outline: none;
    border-color: var(--cbc-accent);
}

.cbc-claim-form .cbc-field--error input:not([type="checkbox"]),
.cbc-claim-form .cbc-field--error .cbc-upload {
    border-color: var(--cbc-error);
}

.cbc-claim-form .cbc-error {
    display: block;
    color: var(--cbc-error);
    font-size: 12px;
    line-height: 1.3;
    margin-top: 4px;
}

.cbc-claim-form .cbc-error:empty {
    display: none;
}

.cbc-claim-form .cbc-small {
    font-size: 12px;
    line-height: 1.4;
    color: var(--cbc-text);
}

.cbc-claim-form p {
    margin: 0;
}

.cbc-claim-form .cbc-center {
    text-align: center;
}

.cbc-claim-form .cbc-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 46px;
    border: 2px solid transparent;
    border-radius: var(--cbc-radius);
    background: var(--cbc-field-bg);
    color: var(--cbc-field-color);
    text-transform: uppercase;
    cursor: pointer;
}

.cbc-claim-form .cbc-upload svg {
    color: var(--cbc-accent);
    flex: none;
}

.cbc-claim-form input[type="file"]:focus-visible + .cbc-file-name,
.cbc-claim-form .cbc-upload:hover {
    border-color: var(--cbc-accent);
}

.cbc-claim-form .cbc-file-name,
.cbc-claim-form .cbc-hint {
    display: block;
    margin-top: 6px;
    text-align: center;
    word-break: break-all;
}

.cbc-claim-form .cbc-hint {
    margin-top: 0;
    opacity: .7;
}

.cbc-claim-form .cbc-check label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
}

.cbc-claim-form .cbc-check input {
    flex: none;
    width: 14px;
    height: 14px;
    margin: 2px 0 0;
    accent-color: var(--cbc-accent);
}

.cbc-claim-form .cbc-submit {
    width: 100%;
    margin-top: 6px;
    padding: 14px 20px;
    border: 2px solid var(--cbc-accent);
    background: var(--cbc-accent);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.cbc-claim-form .cbc-submit:disabled {
    cursor: wait;
    opacity: .7;
}

/* Outside the claims period, form shown but not sendable: grey wins over the button colours set in Elementor */
.cbc-claim-form.cbc-claim-form--locked .cbc-submit,
.cbc-claim-form.cbc-claim-form--locked .cbc-submit:hover,
.cbc-claim-form.cbc-claim-form--locked .cbc-submit:focus {
    cursor: not-allowed !important;
    opacity: 1 !important;
    border-color: #8A9299 !important;
    background: #8A9299 !important;
    color: #E9ECEE !important;
}

.cbc-claim-form .cbc-locked-note {
    margin: 4px 0 8px;
    text-align: center;
    font-weight: 600;
    color: inherit;
}

.cbc-claim-form .cbc-notes {
    margin-top: 18px;
    display: grid;
    gap: 6px;
}

.cbc-claim-form .cbc-notes a {
    color: inherit;
    text-decoration: underline;
}

.cbc-claim-form .cbc-legal {
    margin-top: 8px;
}

.cbc-claim-form .cbc-sr,
.cbc-claim-form .cbc-hp {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.cbc-claim-form--closed,
.cbc-claim-done {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px;
    border: 2px solid #EA5B0C;
    border-radius: 14px 0 14px 0;
    color: #fff;
    text-align: center;
    font-size: 17px;
}

.cbc-claim-done__title {
    font-family: 'Fein Bold', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    color: #EA5B0C;
    margin-bottom: 8px;
}

/* Non-blocking warning (BIC from another country than the IBAN) */
.cbc-claim-form .cbc-hint {
    display: block;
    color: #FFE08A;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 4px;
}

.cbc-claim-form .cbc-hint:empty {
    display: none;
}

/* Language switcher (bilingual sites) */
.cbc-languages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; line-height: 1.2; }
.cbc-languages a { text-decoration: none; transition: color .15s; }
.cbc-languages a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cbc-languages__sep { opacity: .6; }

/* Drawers on mobile (Elementor containers with the class "cbc-drawer", see drawers.js) */
@media (max-width: 767px) {
    .cbc-drawer.is-drawer > .elementor-element:first-child,
    .cbc-drawer.is-drawer > .e-con-inner > .elementor-element:first-child {
        position: relative;
        padding-right: 34px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .cbc-drawer.is-drawer > .elementor-element:first-child::after,
    .cbc-drawer.is-drawer > .e-con-inner > .elementor-element:first-child::after {
        content: "";
        position: absolute;
        right: 6px;
        top: 50%;
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        color: #fff;
        transform: translateY(-30%) rotate(-135deg); /* open: chevron up */
        transition: transform .2s;
    }
    .cbc-drawer.is-collapsed > .elementor-element:first-child::after,
    .cbc-drawer.is-collapsed > .e-con-inner > .elementor-element:first-child::after,
    .cbc-drawer.is-closing > .elementor-element:first-child::after,
    .cbc-drawer.is-closing > .e-con-inner > .elementor-element:first-child::after {
        transform: translateY(-70%) rotate(45deg); /* closed: chevron down */
    }
    .cbc-drawer.is-drawer > .elementor-element:first-child:focus-visible,
    .cbc-drawer.is-drawer > .e-con-inner > .elementor-element:first-child:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 4px;
    }
    .cbc-drawer.is-collapsed > .elementor-element:not(:first-child),
    .cbc-drawer.is-collapsed > .e-con-inner > .elementor-element:not(:first-child) {
        display: none !important;
    }
}
