.brand-logo-selected{
    text-align: center;
    width: 100%;
}

.brand-logo-selected img{
    text-align: center;
}

.brand-logo-selected img{
    margin: auto;
}

.selected-attributes-shop {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-attributes-shop .attribute-tag {
    background-color: #FFEBD4;
    color: #333;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 12px;
    cursor: default;
    user-select: none;
    transition: background-color 0.2s ease;
    text-transform: capitalize;
}

.selected-attributes-shop .attribute-tag:hover {
    background-color: #d5d5d5;
}

.selected-attributes-shop .brand-tag img {
    height: 20px;
    width: auto;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 4px;
    margin: auto;
}



.attribute-selection-modal {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.attribute-selection-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}


.attribute-selection-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    max-width: 1200px; /* increased width */
    width: 95%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
}

.attribute-selection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px; /* more space between items */
    justify-content: flex-start;
    padding: 20px 0;
}

.attribute-selection-grid .vehicle-grid-item {
    aspect-ratio: 1 / 1;
    width: calc(16.66% - 24px); /* 6 per row on large screens now */
    box-sizing: border-box;
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 16px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.attribute-selection-grid .vehicle-grid-item:hover {
    transform: scale(1.05);
}

.attribute-selection-grid .vehicle-grid-item img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 12px;
}

@media (max-width: 1400px) {
    .attribute-selection-grid .vehicle-grid-item {
        width: calc(25% - 24px); /* 4 per row */
    }
}

@media (max-width: 1024px) {
    .attribute-selection-grid .vehicle-grid-item {
        width: calc(33.33% - 24px); /* 3 per row */
    }
}

@media (max-width: 768px) {
    .attribute-selection-grid .vehicle-grid-item {
        width: calc(50% - 24px); /* 2 per row */
    }
}

@media (max-width: 480px) {
    .attribute-selection-grid .vehicle-grid-item {
        width: calc(100% - 24px); /* 1 per row (full width on small devices) */
    }
}

.attribute-selection-grid .vehicle-grid-item {
    aspect-ratio: 1 / 1;
    width: calc(16.66% - 24px);
    box-sizing: border-box;
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 16px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attribute-selection-grid .vehicle-grid-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.attribute-selection-grid .vehicle-grid-inner img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 12px;
}

.attribute-selection-grid .vehicle-grid-inner div {
    font-size: 16px;
    color: #333;
    word-break: break-word;
}

.selected-attributes-shop.no-filters {
    min-height: 200px;
    background: #fffbf4;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.selected-attributes-shop.no-filters .select-vehicle-trigger {
    background: none;
    cursor: pointer;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    padding: 0;
    border-radius: 0;
    text-transform: none;
    transition: color 0.2s ease;
}

.selected-attributes-shop.no-filters .select-vehicle-trigger:hover {
    color: #555;
}

.attribute-selection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.attribute-selection-grid .vehicle-grid-item {
    aspect-ratio: 1 / 1;
    width: calc(12.5% - 16px); /* 8 per row on large screens */
    max-width: calc(12.5% - 16px);
    box-sizing: border-box;
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.attribute-selection-grid .vehicle-grid-item img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 8px;
}

/* RESPONSIVE BEHAVIOR -> Like homepage grid */
@media (max-width: 1400px) {
    .attribute-selection-grid .vehicle-grid-item {
        width: calc(20% - 16px); /* 5 per row */
        max-width: calc(20% - 16px);
    }
}

@media (max-width: 1024px) {
    .attribute-selection-grid .vehicle-grid-item {
        width: calc(25% - 16px); /* 4 per row */
        max-width: calc(25% - 16px);
    }
}

@media (max-width: 768px) {
    .attribute-selection-grid .vehicle-grid-item {
        width: calc(50% - 16px); /* 2 per row */
        max-width: calc(50% - 16px);
    }
}

@media (max-width: 480px) {
    .attribute-selection-grid .vehicle-grid-item {
        width: calc(50% - 16px); /* 2 per row on small devices */
        max-width: calc(50% - 16px);
    }
}

.attribute-selection-modal-footer {
    margin-top: 20px;
    text-align: center;
}

.modal-cancel-button {
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-cancel-button:hover {
    background-color: #fff;
    color: #000;
}


.configure-new-vehicle-wrapper {
    width: 100%;
    margin-top: 12px;
}

.configure-new-vehicle-button {
    width: 100%;
    background-color: #EEEEEE;
    color: #454545;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.configure-new-vehicle-button:hover {
    background-color: #000;
    color: #fff;
}

/* Wrapper to contain logo + spinner and match previous alignment */
.brand-logo-selected-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    min-height: 150px; /* prevent flicker while loading */
    width: 100%;
    position: relative;
}

/* Logo container stays as-is */
.brand-logo-selected {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner overlay */
.logo-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #ccc;
    border-top: 3px solid #999;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 12px;
    position: absolute;
}

/* Hide spinner initially (can be overridden inline or via JS) */
.logo-loading-spinner[style*="display: none"] {
    display: none !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
