.etbw-widget-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.etbw-widget {
    position: relative;
    display: flex;
    gap: 32px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    color: #111827;
}

.etbw-widget.skin-default {
    background: #ffffff;
    color: #111827;
}

.etbw-widget.skin-light {
    background: #f3f4f6;
    color: #111827;
}

.etbw-widget.skin-accent {
    background: #e0f2fe;
    color: #0f172a;
}

.etbw-widget.skin-dark {
    background: #111827;
    color: #f9fafb;
}

.etbw-widget__title,
.etbw-widget__text,
.etbw-widget__text p {
    color: inherit;
}

.etbw-widget--image-right {
    flex-direction: row-reverse;
}

.etbw-widget__media,
.etbw-widget__content {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.etbw-widget__media {
    flex: 0 0 45%;
    max-width: 45%;
}

.etbw-widget__content {
    flex: 1 1 55%;
}

.etbw-widget__image {
    width: 100%;
}

.etbw-widget__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.etbw-widget.ratio-1-1 .etbw-widget__image {
    aspect-ratio: 1 / 1;
}

.etbw-widget.ratio-4-3 .etbw-widget__image {
    aspect-ratio: 4 / 3;
}

.etbw-widget.ratio-16-9 .etbw-widget__image {
    aspect-ratio: 16 / 9;
}

.etbw-widget.ratio-custom .etbw-widget__image img {
    height: 360px;
}

.etbw-widget__title {
    margin: 0 0 16px;
}

.etbw-widget__text p:last-child {
    margin-bottom: 0;
}

.etbw-widget__actions {
    margin-top: 24px;
    position: relative;
    z-index: 3;
}

.etbw-widget__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    position: relative;
    z-index: 3;
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
}

.etbw-widget.skin-dark .etbw-widget__button {
    background: #f9fafb;
    color: #111827;
}

.etbw-widget__button:hover,
.etbw-widget__button:focus {
    opacity: 0.96;
}

.etbw-widget__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.etbw-widget--linked .etbw-widget__button,
.etbw-widget--linked .etbw-widget__actions {
    z-index: 4;
}

.etbw-widget__button:focus-visible,
.etbw-widget__overlay-link:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.92);
}

.etbw-widget.skin-dark .etbw-widget__button:focus-visible,
.etbw-widget.skin-dark .etbw-widget__overlay-link:focus-visible {
    outline: 3px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(17,24,39,0.95);
}

@media (max-width: 767px) {
    .etbw-widget,
    .etbw-widget--image-right {
        flex-direction: column;
    }

    .etbw-widget__media,
    .etbw-widget__content {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .etbw-widget.ratio-custom .etbw-widget__image img {
        height: auto;
    }
}
