/* Estilos do Sistema de Checkout */

.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-clear-cart-small {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: all 0.3s;
    opacity: 0.7;
}

.btn-clear-cart-small:hover {
    opacity: 1;
    transform: scale(1.1);
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: var(--color-primary, #FF6B35);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-checkout i {
    font-size: 18px;
}

/* Modal de Checkout */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.checkout-modal.show {
    opacity: 1;
    visibility: visible;
}

.checkout-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.checkout-modal.show .checkout-modal-content {
    transform: scale(1);
}

.checkout-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.checkout-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.checkout-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.checkout-close:hover {
    color: #333;
}

.checkout-body {
    padding: 20px;
}

.order-type-selection {
    margin-bottom: 30px;
}

.order-type-selection h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.order-type-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.order-type-btn {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.order-type-btn:hover {
    border-color: var(--color-primary, #FF6B35);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.order-type-btn.active {
    border-color: var(--color-primary, #FF6B35);
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb, 255, 107, 53), 0.1) 0%, rgba(var(--color-primary-rgb, 255, 107, 53), 0.05) 100%);
}

.order-type-btn i {
    font-size: 32px;
    color: var(--color-primary, #FF6B35);
}

.order-type-btn span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.order-form {
    margin-top: 25px;
}

.order-form h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary, #FF6B35);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delivery-fee {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb, 255, 107, 53), 0.1) 0%, rgba(var(--color-primary-rgb, 255, 107, 53), 0.05) 100%);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
}

.delivery-fee i {
    font-size: 20px;
    color: var(--color-primary, #FF6B35);
}

.checkout-footer {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    position: sticky;
    bottom: 0;
    background: white;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.checkout-total strong {
    color: var(--color-primary, #FF6B35);
    font-size: 24px;
}

.btn-confirm-order {
    width: 100%;
    padding: 15px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-confirm-order:hover {
    background: #20c157;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-confirm-order i {
    font-size: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .checkout-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .order-type-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Modo Escuro */
html.dark-mode .checkout-modal-content {
    background: #2d2d2d;
}

html.dark-mode .checkout-header {
    background: #2d2d2d;
    border-bottom-color: #404040;
}

html.dark-mode .checkout-header h2,
html.dark-mode .order-type-selection h3,
html.dark-mode .order-form h3 {
    color: #e0e0e0;
}

html.dark-mode .order-type-btn {
    background: #1a1a1a;
    border-color: #404040;
}

html.dark-mode .order-type-btn span {
    color: #e0e0e0;
}

html.dark-mode .form-group label {
    color: #999;
}

html.dark-mode .form-group input,
html.dark-mode .form-group select {
    background: #1a1a1a;
    border-color: #404040;
    color: #e0e0e0;
}

html.dark-mode .checkout-footer {
    background: #2d2d2d;
    border-top-color: #404040;
}
