.mementor-tts-notification {
    position: fixed !important;
    top: 40px !important;
    left: 50% !important;
    right: auto !important;
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16) !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 100000 !important;
    max-width: 360px !important;
    min-width: 240px !important;
    width: auto !important;
    transform: translate(-50%, -80px) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    border-radius: 8px !important;
    opacity: 0;
    pointer-events: none;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: hidden !important;
}

.mementor-tts-notification.show {
    transform: translate(-50%, 0) !important;
    opacity: 1;
    pointer-events: auto;
}

.mementor-tts-notification.success,
.mementor-tts-notification.error,
.mementor-tts-notification.warning,
.mementor-tts-notification.info {
    border: none !important;
}

.mementor-tts-notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-left: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.mementor-tts-notification.success .mementor-tts-notification-icon {
    color: #1D9E75;
    background: #E1F5EE;
}

.mementor-tts-notification.error .mementor-tts-notification-icon {
    color: #f87171;
    font-size: 14px;
    background: rgba(248,113,113,0.15);
}

.mementor-tts-notification.warning .mementor-tts-notification-icon {
    color: #fbbf24;
    background: rgba(251,191,36,0.15);
}

.mementor-tts-notification.info .mementor-tts-notification-icon {
    color: #60a5fa;
    font-style: italic;
    font-size: 15px;
    background: rgba(96,165,250,0.15);
}

.mementor-tts-notification-content {
    flex: 1 !important;
    padding: 14px 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #fff !important;
}

.mementor-tts-notification-content strong {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    color: #fff;
}

.mementor-tts-notification-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #fff;
    text-align: left;
    text-transform: none;
}

.mementor-tts-notification-content p {
    margin: 0 0 4px;
    color: rgba(255,255,255,0.7);
}

.mementor-tts-notification-content a.button {
    display: inline-block;
    margin: 4px 4px 0 0;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    min-height: auto;
    line-height: 1.6;
}

.mementor-tts-notification-content a.button-primary {
    background: #fff;
    border: none;
    color: #1a1a1a;
}

.mementor-tts-notification-content a.button-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.mementor-tts-notification-close {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    flex-shrink: 0;
    width: 36px !important;
    min-height: 48px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.06) !important;
    border: none !important;
    border-left: 1px solid rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.5) !important;
    font-size: 16px !important;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    line-height: 1;
}

.mementor-tts-notification-close:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
}

/* Quota/API error wrappers */
.quota-error-wrapper {
    color: white !important;
    padding: 30px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.quota-error-wrapper h3 {
    color: white !important;
    font-size: 22px !important;
    margin: 0 0 10px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: bold !important;
}

.quota-error-wrapper p {
    margin: 0 0 15px 0 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
}

.quota-action-buttons {
    margin-top: 20px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
}

.quota-action-buttons a.button {
    display: inline-block !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.quota-action-buttons a.button-primary {
    background-color: white !important;
    color: #e95766 !important;
    border: none !important;
}

.quota-action-buttons a.button-secondary {
    background-color: #00a32a !important;
    color: white !important;
    border: 2px solid white !important;
}

.quota-action-buttons a.button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15) !important;
}

.api-error-wrapper {
    color: white !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.api-error-wrapper h3 {
    color: white !important;
    font-size: 22px !important;
    margin: 0 0 10px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: bold !important;
}

.api-error-wrapper p {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.mementor-tts-audio-player {
    display: none;
}

@keyframes rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dashicons-update-alt {
    display: inline-block;
}
