/* StickyInfo CSS */
.smartapp-stickyinfo {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: none;
}

.smartapp-stickyinfo[data-position="top"] {
    top: 0;
}

.smartapp-stickyinfo[data-position="bottom"] {
    bottom: 0;
}

.smartapp-stickyinfo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.smartapp-stickyinfo-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    margin-right: 15px;
}

.smartapp-stickyinfo-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.smartapp-stickyinfo-button {
    display: inline-flex;
    align-items: center;
    background-color: white;
    color: #128C7E;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.smartapp-stickyinfo-button:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23128C7E"><path d="M12.031 6.172c-3.181 0-5.767 2.586-5.768 5.766-.001 1.298.38 2.27 1.019 3.287l-.582 2.128 2.182-.573c.978.58 1.911.928 3.145.929 3.178 0 5.767-2.587 5.768-5.766.001-3.187-2.575-5.77-5.764-5.771zm3.392 8.244c-.144.405-.837.774-1.17.824-.299.045-.677.063-1.092-.069-.252-.08-.575-.187-.988-.365-1.739-.751-2.874-2.502-2.961-2.617-.087-.116-.708-.94-.708-1.793s.448-1.273.607-1.446c.159-.173.346-.217.462-.217l.332.006c.106.005.249-.04.39.298.144.347.491 1.2.534 1.287.043.087.072.188.014.304-.058.116-.087.188-.173.289l-.26.304c-.087.086-.177.18-.076.354.101.174.449.741.964 1.201.662.591 1.221.774 1.394.86s.274.072.376-.043c.101-.116.433-.506.549-.68.116-.173.231-.145.39-.087s1.011.477 1.184.564.289.13.332.202c.045.072.045.419-.1.824z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.smartapp-stickyinfo-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.smartapp-stickyinfo-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    margin-left: 15px;
}

.smartapp-stickyinfo-close:hover {
    opacity: 1;
}

/* Style variations */
.smartapp-stickyinfo-modern {
    border-radius: 0;
}

.smartapp-stickyinfo-minimal {
    padding: 10px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.smartapp-stickyinfo-classic {
    border-top: 3px solid;
    border-bottom: 3px solid;
    border-color: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .smartapp-stickyinfo-content {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }
    
    .smartapp-stickyinfo-text {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .smartapp-stickyinfo-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Animasi */
@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.smartapp-stickyinfo[data-position="top"].show {
    animation: slideInFromTop 0.5s ease forwards;
}

.smartapp-stickyinfo[data-position="bottom"].show {
    animation: slideInFromBottom 0.5s ease forwards;
}
