/* ===================================================
   Buy Me a Momo — Frontend Styles v1.0.1
   No external resources loaded by default.
   Google Fonts (Yatra One + Hind) are loaded only
   when explicitly enabled in Settings > Buy Me a Momo.
   =================================================== */

/* Font stacks: use Google Fonts if loaded, else system fonts */
:root {
    --bmm-font-display: 'Yatra One', Georgia, 'Times New Roman', serif;
    --bmm-font-body:    'Hind', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Widget Container */
.buymemomo-widget {
    font-family: var(--bmm-font-body);
    max-width: 380px;
    margin: 1.5rem auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1.5px solid #f0e6e6;
    transition: box-shadow 0.2s;
}

.buymemomo-widget:hover {
    box-shadow: 0 8px 32px rgba(230,57,70,0.13), 0 2px 8px rgba(0,0,0,0.07);
}

.buymemomo-inner {
    padding: 28px 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

/* Emoji Row */
.buymemomo-emoji-row {
    display: flex;
    gap: 6px;
    animation: buymemomo-bounce 1.6s ease-in-out infinite;
}

@keyframes buymemomo-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

.buymemomo-emoji {
    font-size: 2rem;
    line-height: 1;
}

.buymemomo-emoji:nth-child(2) { animation-delay: 0.15s; }
.buymemomo-emoji:nth-child(3) { animation-delay: 0.30s; }

/* Amount Quick-Select Buttons */
.buymemomo-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.buymemomo-amount-btn {
    font-family: var(--bmm-font-body);
    font-size: 0.82rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid var(--bmm-color, #e63946);
    color: var(--bmm-color, #e63946);
    border-radius: 100px;
    padding: 5px 14px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.12s;
    letter-spacing: 0.02em;
}

.buymemomo-amount-btn:hover {
    background: var(--bmm-color, #e63946);
    color: #fff;
    transform: translateY(-2px);
}

/* Main CTA Button */
.buymemomo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--bmm-font-display);
    font-size: 1.05rem;
    font-weight: 400;
    color: #fff !important;
    text-decoration: none !important;
    background-color: #e63946;
    border-radius: 100px;
    padding: 12px 28px;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 4px 14px rgba(230,57,70,0.30);
    letter-spacing: 0.01em;
    width: 100%;
    justify-content: center;
    max-width: 280px;
}

.buymemomo-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(230,57,70,0.38);
    filter: brightness(1.06);
}

.buymemomo-btn:active {
    transform: translateY(0) scale(0.98);
}

.buymemomo-btn-icon {
    font-size: 1.3rem;
    line-height: 1;
}

/* Powered By (opt-in only, hidden by default) */
.buymemomo-powered {
    font-size: 0.76rem;
    color: #aaa;
    margin: 0;
}

.buymemomo-powered a {
    color: #aaa;
    text-decoration: underline;
    transition: color 0.15s;
}

.buymemomo-powered a:hover {
    color: #e63946;
}

/* Floating Button */
.buymemomo-floating {
    position: fixed;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--bmm-font-display);
    font-size: 0.95rem;
    color: #fff !important;
    text-decoration: none !important;
    background: #e63946;
    border-radius: 100px;
    padding: 12px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.20);
    transition: transform 0.18s, box-shadow 0.18s;
    max-width: 220px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.buymemomo-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.buymemomo-float-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.buymemomo-float-label {
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 480px) {
    .buymemomo-widget   { margin: 1rem 0; }
    .buymemomo-btn      { font-size: 0.95rem; padding: 11px 20px; }
    .buymemomo-floating { padding: 10px 14px; }
    .buymemomo-float-label { display: none; }
}

/* Gutenberg editor block wrapper */
.buymemomo-block-wrapper {
    padding: 8px 0;
}
