/* Autorro CTA - shared styles for all banner variants */

.autorro-banner {
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 16px 0;
}

/* Vector (solid bg + side car image) variant */
.autorro-banner--vector {
    background-color: #481132;
}
.autorro-banner--vector .ab-vector {
    position: absolute;
    left: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}
.autorro-banner--vector .ab-vector img {
    width: 100%;
    height: 100%;
    display: block;
}
.autorro-banner--vector .ab-visual {
    flex: 1 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    z-index: 2;
}
.autorro-banner--vector .ab-car-img {
    width: 368px !important;
    height: 218px !important;
    object-fit: contain;
    display: block;
}

/* Photo (full background image) variant */
.autorro-banner--photo .ab-bg {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.autorro-banner--photo .ab-bg-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}
.autorro-banner--photo .ab-bg-gradient {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(to right, #481132 38.963%, rgba(72, 17, 50, 0.78) 54.478%, rgba(72, 17, 50, 0) 93.78%);
}

/* Content (shared) */
.autorro-banner .ab-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.autorro-banner--vector .ab-content {
    flex: 1 0 0;
    padding: 48px 0 48px 48px;
}
.autorro-banner--photo .ab-content {
    flex: 0 0 60%;
    max-width: 60%;
    padding: 48px;
}

.autorro-banner .ab-texts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
/* :not(#zz) trick — pridáva ID-úroveň špecificity (1,1,1+) tak, aby sme prebíjali
   theme pravidlá ako "#blog h3 { color: ... !important }" a podobne. */
.autorro-banner h5.ab-label:not(#zz) {
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.1 !important;
    color: #ff501c !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'PP Mori', sans-serif;
}
.autorro-banner h3.ab-headline:not(#zz) {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 30px !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-family: 'PP Mori ExtraBold', sans-serif;
}
.autorro-banner p.ab-cta-wrap:not(#zz) {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
.autorro-banner a.ab-btn:not(#zz),
.autorro-banner a.ab-btn:not(#zz):hover,
.autorro-banner a.ab-btn:not(#zz):focus,
.autorro-banner a.ab-btn:not(#zz):visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px !important;
    background: #ff501c !important;
    border-radius: 8px !important;
    font-family: 'PP Mori', sans-serif;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    border: none !important;
    box-shadow: none !important;
}

/* Mobile */
@media (max-width: 767px) {
    .autorro-banner--vector {
        flex-wrap: wrap;
    }
    .autorro-banner--vector .ab-content {
        flex: 1 1 100%;
        padding: 32px 24px;
        gap: 24px;
    }
    .autorro-banner--vector .ab-visual {
        flex: 1 1 100%;
        justify-content: center;
        padding: 16px 24px 24px;
    }
    .autorro-banner--vector .ab-car-img {
        width: 100%;
        max-width: 340px;
        height: auto;
    }
    .autorro-banner--photo .ab-bg-gradient {
        background: linear-gradient(to bottom, #481132 20%, rgba(72, 17, 50, 0.78) 45%, rgba(72, 17, 50, 0) 100%);
    }
    .autorro-banner--photo .ab-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 32px 24px;
        height: 400px;
        gap: 24px;
        justify-content: flex-start;
    }
    .autorro-banner .ab-headline {
        font-size: 26px !important;
    }
}
