/**
 * Webinew Footer Signature
 * Styles for the Webinew design signature widget in footer
 */

:root {
    --webinew-footer-signature-bg: transparent;
    --webinew-footer-signature-color: inherit;
    --webinew-footer-signature-min-height: 64px;
}

.webinew-footer-signature {
    width: 100%;
    flex-basis: 100%;
    box-sizing: border-box;
    background-color: var(--webinew-footer-signature-bg, transparent);
    min-height: var(--webinew-footer-signature-min-height, 64px);
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.6;
    color: var(--webinew-footer-signature-color, inherit);
    font-family: inherit;
    clear: both;
    direction: rtl;
    margin: 0;
    padding: 0;
}

.webinew-footer-signature__inner {
    width: 100%;
    max-width: 1320px;
    min-height: inherit;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
}

.webinew-footer-signature__copyright {
    text-align: right;
    color: inherit;
    flex: 1 1 auto;
}

.webinew-footer-signature__credit {
    text-align: left;
    white-space: nowrap;
    color: inherit;
    flex: 0 0 auto;
}

.webinew-footer-signature__prefix {
    color: inherit;
    display: inline;
}

.webinew-footer-signature__link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: inline;
}

.webinew-footer-signature__link:hover,
.webinew-footer-signature__link:focus {
    opacity: 0.8;
    color: inherit;
}

/* Fallback when no standard footer element is discovered in DOM */
.webinew-footer-signature--fallback {
    position: relative;
    width: 100%;
}

/* Mobile & Tablet responsiveness */
@media (max-width: 767px) {
    .webinew-footer-signature__inner {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 12px 16px;
    }

    .webinew-footer-signature__copyright,
    .webinew-footer-signature__credit {
        width: 100%;
        text-align: center;
    }

    .webinew-footer-signature__credit {
        white-space: normal;
    }
}
