/* Karta Zakupowa - Efekt głębi i nowoczesny wygląd */
.amazon-buy-card {
    background: linear-gradient(145deg, #ffffff 0%, #fcfbf9 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px; /* Bardziej zaokrąglone, nowoczesne rogi */
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

/* Subtelna pomarańczowa linia akcentowa na górze (nawiązanie do uśmiechu Amazona) */
.amazon-buy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF9900 0%, #ffb347 100%);
}

/* Nagłówek w stylu Amazona */
.amazon-buy-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
    color: #232F3E; /* Ciemny granat Amazona */
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.amazon-icon {
    color: #FF9900; /* Pomarańczowy */
}

.amazon-subtitle {
    font-size: 0.85rem;
    color: #6B7280;
    margin-bottom: 1.25rem;
    padding-left: 2.1rem; /* Wyrównanie do tekstu nad ikoną */
}

/* Siatka flag - idealnie układa 4 flagi w rzędzie na desktopie */
.amazon-flags-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

/* Pojedyncza flaga */
.flag-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efekt HOVER - podniesienie i pomarańczowa poświata */
.flag-link:hover {
    border-color: #FF9900;
    background: #fffdf8;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 153, 0, 0.15);
}

.flag-link img {
    width: 36px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 0.5rem;
}

.flag-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4B5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flag-link:hover .flag-label {
    color: #FF9900;
}

/* Responsywność (Mobile) - 3 lub 2 flagi w rzędzie na telefonach */
@media (max-width: 768px) {
    .amazon-flags-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .amazon-subtitle {
        padding-left: 0;
    }
}
@media (max-width: 400px) {
    .amazon-flags-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.edition-notice {
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.edition-notice span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Płynne przewijanie do widgetu po kliknięciu */
html {
  scroll-behavior: smooth;
}

/* Przyklejony przycisk na dole ekranu (tylko mobile) */
.mobile-sticky-buy {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #FF9900 0%, #ffb347 100%); /* Kolory Amazona */
    color: #232F3E; /* Ciemny granat Amazona */
    text-align: center;
    padding: 16px 20px;
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15); /* Cień nad przyciskiem */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.mobile-sticky-buy:active {
    background: #e68a00;
    transform: scale(0.98);
}

.arrow-up {
    font-size: 1.3rem;
    animation: bounceUp 1.5s infinite;
}

@keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 65px !important;
    }
}

.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.transition-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12) !important;
}

.transition-hover a.text-decoration-none:hover {
    text-decoration: none !important;
}