/* Estilos para o painel de checkout do cliente */
.client-checkout {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cabeçalho do cliente */
.client-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #eee);
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color, #ff6b6b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.client-info {
    flex: 1;
}

.client-name {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color, #333);
}

.client-email {
    font-size: 0.9rem;
    color: var(--muted-color, #666);
    margin: 0.25rem 0 0;
}

/* Endereço de entrega */
.delivery-address {
    background: var(--background-color, #f9f9f9);
    border-radius: 12px;
    padding: 1.25rem;
}

.delivery-address h3,
.payment-section h3,
.order-summary h3,
.observations-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-color, #333);
}

.delivery-address h3 i,
.payment-section h3 i,
.order-summary h3 i,
.observations-section h3 i {
    color: var(--primary-color, #ff6b6b);
}

.address-details {
    margin-bottom: 1rem;
}

.address-details p {
    margin: 0.25rem 0;
    color: var(--text-color, #333);
}

.edit-address-button {
    background: none;
    border: 1px solid var(--border-color, #eee);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color, #333);
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-address-button:hover {
    background: var(--border-color, #eee);
}

/* Forma de pagamento */
.payment-section {
    background: var(--background-color, #f9f9f9);
    border-radius: 12px;
    padding: 1.25rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.payment-method-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color, #eee);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-option i {
    font-size: 1.5rem;
    color: var(--muted-color, #666);
}

.payment-method-option span {
    font-size: 0.9rem;
    text-align: center;
}

.payment-method-option:hover {
    border-color: var(--primary-color, #ff6b6b);
}

.payment-method-option.selected {
    border-color: var(--primary-color, #ff6b6b);
    background: rgba(255, 107, 107, 0.05);
}

.payment-method-option.selected i {
    color: var(--primary-color, #ff6b6b);
}

/* Resumo do pedido */
.order-summary {
    background: var(--background-color, #f9f9f9);
    border-radius: 12px;
    padding: 1.25rem;
}

.summary-items {
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color, #eee);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-details {
    flex: 1;
    padding-right: 1rem;
}

.summary-item-name {
    font-weight: 500;
    color: var(--text-color, #333);
    margin-bottom: 0.25rem;
}

.summary-item-removed small {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.summary-item-additionals small {
    display: block;
    color: #4CAF50;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.summary-item-price {
    white-space: nowrap;
    font-weight: 500;
    align-self: flex-start;
    padding-top: 0.25rem;
}

.summary-totals {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color, #eee);
    padding-top: 1rem;
}

.summary-subtotal,
.summary-delivery-fee {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color, #333);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color, #eee);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Observações */
.observations-section {
    background: var(--background-color, #f9f9f9);
    border-radius: 12px;
    padding: 1.25rem;
}

.observations-input {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid var(--border-color, #eee);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.observations-input:focus {
    outline: none;
    border-color: var(--primary-color, #ff6b6b);
}

/* Botão de finalizar */
.finalize-button {
    background: var(--primary-color, #ff6b6b);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.finalize-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .client-checkout {
        padding: 0.5rem;
    }
    
    .delivery-address,
    .payment-section,
    .order-summary,
    .observations-section {
        padding: 1rem;
    }
    
    .payment-methods {
        grid-template-columns: 1fr 1fr;
    }
}

/* Estilos para o seletor de tipo de entrega */
.delivery-type-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.delivery-types {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.delivery-type-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.delivery-type-option::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.delivery-type-option.selected::after {
    width: 100%;
}

.delivery-type-option i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #636e72;
}

.delivery-type-option span {
    font-weight: 500;
}

.delivery-type-option:hover {
    background-color: #f1f2f3;
}

.delivery-type-option.selected {
    background-color: #fff0f0;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.delivery-type-option.selected i,
.delivery-type-option.selected span {
    color: var(--primary-color);
    font-weight: bold;
}

/* Estilo para ocultar a seção de endereço */
.delivery-address.hidden {
    display: none;
}

/* Ajustar a exibição do seletor de tipo de entrega */
.delivery-type-section.checkout-step-dependent {
    display: block;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.delivery-type-section.checkout-step-dependent[style*="display: none"] {
    margin: 0;
    height: 0;
    overflow: hidden;
} 