.cas-button {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #000;
}

.cas-button:hover {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    transform: translateY(-1px);
}

.cas-form-fields input,
.cas-form-fields select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #000;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cas-form-fields input:focus,
.cas-form-fields select:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.cas-form-fields label {
    display: block;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.cas-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #fff;
    border: 2px solid #000;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cas-form h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #000;
    text-align: center;
    font-weight: bold;
}

.cas-form label {
    display: block;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.cas-form input,
.cas-form select,
.cas-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #000;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cas-form input:focus,
.cas-form select:focus,
.cas-form textarea:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.cas-form button {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #000;
}

.cas-form button:hover {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    transform: translateY(-1px);
}

.cas-form .success {
    background: #000;
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.cas-form .error {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* Modal Styles */
.cas-modal {
    display: none !important;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cas-modal.cas-modal-show {
    display: block !important;
}

.cas-modal-content {
    position: relative;
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cas-modal-header {
    padding: 1.5rem 2rem;
    background: #000;
    color: #fff;
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cas-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

.cas-close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cas-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cas-modal-body {
    padding: 2.5rem;
}

.cas-modal .cas-form {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.cas-modal .cas-form h2 {
    display: none;
}

/* Botões de ação - Estilo Breadcrumb/Popover */
.cas-account-actions {
    display: flex;
    gap: 8px;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cas-btn {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    min-width: auto;
    text-align: center;
}

.cas-btn:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cas-btn:before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #000, #333);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cas-btn:hover:before {
    opacity: 1;
}

/* Estilo para formulários WooCommerce */
.woocommerce-address-fields {
    background: transparent;
    background-color: transparent !important;
    padding: 0;
}

.woocommerce-address-fields .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-address-fields label {
    display: block;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.woocommerce-address-fields input,
.woocommerce-address-fields select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #000;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
}

.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.woocommerce-address-fields button {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #000;
}

.woocommerce-address-fields button:hover {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    transform: translateY(-1px);
}

/* Espaçamento adicional para campos de endereço */
.cas-modal .woocommerce-address-fields .form-row,
.cas-form .woocommerce-address-fields .form-row {
    margin-bottom: 1.5rem;
}

.cas-modal .woocommerce-address-fields .form-row:last-child,
.cas-form .woocommerce-address-fields .form-row:last-child {
    margin-bottom: 2rem;
}

/* Fix para select2 do WooCommerce */
.select2-container--default .select2-selection--single {
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 16px;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #000;
}

.cas-orders-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.cas-orders {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 600px;
}

.cas-orders th,
.cas-orders td {
    padding: 12px 15px;
    text-align: left;
}

.cas-orders thead {
    background-color: #fff;
    color: #000;
    border-bottom: 2px solid #000;
}

.cas-orders tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background 0.3s;
}

.cas-orders tbody tr:last-child {
    border-bottom: none;
}

.cas-orders tbody tr:hover {
    background-color: #f2f2f2;
}

.cas-orders tbody td a.cas-btn {
    color: #000;
    text-decoration: none;
    border: 1px solid #000;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s;
}

.cas-orders tbody td a.cas-btn:hover {
    background-color: #000;
    color: #fff;
}

.cas-pagination {
    margin-top: 15px;
    text-align: center;
}

.cas-pagination a.cas-page {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #000;
    border-radius: 6px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s;
}

.cas-pagination a.cas-page.active,
.cas-pagination a.cas-page:hover {
    background-color: #000;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .cas-modal-content {
        width: 95%;
        margin: 1% auto;
        max-height: 98vh;
        border-radius: 16px;
    }

    .cas-modal-header {
        padding: 1rem 1.5rem;
        border-radius: 14px 14px 0 0;
    }

    .cas-modal-body {
        padding: 1.5rem;
    }

    .cas-account-actions {
        flex-direction: column;
        align-items: center;
    }

    .cas-btn {
        width: 100%;
        max-width: 280px;
    }

    .cas-form {
        padding: 1.5rem;
        margin: 1rem;
    }

    .cas-orders th,
    .cas-orders td {
        padding: 10px 8px;
        font-size: 14px;
    }

    .cas-orders {
        min-width: unset;
    }

    .cas-logout {
        width: 100%;
        display: flex;
        justify-content: center;
    }

}