/* Soft banner — top of viewport, dismissable */
.siya-update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #2563eb;
    color: #fff;
    font: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    /* Respect iOS safe-area (notch) */
    padding-top: max(10px, env(safe-area-inset-top));
}

.siya-update-banner__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.siya-update-banner__text strong {
    font-weight: 600;
}

.siya-update-banner__text span {
    font-size: 13px;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.siya-update-banner__update {
    background: #fff;
    color: #2563eb;
    border: 0;
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.siya-update-banner__update:hover {
    background: #f3f4f6;
}

.siya-update-banner__close {
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 22px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Blocking modal — full screen, no dismiss */
.siya-update-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.siya-update-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.siya-update-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    max-width: 92vw;
    width: 380px;
    font: 15px;
    color: #111827;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.siya-update-modal__dialog h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
}

.siya-update-modal__dialog p {
    margin: 8px 0;
}

.siya-update-modal__notes {
    color: #6b7280;
    font-size: 14px;
}

.siya-update-modal__update {
    margin-top: 16px;
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.siya-update-modal__update:hover {
    background: #1d4ed8;
}
