/* Notice Bar Widget Styles */
.enb-notice-bar {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 100;
}

/* Content Layer */
.enb-notices-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.enb-notice-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.enb-notice-item.enb-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Slide transition */
.enb-notice-bar[data-transition-type="slide"] .enb-notice-item {
    transform: translateX(30px);
}

.enb-notice-bar[data-transition-type="slide"] .enb-notice-item.enb-active {
    transform: translateX(0);
}

.enb-notice-bar[data-transition-type="slide"] .enb-notice-item.enb-slide-out-left {
    transform: translateX(-30px);
}

.enb-notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding: 0 50px;
    position: relative;
    z-index: 2;
}

.enb-notice-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.enb-notice-link:hover {
    opacity: 0.85;
}

.enb-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
    color: #ffffff;
}

.enb-notice-icon svg {
    width: 1em;
    height: 1em;
    fill: #ffffff;
}

.enb-notice-icon i {
    line-height: 1;
}

/* Notice text - support for rich text */
.enb-notice-text {
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff;
}

.enb-notice-text p {
    margin: 0;
    display: inline;
}

.enb-notice-text strong,
.enb-notice-text b {
    font-weight: 700;
}

.enb-notice-text em,
.enb-notice-text i {
    font-style: italic;
}

.enb-notice-text u {
    text-decoration: underline;
}

.enb-notice-text s,
.enb-notice-text strike {
    text-decoration: line-through;
}

.enb-notice-text a {
    color: #ffffff;
    text-decoration: underline;
}

.enb-notice-text a:hover {
    opacity: 0.8;
}

/* Navigation Arrows - always white, no background */
.enb-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 8px;
    cursor: pointer;
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enb-nav-arrow:hover {
    opacity: 1;
    background: transparent !important;
    background-color: transparent !important;
}

.enb-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
    background: transparent !important;
}

.enb-nav-arrow:focus {
    outline: none;
    background: transparent !important;
}

.enb-nav-arrow:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    background: transparent !important;
}

.enb-nav-prev {
    left: 10px;
}

.enb-nav-next {
    right: 10px;
}

.enb-nav-arrow svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    stroke-width: 2;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .enb-notice-text {
        font-size: 12px;
    }
    
    .enb-notice-content {
        padding: 0 40px;
    }
    
    .enb-nav-prev {
        left: 5px;
    }
    
    .enb-nav-next {
        right: 5px;
    }
    
    .enb-nav-arrow {
        padding: 5px;
    }
    
    .enb-nav-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Editor Preview Styles */
.elementor-editor-active .enb-notice-item {
    cursor: default;
}

.elementor-editor-active .enb-notice-bar {
    min-height: 44px;
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .enb-notice-item,
    .enb-nav-arrow {
        transition: none;
    }
}
