/* Variáveis CSS para customização */
:root {
    --border-width: 3px;
    --color1: #ffd700; /* Dourado */
    --color2: #ffaa00; /* Laranja */
}

/* Container do select */
.tipo-pagamento-container {
    position: relative;
}

#tipo_pagamento {
    position: relative;
    z-index: 2;
    width: 100%;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#tipo_pagamento::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 12px;
    pointer-events: none;
}

/* Animação de celebração quando a opção destacada está selecionada */
.tipo-pagamento-container.has-highlight #tipo_pagamento {
    animation: celebrate-border 1.5s ease-in-out infinite;
    border-color: transparent;
}

/* Animação de borda pulsante */
@keyframes celebrate-border {
    0% {
        border-color: var(--color1);
        box-shadow: 0 0 5px var(--color1), 0 0 15px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    50% {
        border-color: var(--color2);
        box-shadow: 0 0 10px var(--color2), 0 0 20px rgba(255, 170, 0, 0.7);
        transform: scale(1.05);
    }
    100% {
        border-color: var(--color1);
        box-shadow: 0 0 5px var(--color1), 0 0 15px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
}

/* Estilo para opções no dropdown */
#tipo_pagamento option {
    background: #fff;
    color: #333;
    padding: 10px;
}

/* Opção destacada no dropdown */
#tipo_pagamento option[data-highlight="true"] {
    background: linear-gradient(90deg, var(--color1), var(--color2)) !important;
    color: #333 !important;
    font-weight: 600;
    font-style: italic;
    border-left: 4px solid #ff4500; /* Detalhe vibrante */
}
