.v8-show-your-car-widget,
.v8-show-your-car-widget *,
.v8-car-list-wrap,
.v8-car-list-wrap * {
    font-family: 'Poppins', sans-serif !important;
}

.v8-show-your-car-widget .v8-mobile-intro,
.v8-mobile-form-panel {
    display: none;
}

.v8-show-your-car-widget .v8-timeline-wrapper {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    z-index: 30 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 3px 30px 28px 30px !important;
    transform: translateY(3px) !important;
}

.v8-show-your-car-widget .v8-timeline-item {
    width: 14% !important;
    text-align: center !important;
    position: relative !important;
    z-index: 35 !important;
}

.v8-show-your-car-widget .item-1{ left:-12px !important; }
.v8-show-your-car-widget .item-2{ left:-6px !important; }
.v8-show-your-car-widget .item-3{ left:5px !important; }
.v8-show-your-car-widget .item-4{ left:4px !important; }
.v8-show-your-car-widget .item-5{ left:0px !important; }
.v8-show-your-car-widget .item-6{ left:-4px !important; }
.v8-show-your-car-widget .item-7{ left:-4px !important; }

.v8-show-your-car-widget .v8-timeline-item .year {
    display: block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: .5 !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.5px !important;
}

.v8-show-your-car-widget .v8-timeline-item .title {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    opacity: 0.92 !important;
}

.v8-show-your-car-widget .v8-car-form {
    margin: 0 70px 0 0;
    max-width: 380px;
    display: grid;
    gap: 10px;
}

.v8-mobile-form-panel .v8-car-form {
    margin: 0;
    max-width: 100%;
    display: grid;
    gap: 10px;
}

.v8-show-your-car-widget .v8-car-form-field,
.v8-mobile-form-panel .v8-car-form-field {
    display: block;
}

.v8-show-your-car-widget .v8-car-form-row,
.v8-mobile-form-panel .v8-car-form-row {
    display: grid;
    grid-template-columns: minmax(0, 120px) minmax(0, 150px);
    gap: 10px;
    align-items: end;
}

.v8-show-your-car-widget .v8-car-form-field span,
.v8-mobile-form-panel .v8-car-form-field span {
    display: block;
    margin: 0 0 4px 0;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.v8-show-your-car-widget .v8-car-form input,
.v8-mobile-form-panel .v8-car-form input {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.34);
    color: #ffffff;
    padding: 9px 12px;
    font: inherit;
    font-size: 15px;
    outline: none;
}

.v8-show-your-car-widget .v8-car-form input:focus,
.v8-mobile-form-panel .v8-car-form input:focus {
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(0, 0, 0, 0.48);
}

.v8-show-your-car-widget .v8-photo-field,
.v8-mobile-form-panel .v8-photo-field {
    position: relative;
}

.v8-show-your-car-widget .v8-photo-input,
.v8-mobile-form-panel .v8-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.v8-show-your-car-widget .v8-photo-dropzone,
.v8-mobile-form-panel .v8-photo-dropzone {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    border: 1px dashed rgba(255, 255, 255, 0.46);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    padding: 4px 0px 0px 12px;
    text-align: left;
    cursor: pointer;
    display: grid;
    align-content: center;
    gap: 0px;
}

.v8-show-your-car-widget .v8-photo-dropzone:hover,
.v8-show-your-car-widget .v8-photo-dropzone.is-dragover,
.v8-show-your-car-widget .v8-photo-dropzone.has-file,
.v8-mobile-form-panel .v8-photo-dropzone:hover,
.v8-mobile-form-panel .v8-photo-dropzone.is-dragover,
.v8-mobile-form-panel .v8-photo-dropzone.has-file {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(0, 0, 0, 0.46);
}

.v8-show-your-car-widget .v8-photo-dropzone-main,
.v8-mobile-form-panel .v8-photo-dropzone-main {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
    text-transform: none;
}

.v8-show-your-car-widget .v8-photo-dropzone-sub,
.v8-mobile-form-panel .v8-photo-dropzone-sub {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    text-transform: none;
}

.v8-show-your-car-widget .v8-car-form-submit,
.v8-mobile-form-panel .v8-car-form-submit {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #ffCC00;
    color: #121212;
    padding: 10px 16px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.v8-show-your-car-widget .v8-car-form-submit:disabled,
.v8-mobile-form-panel .v8-car-form-submit:disabled {
    cursor: wait;
    opacity: 0.68;
}

.v8-show-your-car-widget .v8-car-form-message,
.v8-mobile-form-panel .v8-car-form-message {
    min-height: 20px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.v8-show-your-car-widget .v8-car-form-message.is-success,
.v8-mobile-form-panel .v8-car-form-message.is-success {
    color: #ffffff;
}

.v8-show-your-car-widget .v8-car-form-message.is-error,
.v8-mobile-form-panel .v8-car-form-message.is-error {
    color: #ffffff;
}

.v8-car-list-wrap {
    width: 100%;
    max-width: 1280px;
    margin: 22px auto 0 auto;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
}

.v8-car-list-inner {
    border-radius: 32px;
    background: rgba(16, 16, 16, 0.94);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
    padding: 24px 30px;
    overflow: visible;
}

.v8-car-list-inner h3 {
    margin: 0 0 14px 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #ffffff;
}

.v8-car-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.v8-car-list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 0;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: visible;
}

.v8-car-list-item:last-child {
    border-bottom: 0;
}

.v8-car-list-photo {
    width: 76px;
    height: 56px;
    flex: 0 0 76px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    cursor: zoom-in;
}

.v8-car-list-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.v8-car-list-photo:hover {
    z-index: 1;
}

.v8-car-list-photo:hover img {
    width: 100%;
    height: 100%;
    position: static;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    background: transparent;
}

.v8-photo-preview {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(0, 0, 0, 0.82);
    cursor: zoom-out;
}

.v8-photo-preview[hidden] {
    display: none !important;
}

.v8-photo-preview-open {
    overflow: hidden;
}

.v8-photo-preview img {
    max-width: min(1100px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    background: #111111;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
}

.v8-car-list-body {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.v8-car-list-title {
    min-width: 0;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.v8-car-list-actions {
    flex: 0 0 auto;
}

.v8-car-like {
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}

.v8-car-like:hover {
    background: rgba(255, 255, 255, 0.16);
}

.v8-car-like.is-liked,
.v8-car-like:disabled {
    cursor: default;
    opacity: 0.72;
}

.v8-car-like-count {
    min-width: 22px;
    min-height: 22px;
    border-radius: 999px;
    background: #ffffff;
    color: #121212;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px 0 6px;
}

.v8-car-list-empty {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 991px) {
    .v8-show-your-car-widget {
        width: calc(100% - 32px) !important;
        min-height: clamp(640px, calc(100svh - 24px), 760px) !important;
        margin: 0 auto !important;
        border-radius: 20px !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        background-image:
            linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.78) 100%),
            url('https://v8drive.pl/wp-content/uploads/2026/05/showcarmobile.jpg') !important;
        background-position: center top !important;
        background-size: cover !important;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28) !important;
    }

    .v8-show-your-car-widget .v8-era-image,
    .v8-show-your-car-widget .v8-timeline-wrapper,
    .v8-show-your-car-widget .v8-panel:not(#panel-default) {
        display: none !important;
    }

    .v8-show-your-car-widget .v8-content {
        max-width: 100% !important;
        min-height: inherit !important;
        padding: 28px 20px 24px 20px !important;
        box-sizing: border-box !important;
        transform: none !important;
    }

    .v8-show-your-car-widget #panel-default {
        position: relative !important;
        min-height: calc(clamp(640px, calc(100svh - 24px), 760px) - 52px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .v8-show-your-car-widget .v8-panel h2 {
        max-width: 430px !important;
        font-size: clamp(28px, 11vw, 39px) !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
    }

    .v8-show-your-car-widget .v8-desktop-intro {
        display: none !important;
    }

    .v8-show-your-car-widget .v8-mobile-intro {
        display: grid !important;
        gap: 18px !important;
    }

    .v8-show-your-car-widget .v8-mobile-intro p {
        margin: 0 !important;
        max-width: 420px !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
        font-weight: 400 !important;
    }

    .v8-show-your-car-widget .v8-mobile-add-button {
        width: 100% !important;
        min-height: 48px !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        color: #121212 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        font-size: 15px !important;
        line-height: 1 !important;
        font-weight: 700 !important;
    }

    .v8-mobile-form-panel {
        width: calc(100% - 32px) !important;
        max-width: 1280px !important;
        margin: 16px auto 0 auto !important;
        box-sizing: border-box !important;
        border-radius: 20px !important;
        background: rgba(16, 16, 16, 0.96) !important;
        color: #ffffff !important;
        padding: 20px !important;
        font-family: 'Poppins', sans-serif !important;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
    }

    .v8-mobile-form-panel.is-visible {
        display: block !important;
    }

    .v8-mobile-form-panel h2 {
        margin: 0 0 14px 0 !important;
        font-size: 28px !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        color: #ffffff !important;
    }

    .v8-show-your-car-widget .v8-car-form,
    .v8-mobile-form-panel .v8-car-form {
        margin-right: 0;
        max-width: 100%;
    }

    .v8-show-your-car-widget .v8-car-form-row,
    .v8-mobile-form-panel .v8-car-form-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .v8-car-list-wrap {
        padding: 0 16px;
    }

    .v8-car-list-inner {
        border-radius: 20px;
        padding: 20px;
    }

    .v8-car-list-body {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .v8-car-list-photo {
        width: 72px;
        height: 54px;
        flex-basis: 72px;
    }
}
