/* Sunrise Select Marketing Engine CSS */

/* Base Wrapper */
.sunrise-campaign-wrapper {
    position: fixed;
    z-index: 999999;
    font-family: inherit;
}

/* Positions */
.sunrise-campaign-wrapper.pos-center {
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sunrise-campaign-wrapper.pos-bottom-right {
    bottom: 20px; right: 20px;
}
.sunrise-campaign-wrapper.pos-bottom-left {
    bottom: 20px; left: 20px;
}
.sunrise-campaign-wrapper.pos-top-bar {
    top: 0; left: 0; right: 0;
}
.sunrise-campaign-wrapper.pos-bottom-bar {
    bottom: 0; left: 0; right: 0;
}

/* Overlay for Modal */
.sunrise-camp-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); /* Default fallback */
    z-index: 1;
}

/* Content Container */
.sunrise-camp-content {
    position: relative;
    z-index: 2;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.sunrise-campaign-wrapper.pos-top-bar .sunrise-camp-content,
.sunrise-campaign-wrapper.pos-bottom-bar .sunrise-camp-content {
    max-width: 100%;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}

.sunrise-camp-inner {
    padding: 30px;
    text-align: center;
}

.sunrise-campaign-wrapper.pos-top-bar .sunrise-camp-inner,
.sunrise-campaign-wrapper.pos-bottom-bar .sunrise-camp-inner {
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sunrise-campaign-wrapper.pos-top-bar .sunrise-camp-inner h2,
.sunrise-campaign-wrapper.pos-bottom-bar .sunrise-camp-inner h2 {
    margin: 0;
    font-size: 16px;
}

/* Image */
.sunrise-camp-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Close Button */
.sunrise-camp-close {
    position: absolute;
    top: 10px; right: 15px;
    background: none; border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    z-index: 3;
}
.sunrise-camp-close:hover { color: #000; }

.sunrise-campaign-wrapper.pos-top-bar .sunrise-camp-close,
.sunrise-campaign-wrapper.pos-bottom-bar .sunrise-camp-close {
    top: 50%;
    transform: translateY(-50%);
}

/* Typography */
.sunrise-camp-badge {
    display: inline-block;
    background: #ffb400;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.sunrise-camp-inner h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #111;
}
.sunrise-camp-inner h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #555;
    font-weight: 400;
}
.sunrise-camp-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

/* Actions */
.sunrise-camp-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Animations */
.sunrise-animate-in {
    animation: sunriseFadeIn 0.3s ease-out forwards;
}

@keyframes sunriseFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
