.flex {
    display: flex;
}

.w-1\/2 {
    width: 50%;
}

.song-generation-container {
    margin: 30px 0;
    gap: 5rem;
}

.song-generation-container h2 {
    font-size: 30px;
    margin: 0 0 1rem 0 !important;
}

#song-generation-status {
    width: 100%;
}

.loading-animation {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    margin: 0;
}

.music-note {
    font-size: 30px;
    margin: 0 10px;
    animation: bounce 1.5s infinite alternate;
}

.music-note:nth-child(2) {
    animation-delay: 0.3s;
}

.music-note:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

.animate-dots span {
    opacity: 0;
    animation: blink 1.5s infinite;
}

.animate-dots span:nth-child(1) {
    animation-delay: 0s;
}

.animate-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.animate-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

#status-message-container {
    margin-top: 2rem;
}

#status-message-container p {
    font-size: 22px;
}

.song-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.song-option {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #FAFAFA;;
}

.song-option:hover {
    border-color: #6b46c1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.song-option.selected {
    border-color: #6b46c1;
    border-width: 2px;
    box-shadow: 0 4px 10px rgba(107, 70, 193, 0.2);
    background-color: rgba(107, 70, 193, 0.05);
}

.song-option-inner {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.song-icon {
    width: 48px;
    height: 48px;
    margin-right: 15px;
}

.song-details {
    display: flex;
    flex-direction: column;
}

.song-version {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.song-title {
    font-size: 14px;
    color: #666;
}

.song-player-container {
    width: 100%;
    margin: 10px 0;
}

.song-player-container audio {
    width: 100%;
}

audio::-webkit-media-controls-panel {
    background-color: #fafafa;
}

.finish-button-container {
    margin-top: 30px;
    text-align: center;
}

.finish-send-btn {
    width: 100%;
}

.finish-send-btn:hover {
    /* background-color: #059669; */
}

.finish-send-btn:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

/* Loading Animation */
.loading-animation {
    display: inline-block;
    margin-left: 10px;
}

.music-note {
    display: inline-block;
    animation: bounce 1s infinite alternate;
    margin: 0 2px;
}

.music-note:nth-child(2) {
    animation-delay: 0.2s;
}

.music-note:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

.animate-dots span {
    animation: blink 1.4s infinite;
    animation-fill-mode: both;
    margin-left: 2px;
}

.animate-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0.2;
    }
}

/* Hide order details until selection is made */
.woocommerce-order-received .woocommerce-order,
.woocommerce-order-received .entry-header {
    display: none;
}

@media (max-width: 768px) {
    .song-option {
        width: 100%;
    }
}

.song-generation-ui {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.song-generation-ui h2 {
    margin-top: 0;
    color: #333;
}

.song-generation-ui .song-generation-status {
    margin-bottom: 15px;
}

.song-generation-ui .songs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.song-generation-ui .song-option {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.song-generation-ui .song-option h3 {
    margin-top: 0;
    color: #333;
}

.song-generation-ui .song-option audio {
    width: 100%;
    margin: 10px 0;
}

.song-generation-ui .song-option .song-lyrics {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.5;
    white-space: pre-wrap;
}

.song-generation-ui .song-option .select-song-btn {
    background-color: #7f54b3;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.song-generation-ui .song-option .select-song-btn:hover {
    background-color: #673ab7;
}

.animate-dots span {
    opacity: 0;
    animation: fade 1.5s infinite;
    animation-fill-mode: forwards;
}

.animate-dots span:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-dots span:nth-child(2) {
    animation-delay: 0.6s;
}

.animate-dots span:nth-child(3) {
    animation-delay: 1s;
}

@keyframes fade {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* PDF Card Display Styles */
.woocommerce-order-pdf {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f7ff;
    border-radius: 5px;
    border: 1px solid #c9dff3;
    text-align: center;
}

.woocommerce-order-pdf h2 {
    color: #2a5885;
    margin-top: 0;
    font-size: 1.5em;
}

.woocommerce-order-pdf p {
    color: #4a4a4a;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.woocommerce-order-pdf .button {
    display: inline-block;
    background-color: #2a5885;
    color: white !important;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.woocommerce-order-pdf .button:hover {
    background-color: #1e3f66;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
    .song-generation-ui .songs-container {
        flex-direction: column;
    }
    
    .song-generation-ui .song-option {
        min-width: auto;
    }
}

/* Hide audio controls download button more aggressively */
audio::-webkit-media-controls-download-button {
    display: none !important;
}