.sts-message {
    position: fixed;
    z-index: 999999;
    font-family: var(--sts-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif);
    font-size: var(--sts-font-size, 14px);
    line-height: 1.5;
    color: var(--sts-text-color, #1d2327);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.sts-message.sts-active {
    pointer-events: auto;
}

.sts-message-inner {
    background: var(--sts-bg-color, #fff);
    border: 1px solid var(--sts-border-color, #dcdcde);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 20px 24px;
    position: relative;
    max-width: 600px;
    border-radius: var(--sts-border-radius, 8px);
}

.sts-message-content {
    margin-bottom: 16px;
}

.sts-message-content a {
    color: var(--sts-link-color, #2271b1);
}

.sts-message-content p {
    margin: 0 0 8px;
}

.sts-message-content p:last-child {
    margin-bottom: 0;
}

.sts-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sts-support-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--sts-button-bg, #2271b1);
    color: var(--sts-button-text, #fff) !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.sts-support-link:hover {
    filter: brightness(1.15);
}

.sts-dismiss {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--sts-dismiss-color, #8c8f94);
    cursor: pointer;
    padding: 4px;
}

.sts-dismiss:hover {
    filter: brightness(0.5);
}

.sts-position-bottom .sts-message-inner {
    border-bottom: none;
    border-radius: var(--sts-border-radius, 8px) var(--sts-border-radius, 8px) 0 0;
}

.sts-position-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
}

.sts-position-bottom.sts-active {
    transform: translateX(-50%) translateY(0);
}

.sts-position-top .sts-message-inner {
    border-top: none;
    border-radius: 0 0 var(--sts-border-radius, 8px) var(--sts-border-radius, 8px);
}

.sts-position-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
}

.sts-position-top.sts-active {
    transform: translateX(-50%) translateY(0);
}

.sts-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
}

.sts-position-center.sts-active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.sts-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sts-overlay-color, rgba(0, 0, 0, 0.5));
    z-index: 999998;
}

.sts-dismissing {
    opacity: 0 !important;
    transform: translateY(20px) !important;
}

.sts-toast .sts-message-inner {
    border-radius: var(--sts-border-radius, 8px);
}

.sts-toast.sts-position-bottom {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
}

.sts-toast.sts-position-bottom.sts-active {
    transform: translateX(-50%) translateY(0);
}

.sts-toast.sts-position-top {
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
}

.sts-toast.sts-position-top.sts-active {
    transform: translateX(-50%) translateY(0);
}

.sts-inline .sts-message-inner {
    border-radius: var(--sts-border-radius, 8px);
}

.sts-inline {
    position: static;
    margin: 16px auto;
    max-width: 720px;
}

.sts-whitelist-info {
    flex-basis: 100%;
    margin-top: 8px;
}

.sts-whitelist-info summary {
    cursor: pointer;
    color: var(--sts-link-color, #646970);
    font-size: 13px;
}

.sts-whitelist-info summary:hover {
    filter: brightness(0.7);
}

.sts-whitelist-steps {
    margin-top: 8px;
    padding: 12px 16px;
    background: var(--sts-bg-color, #f6f7f7);
    border: 1px solid var(--sts-border-color, #dcdcde);
    border-radius: 4px;
    font-size: 13px;
}

.sts-whitelist-steps ol {
    margin: 0;
    padding-left: 20px;
}

.sts-whitelist-steps li {
    margin-bottom: 4px;
}

.sts-whitelist-steps li:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .sts-message-inner {
        max-width: 100%;
        margin: 0 8px;
        padding: 16px;
    }

    .sts-message-actions {
        flex-direction: column;
    }

    .sts-support-link {
        text-align: center;
        width: 100%;
    }
}
