/* HMTG Orçamento Styles */

.hmtg-orcamento-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hmtg-orcamento-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.hmtg-orcamento-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color, #1e4a7a);
}

.hmtg-orcamento-empty p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Produtos Table */
.hmtg-orcamento-produtos {
    margin-bottom: 3rem;
}

.hmtg-orcamento-produtos h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color, #1e4a7a);
}

.hmtg-orcamento-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hmtg-orcamento-table thead {
    background: var(--primary-color, #1e4a7a);
    color: white;
}

.hmtg-orcamento-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.hmtg-orcamento-table tbody tr {
    border-bottom: 1px solid #eee;
}

.hmtg-orcamento-table tbody tr:hover {
    background: #f9f9f9;
}

.hmtg-orcamento-table td {
    padding: 1rem;
    vertical-align: middle;
}

.hmtg-orcamento-table .product-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hmtg-orcamento-table .product-thumbnail {
    flex-shrink: 0;
    width: 80px;
}

.hmtg-orcamento-table .product-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.hmtg-orcamento-table .product-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.hmtg-orcamento-table .product-details h4 a {
    color: var(--primary-color, #1e4a7a);
    text-decoration: none;
}

.hmtg-orcamento-table .product-details h4 a:hover {
    text-decoration: underline;
}

.hmtg-orcamento-table .product-remove .remove-item {
    color: #dc3545;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.hmtg-orcamento-table .product-remove .remove-item:hover {
    color: #c82333;
}

.hmtg-orcamento-table tfoot {
    background: #f9f9f9;
    font-size: 1.1rem;
}

.hmtg-orcamento-table tfoot td {
    padding: 1.5rem 1rem;
}

/* Form */
.hmtg-orcamento-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hmtg-orcamento-form h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color, #1e4a7a);
}

.hmtg-orcamento-form .form-row {
    display: flex;
    margin-bottom: 1rem;
}

.hmtg-orcamento-form .form-group {
    flex: 1;
    margin-bottom: 1rem;
    margin-right: 10px;
}

.meta-box-sortables input {
    vertical-align: middle;
    width: 100% !important;
}

.hmtg-orcamento-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color, #1e4a7a);
}

.hmtg-orcamento-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.hmtg-orcamento-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color, #1e4a7a);
}

.hmtg-orcamento-form textarea.form-control {
    resize: vertical;
}

.hmtg-orcamento-form .phone-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hmtg-orcamento-form .phone-prefix {
    background: var(--primary-color, #1e4a7a);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-weight: 600;
}

.hmtg-orcamento-form .btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.hmtg-orcamento-form .btn-primary {
    background: var(--primary-color, #1e4a7a);
    color: white;
}

.hmtg-orcamento-form .btn-primary:hover {
    background: var(--accent-color, #fab005);
    color: var(--text-dark, #333);
}

.hmtg-orcamento-form .btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Messages */
.form-messages {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-messages.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.form-messages.info i {
    margin-right: 8px;
}

/* Loading State */
.hmtg-orcamento-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.hmtg-orcamento-form.loading button {
    position: relative;
}

.hmtg-orcamento-form.loading button::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hmtg-orcamento-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .hmtg-orcamento-table {
        font-size: 0.9rem;
    }

    .hmtg-orcamento-table th,
    .hmtg-orcamento-table td {
        padding: 0.75rem 0.5rem;
    }

    .hmtg-orcamento-table .product-info {
        flex-direction: column;
        text-align: center;
    }
}

/* Meus Orçamentos Styles */
.hmtg-meus-orcamentos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hmtg-meus-orcamentos-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color, #1e4a7a);
}

.hmtg-meus-orcamentos-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.hmtg-meus-orcamentos-table thead {
    background: var(--primary-color, #1e4a7a);
    color: white;
}

.hmtg-meus-orcamentos-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.hmtg-meus-orcamentos-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.hmtg-meus-orcamentos-table tbody tr:hover {
    background-color: #f9f9f9;
}

.hmtg-meus-orcamentos-table td {
    padding: 1rem;
    vertical-align: middle;
}

.hmtg-meus-orcamentos-table .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.hmtg-meus-orcamentos-table .btn-primary {
    background: var(--primary-color, #1e4a7a);
    color: white;
    border: none;
}

.hmtg-meus-orcamentos-table .btn-primary:hover {
    background: var(--accent-color, #fab005);
    color: var(--text-dark, #333);
}

/* Modal Styles */
.hmtg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.hmtg-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hmtg-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hmtg-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.hmtg-modal-close:hover {
    color: #333;
}

.orcamento-details h3 {
    color: var(--primary-color, #1e4a7a);
    margin-bottom: 0.5rem;
}

.orcamento-details h4 {
    color: var(--primary-color, #1e4a7a);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.orcamento-details hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1.5rem 0;
}

.orcamento-details p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Responsive - Meus Orçamentos */
@media (max-width: 768px) {
    .hmtg-meus-orcamentos-table {
        font-size: 0.85rem;
    }

    .hmtg-meus-orcamentos-table th,
    .hmtg-meus-orcamentos-table td {
        padding: 0.75rem 0.5rem;
    }

    .hmtg-modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .orcamento-details h3 {
        font-size: 1.5rem;
    }

    .orcamento-details h4 {
        font-size: 1.1rem;
    }
}

li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--edit-address {
    display: none !important;
}