/*
 * BuyMeCoffe.to – front-end styles
 * bmc-widget          = trzy karty kwot (auto-inject / shortcode / blok)
 * bmc-widget--single  = jeden przycisk SVG (klasyczny widget w sidebarze)
 */

:root {
    --bmc-primary:      #00A862;
    --bmc-hover:        #008f52;
    --bmc-btn-text:     #ffffff;
    --bmc-header-color: #333333;
    --bmc-radius:       16px;
    --bmc-shadow:       0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
}

/* ── Shared wrapper ──────────────────────────────────────────────────────────── */
.bmc-widget {
    margin: 1.75rem 0;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    box-sizing: border-box;
}

.bmc-inner {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* sidebar widget can be narrower */
.bmc-widget--single .bmc-inner {
    max-width: 100%;
}

/* ── Shared texts ────────────────────────────────────────────────────────────── */
.bmc-header-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--bmc-header-color);
    margin: 0 0 10px;
    line-height: 1.5;
}
.bmc-footer-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--bmc-header-color);
    margin: 12px 0 0;
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════════════
   THREE-CARD LAYOUT  (bmc-widget – auto-inject, shortcode, block)
   ════════════════════════════════════════════════════════════════════════════ */

.bmc-label-bar {
    background-color: var(--bmc-primary);
    border-radius: var(--bmc-radius);
    box-shadow: var(--bmc-shadow);
    padding: 10px;
    text-align: center;
}
.bmc-label-bar span {
    font-size: 13px;
    font-weight: 600;
    color: var(--bmc-btn-text);
    line-height: 1.5;
}

.bmc-amounts {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.bmc-amount-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex: 1 1 0;
    min-width: 0;
    border-radius: var(--bmc-radius);
    box-shadow: var(--bmc-shadow);
    background-color: var(--bmc-primary);
    color: var(--bmc-btn-text);
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color .18s ease, transform .15s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}
.bmc-amount-btn:hover,
.bmc-amount-btn:focus-visible {
    background-color: var(--bmc-hover);
    color: var(--bmc-btn-text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 22px -4px rgba(0,0,0,.18);
    outline: none;
}
.bmc-amount-btn:active { transform: translateY(0) scale(.96); }
.bmc-amount-btn.bmc--clicked { animation: bmc-pulse .35s ease-out; }

.bmc-amount-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 18px;
    line-height: 1;
}
.bmc-amount-btn__icon svg {
    display: block;
    width: 26px;
    height: 26px;
    fill: var(--bmc-btn-text) !important;
}
.bmc-amount-btn__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--bmc-btn-text);
    margin-top: 8px;
    line-height: 1.5;
    white-space: nowrap;
}

@media (max-width: 360px) {
    .bmc-inner { padding: 0 4px; }
    .bmc-amount-btn { padding: 8px 4px; }
    .bmc-amount-btn__label { font-size: 12px; }
    .bmc-amount-btn__icon,
    .bmc-amount-btn__icon svg { width: 22px; height: 22px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   SINGLE BUTTON  (bmc-widget--single – klasyczny widget)
   ════════════════════════════════════════════════════════════════════════════ */

.bmc-btn-wrap {
    display: flex;
    justify-content: center;
}

.bmc-share-btn {
    display: inline-block;
    text-decoration: none;
    max-width: 100%;
    line-height: 0;
    border-radius: var(--bmc-radius);
    transition: transform .15s ease, box-shadow .18s ease, opacity .15s ease;
    -webkit-tap-highlight-color: transparent;
    outline-offset: 3px;
}
.bmc-share-btn svg {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: inherit;
}
.bmc-share-btn:hover,
.bmc-share-btn:focus-visible {
    transform: translateY(-2px);
    opacity: .92;
    box-shadow: 0 8px 24px -4px rgba(0,0,0,.22);
    outline: none;
}
.bmc-share-btn:active { transform: translateY(0) scale(.97); opacity: 1; }
.bmc-share-btn:focus-visible { outline: 2px solid var(--bmc-primary); }
.bmc-share-btn.bmc--clicked { animation: bmc-pulse .38s ease-out; }

/* ── Shared pulse animation ──────────────────────────────────────────────────── */
@keyframes bmc-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,168,98,.5); }
    100% { box-shadow: 0 0 0 16px rgba(0,168,98,0); }
}

@media (prefers-reduced-motion: reduce) {
    .bmc-amount-btn,
    .bmc-share-btn { transition: none; }
    .bmc-amount-btn.bmc--clicked,
    .bmc-share-btn.bmc--clicked { animation: none; }
}
