/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Aug 27, 2024, 8:20:45 AM
    Author     : Hermannovich
*/

.aw-buches-searchbox {
    max-width: 100%;
    /*margin: 40px auto;*/
}

.aw-buches-searchbox .aa-Form:focus-within {
    border-color: rgba(254, 91, 0, 1);
    box-shadow:
        rgba(254, 91, 0, 0.2) 0 0 0 2px,
        inset rgba(254, 91, 0, 0.2) 0 0 0 2px;
    outline: medium none currentColor;
}


.aw-buches-searchbox .aa-Input {
    border: none;
}

.aw-buches-searchbox .aa-SubmitButton {
    background: none !important;
    color: rgba(254, 91, 0, 1);
}

.aw-buches-searchbox .aa-Label svg, .aw-buches-searchbox .aa-LoadingIndicator svg {
    color: rgba(254, 91, 0, 1); 
}

.aa-Panel {
    z-index: 12 !important;
}

.postal-code-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto;
    padding: 0.5rem;
    border: 2px solid #FE5B00;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.3s;
}

.postal-code-form:focus-within {
    box-shadow: 0 0 0 3px rgba(254, 91, 0, 0.3);
}

.postal-code-input {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}

.postal-code-input:focus {
    border-color: #FE5B00;
}

.postal-code-submit,
.voir-sur-carte-btn{
    background-color: #FE5B00;
    border: none;
    color: white;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.voir-sur-carte-btn{
    font-size: 12px;
    padding: 0.3rem 0.5rem;
    box-shadow: none !important;
    border-radius: 4px;
}

.postal-code-submit:hover,
.voir-sur-carte-btn,
.postal-code-submit:focus {
    background-color: #e04f00 !important; /* darker variant of FE5B00 */
    box-shadow: 0 0 0 3px rgba(254, 91, 0, 0.3);
    outline: none;
    color: white !important;
}


.postal-code-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #FE5B00;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.postal-code-submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    margin-left: 8px;
    animation: spin 0.6s linear infinite;
}

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


@media (max-width: 500px) {
    .postal-code-form {
        flex-direction: column;
    }
    .postal-code-input,
    .postal-code-submit {
        width: 100%;
    }
}


#brandButtons.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* 3 colonnes adaptatives */
    gap: 12px;
    margin-top: 12px;
}

.brand-btn {
    background-color: #fff !important;
    border: 2px solid #FE5B00;
    color: #FE5B00 !important;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
}


.brand-btn:hover,
.brand-btn.active {
    background-color: #FE5B00 !important;
    color: white !important;
    box-shadow: 0 0 5px rgba(254, 91, 0, 0.4);
}


#resetBrand {
    background-color: #FE5B00 !important;
    color: white !important;
}