/* Estilos para a nova página Minha Conta */

/* Layout principal com Flexbox */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Barra lateral de navegação */
.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 250px;
    border: none;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0;
    border-bottom: 1px solid #e9e9e9;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #555;
    background-color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #f0f0f0;
    color: #111;
    font-weight: bold;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #f5f5f5;
}

/* Layout para as linhas do formulário de Cadastro */
.meuplugin-form .form-row-cadastro {
    margin-bottom: 1rem;
}

.meuplugin-form .form-row-cadastro label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* --- Estilos para o ícone de mostrar/ocultar senha --- */
.meuplugin-form .password-wrapper {
    position: relative;
}

.meuplugin-form .password-wrapper input {
    padding-right: 40px !important; /* Força o espaço para o ícone */
}

.meuplugin-form .toggle-password {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #757575;
}

.meuplugin-form .toggle-password:hover {
    color: #000;
}

/* Área de conteúdo principal */
.woocommerce-account .woocommerce-MyAccount-content {
    flex-grow: 1;
}

/* Estilos dos Cards de Recarga */
.recarga-card {
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    gap: 15px;
}

.card-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.card-summary {
    flex-grow: 1;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #888;
}

.status-badge.status-processing {
    background-color: #8a2be2; /* Roxo */
}
.status-badge.status-completed {
    background-color: #28a745; /* Verde */
}
.status-badge.status-on-hold {
    background-color: #fd7e14; /* Laranja */
}
.status-badge.status-cancelled {
    background-color: #dc3545; /* Vermelho */
}
.status-badge.status-refunded {
    background-color: #6c757d; /* Cinza */
}

.order-number {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 5px 0 0;
}

.order-date {
    font-size: 13px;
    color: #777;
    margin: 0;
}

.card-toggle .arrow-down {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #555;
    transition: transform 0.3s ease-in-out;
}

.recarga-card.is-open .card-toggle .arrow-down {
    transform: rotate(180deg);
}

.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    background-color: #fafafa;
    padding: 0 15px;
}

.recarga-card.is-open .card-body {
    max-height: 500px; /* Altura suficiente para o conteúdo */
    padding: 15px;
    border-top: 1px solid #e9e9e9;
}

.product-details .product-name {
    font-weight: bold;
    margin: 0 0 10px 0;
}

.recarga-code {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
    font-family: monospace;
}

.recarga-code span {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>');
    background-size: contain;
    opacity: 0.7;
}

