/* Frontend Styles - Centered + Balanced Buttons */
.cfmp-player-wrapper {
    margin: 25px auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.digital-store-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 10px;
}

/* Embed */
.digital-store-embed {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 100%;
}

/* 🔥 CENTERED GRID - 2 columns, auto width */
.digital-store-grid {
    display: grid;
    grid-template-columns: repeat(2, auto); /* 2 columns, auto width */
    gap: 12px;
    justify-content: center; /* Center the grid horizontally */
    margin: 0 auto;
}

/* 🔥 BUTTON - consistent sizing */
.store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 18px 7px 14px; /* Slightly more padding on right for that stretched look */
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 12px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    width: auto; /* Auto width based on content */
    box-sizing: border-box;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.store-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.store-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.store-text small {
    font-size: 8px;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.store-text strong {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.1px;
}

/* Desktop */
@media (min-width: 769px) {
    .digital-store-grid {
        gap: 14px;
    }

    .store-btn {
        padding: 8px 50px 8px 16px; /* More right padding for desktop */
        gap: 8px;
    }

    .store-icon {
        width: 18px;
        height: 18px;
    }

    .store-text small {
        font-size: 8.5px;
    }

    .store-text strong {
        font-size: 11.5px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .digital-store-grid {
        gap: 10px;
    }

    .store-btn {
        padding: 6px 16px 6px 12px; /* More right padding for mobile */
        gap: 5px;
    }

    .store-icon {
        width: 15px;
        height: 15px;
    }

    .store-text small {
        font-size: 7.5px;
    }

    .store-text strong {
        font-size: 10.5px;
    }
}

/* Handle odd number of buttons - last button centered */
.store-btn:last-child:nth-child(odd) {
    grid-column: span 2; /* Make last button span both columns */
    justify-self: center; /* Center it */
    max-width: fit-content; /* Keep it at content width */
}