/* Fix anchor alignment for Bitcoin button */
.payment-banner a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    height: 100%;
}

/* Ensure Bitcoin icon inside anchor matches other icons */
.payment-banner a .payment-icon[alt="Bitcoin"] {
    object-fit: contain;
    width: 110px;
    height: 65px;
    margin: 0;
    background: #181818;
    box-shadow: 0 2px 8px rgba(252, 182, 4, 0.18);
    vertical-align: middle;
}
/* Payment Banner */
.payment-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px auto;
    padding: 20px;
    background-color: #111;
    border-radius: 12px;
    border: 1px solid rgba(252, 182, 4, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    max-width: 1200px; /* Prevent excessive stretching on wide screens */
}

.payment-icon {
    width: 110px;
    height: 65px;
    object-fit: fill;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(252, 182, 4, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px;
    transform: translateZ(0);
    will-change: transform;
}

/* Targeted fix for Bitcoin icon only */
.payment-icon[alt="Bitcoin"] {
    object-fit: contain;
    margin-top: 2px;
    margin-bottom: 2px;
    background: #181818;
    box-shadow: 0 2px 8px rgba(252, 182, 4, 0.18);
}

/* Specific fix for Bitcoin icon vertical alignment */
.payment-icon[alt="Bitcoin"] {
    margin-top: 2px;
    margin-bottom: 2px;
    background: #181818;
    box-shadow: 0 2px 8px rgba(252, 182, 4, 0.18);
}

.payment-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(252, 182, 4, 0.4); /* Golden glow matching iframe */
    border-color: rgb(252, 182, 4);
}

/* Modal Styling */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Darker background for focus */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.qr-modal-content {
    background: linear-gradient(145deg, #141414, #0a0a0a); /* Matching iframe gradient */
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgb(252, 182, 4); /* Matching golden border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(252, 182, 4, 0.25);
    text-align: center;
    width: 320px;
    max-width: 90%;
    color: #f8f8f8; /* Slightly softer white matching iframe text */
    transition: all 0.3s ease;
}

.qr-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(30, 30, 30, 0.5);
    opacity: 0.85;
    border: 1px solid rgba(252, 182, 4, 0.2);
}

.qr-modal-close:hover {
    background-color: rgba(252, 182, 4, 0.3);
    border-color: rgba(252, 182, 4, 0.6);
    transform: scale(1.05);
    opacity: 1;
    color: #fff;
    box-shadow: 0 0 10px rgba(252, 182, 4, 0.3);
}

.qr-title {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: #f8f8f8;
    text-shadow: 0 0 12px rgba(252, 182, 4, 0.5);
    padding-bottom: 12px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}

.qr-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgb(252, 182, 4), transparent);
    box-shadow: 0 0 8px rgba(252, 182, 4, 0.4);
}

.qr-image {
    width: 200px;
    height: 200px;
    margin-bottom: 10px;
    object-fit: fill;
    border: 1px solid #fff; /* White border for the QR image */
    border-radius: 10px;
}

.qr-address {
    font-size: 14px;
    color: #ddd; /* Light gray text for better readability */
    word-wrap: break-word;
    cursor: pointer;
    border: 1px dashed transparent;
    padding: 2px;
    transition: border-color 0.3s ease;
}

.qr-address:hover {
    border-color: #00bcd4; /* Cyan hover effect */
}

/* Helper class for actionable elements (replaces inline cursor styles) */
.actionable {
    cursor: pointer;
}

.actionable:focus {
    outline: 2px dashed rgba(252, 182, 4, 0.8);
    outline-offset: 3px;
}

/* Mobile responsive design for payment banner */
@media (max-width: 768px) {
    .payment-banner {
        gap: 15px;
        padding: 15px;
        margin: 15px auto;
        border-radius: 15px;
        width: calc(100% - 30px); /* Make it slightly narrower than full width */
    }
    
    .payment-icon {
        width: 90px;
        height: 55px;
        border-radius: 8px;
        object-fit: fill;
    }
    /* Mobile fix for Bitcoin button inside anchor */
    .payment-banner a .payment-icon[alt="Bitcoin"] {
        object-fit: contain;
        width: 90px;
        height: 55px;
        margin: 0;
        background: #181818;
        box-shadow: 0 2px 8px rgba(252, 182, 4, 0.18);
        vertical-align: middle;
    }
    
    /* Improve modal styling for mobile */
    .qr-modal-content {
        padding: 15px;
        width: 280px;
    }
    
    .qr-image {
        width: 180px;
        height: 180px;
    }
    
    .qr-modal-close {
        width: 36px; /* Larger touch target */
        height: 36px; /* Larger touch target */
        line-height: 36px;
        font-size: 22px;
        top: 15px;
        right: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0,0,0,0.5);
        border-radius: 50%;
    }
}
