.vehicle-actions-more {
    position: relative;
}

.vehicle-card-actions,
.vehicle-detail-actions-buttons:has(.vehicle-actions-row) {
    align-items: center;
    flex-direction: column;
}

.vehicle-actions-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
}

.vehicle-actions-row:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vehicle-actions-row > .btn,
.vehicle-actions-row > .vehicle-actions-more,
.vehicle-actions-row > .vehicle-actions-more > summary {
    width: 100%;
    min-width: 0;
}

.vehicle-actions-row > .vehicle-actions-more {
    align-self: stretch;
    display: flex;
}

.vehicle-actions-row > .vehicle-actions-more > summary {
    height: 100%;
}

.vehicle-actions-row > .btn,
.vehicle-actions-row > .vehicle-actions-more > summary {
    justify-content: center;
    white-space: normal;
    line-height: 1.05;
    min-height: 2.35rem;
    padding: 0.35rem 0.4rem;
    text-align: center;
    font-size: 0.78rem;
}

.vehicle-action-send {
    background: #2563eb;
    color: #fff;
}

.vehicle-action-send:hover {
    background: #1d4ed8;
}

.vehicle-action-copy {
    background: #475569;
    color: #fff;
}

.vehicle-action-copy:hover {
    background: #334155;
}

.vehicle-action-share {
    background: #7c3aed;
    color: #fff;
}

.vehicle-action-share:hover {
    background: #6d28d9;
}

.vehicle-action-interest {
    background: #0f766e;
    color: #fff;
}

.vehicle-action-interest:hover {
    background: #115e59;
}

.vehicle-action-sale {
    background: #c2410c;
    color: #fff;
}

.vehicle-action-sale:hover {
    background: #9a3412;
}

.vehicle-action-rental {
    background: #0284c7;
    color: #fff;
}

.vehicle-action-rental:hover {
    background: #0369a1;
}

@media (min-width: 901px) {
    .modal.modal-side-panel .vehicle-detail-actions-buttons:has(.vehicle-actions-row) {
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .modal.modal-side-panel .vehicle-actions-row {
        display: contents;
    }

    .modal.modal-side-panel .vehicle-actions-row > .btn,
    .modal.modal-side-panel .vehicle-actions-row > .vehicle-actions-more {
        flex: 1 1 0;
        width: auto;
    }

    .modal.modal-side-panel .vehicle-actions-row > .vehicle-actions-more {
        order: 1;
    }

    .modal.modal-side-panel .vehicle-actions-row > .btn,
    .modal.modal-side-panel .vehicle-actions-row > .vehicle-actions-more > summary {
        padding-inline: 0.3rem;
        font-size: 0.72rem;
    }
}

body.pwa-standalone .modal.modal-side-panel .modal-footer .vehicle-detail-actions-buttons:has(> .vehicle-actions-row) {
    width: auto;
    grid-template-columns: minmax(0, 1fr);
}

body.pwa-standalone .modal.modal-side-panel .modal-footer .vehicle-detail-actions-buttons > .vehicle-actions-row {
    display: grid;
}

.card:has(.vehicle-actions-more[open]),
.modal-content:has(.vehicle-actions-more[open]) {
    overflow: visible;
}

.vehicle-actions-more > summary {
    list-style: none;
}

.vehicle-actions-more > summary::-webkit-details-marker {
    display: none;
}

.vehicle-actions-more-menu {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2147483000;
    min-width: 180px;
    max-width: calc(100vw - 1rem);
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    gap: 0.4rem;
    flex-direction: column;
}

.vehicle-actions-more[open] .vehicle-actions-more-menu,
.vehicle-actions-more-menu.is-open {
    display: flex;
}

.vehicle-actions-more-menu .btn,
.vehicle-actions-more-menu select {
    width: 100%;
}

@media (max-width: 520px) {
    .vehicle-actions-more-menu {
        padding: 0.55rem;
        border-radius: 0.9rem;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
    }

    .vehicle-actions-more-menu .btn,
    .vehicle-actions-more-menu select {
        min-height: 40px;
        font-size: 0.86rem;
    }
}
