/**
 * Subscription Prompt Styles
 * Clean, professional floating banner
 */

.tt-push-prompt {
    position: fixed;
    z-index: 999999;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Position variants */
.tt-push-prompt[data-position="bottom-center"] {
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
}

.tt-push-prompt[data-position="bottom-right"] {
    bottom: 20px;
    right: 20px;
    left: auto;
    transform: translateY(100%);
}

/* Visible state */
.tt-push-prompt-visible {
    opacity: 1;
    transform: translateY(0) !important;
    pointer-events: auto;
}

.tt-push-prompt-visible[data-position="bottom-center"] {
    transform: translateX(-50%) translateY(0);
}

/* Content container */
.tt-push-prompt-content {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 0 auto;
}

.tt-push-prompt[data-position="bottom-right"] .tt-push-prompt-content {
    max-width: 400px;
}

/* Close button */
.tt-push-prompt-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-push-prompt-close:hover {
    opacity: 1;
}

/* Message */
.tt-push-prompt-message {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
    padding-right: 30px;
}

/* Actions */
.tt-push-prompt-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Buttons */
.tt-push-prompt-allow,
.tt-push-prompt-dismiss {
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.tt-push-prompt-allow {
    background: #1e73be;
    color: #ffffff;
}

.tt-push-prompt-allow:hover {
    opacity: 0.9;
}

.tt-push-prompt-allow:active {
    transform: scale(0.98);
}

.tt-push-prompt-dismiss {
    background: transparent;
    color: inherit;
    opacity: 0.7;
}

.tt-push-prompt-dismiss:hover {
    opacity: 1;
}

/* Success message */
.tt-push-success-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: #4caf50;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.tt-push-success-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .tt-push-prompt[data-position="bottom-center"],
    .tt-push-prompt[data-position="bottom-right"] {
        left: 10px;
        right: 10px;
        bottom: 10px;
        transform: translateY(100%);
    }
    
    .tt-push-prompt-visible {
        transform: translateY(0) !important;
    }
    
    .tt-push-prompt-content {
        max-width: none !important;
        padding: 16px;
    }
    
    .tt-push-prompt-message {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .tt-push-prompt-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .tt-push-prompt-allow,
    .tt-push-prompt-dismiss {
        width: 100%;
        text-align: center;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .tt-push-prompt-message {
        font-size: 13px;
    }
    
    .tt-push-prompt-allow,
    .tt-push-prompt-dismiss {
        font-size: 13px;
        padding: 8px 16px;
    }
}
