:root {
    --eosmv-primary: #4360f0;
    --eosmv-dark: #151619;
    --eosmv-muted: #6f7480;
    --eosmv-line: #e7e9ef;
    --eosmv-soft: #f6f7fb;
}

.eosmv-page,
.eosmv-dashboard-card {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--eosmv-dark);
}

.eosmv-page-header {
    margin-bottom: 28px;
}

.eosmv-page-header > span,
.eosmv-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--eosmv-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
}

.eosmv-page-header h1 {
    margin: 0 0 8px;
    color: var(--eosmv-dark);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 650;
    line-height: 1.15;
}

.eosmv-page-header p,
.eosmv-empty p,
.eosmv-dashboard-card p {
    margin: 0;
    color: var(--eosmv-muted);
    font-size: 14px;
    line-height: 1.6;
}

.eosmv-list {
    display: grid;
    gap: 24px;
}

.eosmv-vehicle-card {
    display: grid;
    grid-template-columns: minmax(250px, 38%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--eosmv-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(21, 22, 25, .06);
}

.eosmv-vehicle-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 28px;
    background: linear-gradient(145deg, #f8f9fc, #eef1f7);
}

.eosmv-vehicle-image {
    width: 100%;
    height: 100%;
    max-height: 330px;
    object-fit: contain;
}

.eosmv-placeholder,
.eosmv-empty-icon,
.eosmv-dashboard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--eosmv-primary);
}

.eosmv-placeholder svg {
    width: 120px;
    height: 120px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eosmv-colour-badge {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(21, 22, 25, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--eosmv-dark);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.eosmv-vehicle-body {
    padding: 30px;
}

.eosmv-vehicle-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.eosmv-vehicle-title span {
    display: block;
    margin-bottom: 5px;
    color: var(--eosmv-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.eosmv-vehicle-title h2 {
    margin: 0;
    color: var(--eosmv-dark);
    font-size: 25px;
    font-weight: 650;
    line-height: 1.2;
}

.eosmv-registration {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 7px;
    background: var(--eosmv-dark);
    color: #fff;
    font-size: 13px;
    letter-spacing: .07em;
}

.eosmv-alerts {
    display: grid;
    gap: 9px;
    margin-bottom: 20px;
}

.eosmv-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff7e8;
    color: #7b5100;
    font-size: 13px;
}

.eosmv-alert-urgent,
.eosmv-alert-expired {
    background: #fff0f0;
    color: #a12a2a;
}

.eosmv-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 0;
}

.eosmv-details > div {
    min-width: 0;
    padding: 6px 12px 6px 0;
    border-bottom: 0;
}

.eosmv-details dt {
    margin: 0 0 5px;
    color: var(--eosmv-muted);
    font-size: 12px;
    font-weight: 500;
}

.eosmv-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--eosmv-dark);
    font-size: 14px;
    font-weight: 600;
}

.eosmv-details .eosmv-detail-warning dd {
    color: #a76900;
}

.eosmv-details .eosmv-detail-expired dd {
    color: #c12a2a;
}

.eosmv-actions {
    margin-top: 22px;
}

.eosmv-button,
body.logged-in.woocommerce-account .woocommerce-MyAccount-content a.eosmv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 10px 18px;
    border: 1px solid var(--eosmv-primary);
    border-radius: 8px;
    background: var(--eosmv-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.eosmv-button:hover,
body.logged-in.woocommerce-account .woocommerce-MyAccount-content a.eosmv-button:hover {
    border-color: var(--eosmv-dark);
    background: var(--eosmv-dark);
    color: #fff;
}

.eosmv-button-secondary,
body.logged-in.woocommerce-account .woocommerce-MyAccount-content a.eosmv-button-secondary {
    background: transparent;
    color: var(--eosmv-primary);
}

.eosmv-contact-pending {
    margin: 0;
    color: var(--eosmv-muted);
    font-size: 13px;
}

.eosmv-empty {
    padding: 48px 24px;
    border: 1px solid var(--eosmv-line);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.eosmv-empty-icon svg {
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eosmv-empty h2 {
    margin: 0 0 7px;
    color: var(--eosmv-dark);
    font-size: 21px;
}

.eosmv-empty .eosmv-button {
    margin-top: 20px;
}

.eosmv-dashboard-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #dfe4ff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7f8ff, #fff);
    box-shadow: 0 8px 22px rgba(67, 96, 240, .07);
}

.eosmv-dashboard-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #e9edff;
}

.eosmv-dashboard-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eosmv-dashboard-card h2 {
    margin: 0 0 4px;
    color: var(--eosmv-dark);
    font-size: 18px;
    font-weight: 650;
}

.eosmv-dashboard-card .eosmv-kicker {
    margin-bottom: 3px;
    font-size: 10px;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation-link--my-vehicle a::before {
    display: block !important;
    background-color: currentColor !important;
    background-image: none !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='4' r='2'/%3E%3Cpath d='M10 4H6'/%3E%3Cpath d='M18 4H14'/%3E%3Cpath d='M9 20C7.6725 19.9645 6.90036 19.8282 6.42177 19.3045C5.77472 18.5965 5.9693 17.5144 6.35847 15.35L6.96989 11.9497C7.21514 10.5857 7.33777 9.90371 7.69445 9.38625C8.0453 8.87725 8.55358 8.47814 9.15294 8.24104C9.76224 8 10.5082 8 12 8C13.4918 8 14.2378 8 14.8471 8.24104C15.4464 8.47814 15.9547 8.87725 16.3056 9.38625C16.6622 9.90371 16.7849 10.5857 17.0301 11.9497L17.6415 15.35C18.0307 17.5144 18.2253 18.5965 17.5782 19.3045C17.1018 19.8258 16.3345 19.9636 15.018 20'/%3E%3Cpath d='M12 18V22'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='4' r='2'/%3E%3Cpath d='M10 4H6'/%3E%3Cpath d='M18 4H14'/%3E%3Cpath d='M9 20C7.6725 19.9645 6.90036 19.8282 6.42177 19.3045C5.77472 18.5965 5.9693 17.5144 6.35847 15.35L6.96989 11.9497C7.21514 10.5857 7.33777 9.90371 7.69445 9.38625C8.0453 8.87725 8.55358 8.47814 9.15294 8.24104C9.76224 8 10.5082 8 12 8C13.4918 8 14.2378 8 14.8471 8.24104C15.4464 8.47814 15.9547 8.87725 16.3056 9.38625C16.6622 9.90371 16.7849 10.5857 17.0301 11.9497L17.6415 15.35C18.0307 17.5144 18.2253 18.5965 17.5782 19.3045C17.1018 19.8258 16.3345 19.9636 15.018 20'/%3E%3Cpath d='M12 18V22'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* Include My Vehicle in the EOS mobile floating navigation. */
@media (max-width: 767px) {
    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation-link--my-vehicle {
        display: list-item !important;
        order: 3 !important;
        grid-column: 3 !important;
    }

    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation-link--et-shop { order: 4 !important; grid-column: 4 !important; }
    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account { order: 5 !important; grid-column: 5 !important; }
    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation-link--et-support { order: 6 !important; grid-column: 6 !important; }
    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul:has(.woocommerce-MyAccount-navigation-link--agent-profile),
    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul:has(.woocommerce-MyAccount-navigation-link--agent-dashboard) { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation-link--agent-profile,
    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation-link--agent-dashboard { order: 6 !important; grid-column: 6 !important; }
    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul:has(.woocommerce-MyAccount-navigation-link--agent-profile) .woocommerce-MyAccount-navigation-link--et-support,
    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul:has(.woocommerce-MyAccount-navigation-link--agent-dashboard) .woocommerce-MyAccount-navigation-link--et-support { order: 7 !important; grid-column: 7 !important; }

    .eosmv-vehicle-card {
        grid-template-columns: 1fr;
    }

    .eosmv-vehicle-visual {
        min-height: 240px;
        padding: 20px;
    }

    .eosmv-vehicle-body {
        padding: 20px;
    }

    .eosmv-vehicle-title {
        flex-direction: column;
    }

    .eosmv-details {
        grid-template-columns: 1fr;
    }

    .eosmv-alert {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .eosmv-button,
    body.logged-in.woocommerce-account .woocommerce-MyAccount-content a.eosmv-button {
        width: 100%;
    }

    .eosmv-dashboard-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .eosmv-dashboard-card .eosmv-button {
        grid-column: 1 / -1;
    }
}
