.my-garage-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    width: 100%;
}

.my-garage-fields > div {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.my-garage-fields label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 2px;
}

.my-garage-fields select,
.my-garage-fields input[type="text"] {
    width: 100%;
    padding: 7px 10px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #d3d8de;
    background: #fff;
    margin-bottom: 0;
    box-sizing: border-box;
    transition: border 0.2s;
}

.my-garage-fields hr {
    margin: 10px 0 10px 0;
    border: none;
    border-top: 1.5px solid #e3e3e3;
    width: 100%;
}

.my-garage-fields .reg-plate-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    margin-bottom: 0;
    grid-column: 1 / 3;
}

.my-garage-fields .reg-plate-row label {
    margin-bottom: 5px;
}

.my-garage-fields .reg-plate-row input[type="text"] {
    margin-bottom: 8px;
}

.my-garage-fields .reg-plate-row button {
    border-radius: 8px;
    background: #1855a3;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    padding: 8px 0;
    width: 100%;
    margin-bottom: 4px;
}

.my-garage-fields .reg-plate-row button:hover {
    background: #12407b;
}

.my-garage-fields button[type="submit"] {
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    background: #2678c9;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    padding: 12px 0;
    cursor: pointer;
}

@media (max-width: 480px) {
    .garage-slider-widget {
        max-width: 100vw;
        min-width: 0;
        border-radius: 0;
    }
    .garage-slide {
        padding: 14px 4vw 24px 4vw;
    }
}

.garage-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid #1855a3;
    border-radius: 50%;
    display: inline-block;
    animation: garage-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 7px;
}
@keyframes garage-spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
.garage-msg { font-size: 14px; margin-bottom: 7px; }

.my-garage-login-prompt {
    font-size: 16px;
    text-align: center;
    padding: 24px 0;
    color: #333;
}
.my-garage-login-prompt a {
    color: #2678c9;
    font-weight: bold;
    text-decoration: underline;
}
.garage-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: block;
    text-align: left;
}

.garage-add-btn-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 18px 0 0 0;
}


.garage-add-btn {
    background: #2678c9;
    color: #fff;
    font-size: 1.08em;
    padding: 10px 30px;
    border-radius: 7px;
    border: none;
    font-weight: 600;
    transition: background 0.2s;
    margin: 0 auto;
    display: inline-block;
    min-width: 160px;
}

.garage-add-btn:hover,
.garage-add-btn:focus {
    background: #1855a3;
}

.my-garage-fields button[type="submit"] {
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    background: #2678c9;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    padding: 12px 0;
    cursor: pointer;
    transition: background 0.2s;
}
.my-garage-fields button[type="submit"]:hover,
.my-garage-fields button[type="submit"]:focus {
    background: #1855a3;
}


.garage-vehicles-wrapper {
    background: #f5f5f7;
    border-radius: 9px;
    padding: 10px 12px 2px 12px;
}

.garage-vehicle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 14px 0 14px 0;
    border-bottom: 1px solid #e0e0e0;
}

.garage-vehicle-row:last-child {
    border-bottom: none;
}

.garage-vehicles-wrapper {
    background: #f5f5f7;
    border-radius: 9px;
    padding: 10px 12px 2px 12px;
    margin-bottom: 30px;
}

.garage-divider {
    border: none;
    border-top: 1.5px solid #e3e3e3;
    margin: 0 0 18px 0;
}

.garage-remove-btn {
    background: none;
    border: none;
    color: #b13d3d;
    font-size: 1.45em;
    font-weight: bold;
    cursor: pointer;
    padding: 0 8px;
    margin-left: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    min-width: 32px;   /* ADDED: fixes shrinking */
    min-height: 32px;  /* ADDED: fixes shrinking */
    height: 32px;      /* ADDED: fixes shrinking */
    width: 32px;       /* ADDED: fixes shrinking */
    border-radius: 50%;/* For nice hover effect */
}
.garage-x-icon {
    width: 22px !important;
    height: 22px !important;
    pointer-events: none;
    flex-shrink: 0; /* Prevents shrinking */
}
.garage-remove-btn:hover {
    background: #ffe6e6; /* Very light red background */
    color: #e50000;      /* Even brighter X */
}

.garage-remove-btn:focus {
    outline: 2px solid #e50000;
    background: #ffe6e6;
}


.garage-vehicle-link {
    color: #333;
    text-decoration: none;
    font-size: 1em;
}
.garage-vehicle-link:hover {
    text-decoration: underline;
}
