/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Estilos para os campos personalizados do Dokan */
.dokan-form-group {
    margin-bottom: 20px;
    position: relative;
}

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

.dokan-form-group input,
.dokan-form-group select {
    width: 100%;
    height: auto;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.dokan-form-group input:focus,
.dokan-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.dokan-form-group.focused label {
    color: #0073aa;
}

.dokan-form-group.has-value label {
    color: #28a745;
}

/* Estilos específicos para campos monetários */
.money-mask {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2c5aa0;
}

.money-mask::placeholder {
    color: #999;
    font-weight: normal;
}

/* Estilos para campos numéricos */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Estilos para o campo select */
.dokan-form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Estilos para exibição dos campos na página do produto */
.woocommerce .details {
    display: block;
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.woocommerce .details strong {
    color: #2c5aa0;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    .dokan-form-group input,
    .dokan-form-group select {
        padding: 10px 12px;
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .dokan-form-group label {
        font-size: 16px;
    }
}

/* Estados de erro e sucesso */
.dokan-form-group.error input,
.dokan-form-group.error select {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.dokan-form-group.success input,
.dokan-form-group.success select {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Animações */
.dokan-form-group input,
.dokan-form-group select {
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dokan-form-group input:focus,
.dokan-form-group select:focus {
    transform: translateY(-2px);
}

/* Estilos para campos obrigatórios */
.dokan-form-group.required label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Melhorias para acessibilidade */
.dokan-form-group input:focus-visible,
.dokan-form-group select:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Estilos para tooltips ou mensagens de ajuda */
.dokan-form-group .help-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

/* Estilos específicos para campos de estado e cidade */
.dokan-form-group select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.dokan-form-group select:disabled + label {
    color: #6c757d;
}

/* Indicador de carregamento */
.dokan-form-group.loading select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath stroke='%230073aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Estados de dependência */
.dokan-form-group.dependent {
    opacity: 0.7;
}

.dokan-form-group.dependent select:not(:disabled) {
    opacity: 1;
}

/* Melhorias para campos de localização */
.dokan-form-group.location-field {
    position: relative;
}

.dokan-form-group.location-field::after {
    content: "📍";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #0073aa;
    pointer-events: none;
}

.dokan-form-group.location-field select {
    padding-right: 45px;
}


/* -------------------------------------------- CSS PÁGINAS ----------------------------------------------- */
/* Minha conta */
li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads, li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--payment-methods, .u-column2.col-2.woocommerce-Address {
    display: none !important;
}

.u-column1.col-1.woocommerce-Address {
    width: 100% !important;
}

/* Painel Fornecedor Dokan */
button.dokan-btn.dokan-btn-default.dokan-btn-theme {
	display: block !important;
}

.dokan-dashboard-menu .settings.has-submenu, .dokan-dashboard-menu .dashboard, div#dokan-analytics-app, .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a.tips:first-child, table tr td:nth-child(4), table tr th:nth-child(4), table tr td:nth-child(5), table tr th:nth-child(5), td:nth-child(6), table tr th:nth-child(6), td:nth-child(8), table tr th:nth-child(8), td:nth-child(9), table tr th:nth-child(9), .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active:after, .dokan-w12, ul.dokan-listing-filter.dokan-left.subsubsub, span.item-inline-edit.editline, div#dokan-bulk-action-submit, div#dokan-bulk-action-selector, .dokan-product-edit-form .dokan-product-meta .dokan-form-group.has-value:nth-child(2), .dokan-product-edit-form .dokan-product-meta .dokan-form-group.has-value:nth-child(7), .dokan-product-edit-form .dokan-product-meta .dokan-form-group.has-value:nth-child(8), .content-half-part.sale-price, .dokan-product-short-description, .dokan-product-inventory.dokan-edit-row, .dokan-product-inventory.dokan-edit-row, .dokan-product-shipping-tax.dokan-edit-row, .dokan-linked-product-options.dokan-edit-row, .dokan-attribute-variation-options.dokan-edit-row, .dokan-other-options.dokan-edit-row, .dokan-edit-row.dokan-catalog-mode, .dokan-product-seo.dokan-edit-row, .dokan-spmv-add-new-product-search-box-area.dokan-w13, .dokan-new-product-area .dokan-form-group:nth-child(3), .dokan-new-product-area .dokan-form-group:nth-child(6), button.dokan-btn.dokan-btn-default, span.vendor-earning.simple-product {
	display: none !important;
}

td:nth-child(3),
table tr th:nth-child(3) {
	width: 30% !important;
}

td:nth-child(7),
table tr th:nth-child(7) {
	width: 15% !important
}

td:nth-child(10),
table tr th:nth-child(10) {
	width: 12%;
}

td:nth-child(2),
table tr th:nth-child(2) {
	width: 10%;
}

th, td {
    text-align: center !important;
    vertical-align: middle !important;
}

article.dokan-product-listing-area {
    font-family: 'Montserrat' !important;
}

.dokan-dash-sidebar {
    border-radius: 15px;
    padding: 15px;
}

input.dokan-form-control {
    font-size: 15px;
    padding: 4.5px 10px;
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active, .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover {
	border-radius: 8px
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li {
	margin: 10px 0
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a {
	padding: 15px 20px;
	width: 55px;
	border-radius: 8px;
}

.dokan-dashboard .dokan-dashboard-content .edit-account fieldset {
	border-radius: 15px !important;
	margin-bottom: 20px;
}

.product-edit-new-container .dokan-form-top-area .dokan-product-meta, .content-half-part.regular-price {
    width: 100% !important;
}

.product-edit-new-container label.form-label, .dokan-form-group label {
    color: #0c3250;
    font-size: 14px;
    font-family: 'Montserrat';
	font-weight: 700;
}

.content-half-part.featured-image {
    padding: 25px;
}

div#edit-slug-box {
    font-family: 'Montserrat';
}

.dokan-new-product-area .dokan-product-meta {
    width: 60%;
}

.dokan-new-product-area .featured-image {
	width: 38%;
}

/* Formulário de registro */
.form-row.form-group.user-role.vendor-customer-registration .radio:first-child {
    display: none;
}

/* Grid de produtos */

.grid-produto span.elementor-icon-list-text {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.grid-produto span.elementor-icon-list-text a {
    width: auto !important;
	  pointer-events: none;
}

/* Single produto */
.ug-slide-wrapper .ug-item-wrapper {
    background: #ffffff !important;
}
.ug-slide-wrapper .ug-item-wrapper img {
    border-radius: 15px !important;
}

/* Checkout */
dl.variation {
    display: none !important;
}

/* Formulário de cadastro */
.woocommerce #customer_login {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
}

.woocommerce #customer_login .u-column1.col-1 {
    width: 30% !important;
}

.woocommerce #customer_login .u-column2.col-2 {
    width: 65% !important;
}

.woocommerce #customer_login h2 {
    margin-bottom: 0px;
    height: 55px;
    padding: 0px 10px;
}

.woocommerce #customer_login .u-column2.col-2 h2 {
    font-size: 0px;
}

.woocommerce #customer_login .u-column2.col-2 h2::before {
    content: 'Crie sua conta, escolha o seu plano e anuncie seu negócio para potenciais compradores.';
    font-size: var(--e-global-typography-secondary-font-size);
    line-height: var(--e-global-typography-secondary-line-height);
    font-weight: var(--e-global-typography-secondary-font-weight);
    font-family: var(--e-global-typography-secondary-font-family), sans-serif;
}

form.woocommerce-form.woocommerce-form-login.login, form.woocommerce-form.woocommerce-form-register.register {
    margin-top: 0px;
}

.dps-pack {
    text-align: left;
    padding: 20px;
}

.dps-pack-price {
    display: flex !important;
	margin-bottom: 10px !important;
}

/* Painel do assinante - Assinatura */

a.hover\:cursor-pointer.rounded.my-2.mx-4.text-sm.font-medium.text-purple-600.dokan-btn.m-0.w-full.py-2.px-4.dokan-btn.dokan-btn-secondary {
    display: none;
}

p.order-again {
    display: none !important;
}

.flex.items-center.justify-between.border.border-gray-200.rounded-md.p-3\.5.mt-5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2em;
    border: 1px solid #0000003b;
    border-radius: 15px;
}

.painel-assinatura {
    font-size: var(--e-global-typography-secondary-font-size) !important;
    font-weight: var(--e-global-typography-secondary-font-weight) !important;
    font-family: var(--e-global-typography-primary-font-family) !important;
    color: var(--e-global-color-primary) !important;
}

a.botao-assinautra {
    border-radius: 8px !important;
	padding: 10px 20px !important;
	background-color: #0C3250 !important;
	color: #fff !important;
}

/* -------- VERSÂO MOBILE -------- */
@media (max-width: 500px){
	/* Painel fornecedor dokan */
	.dokan-new-product-area .dokan-product-meta, .dokan-new-product-area .featured-image, .content-half-part.featured-image {
   		width: 100% !important;
	}
	
	ul.dokan-dashboard-menu {
    	display: flex !important;
    	justify-content: space-between!important;
    	align-content: center!important;
	}
	
	/* Formulário de login */
	.woocommerce #customer_login {
		display: flex;
		flex-direction: column-reverse;
		gap: 40px;
	}
	
	.woocommerce #customer_login .u-column1.col-1 {
		width: 100% !important;
	}

	.woocommerce #customer_login .u-column2.col-2 {
		width: 100% !important;
	}
	
	.woocommerce #customer_login .u-column2.col-2 h2 {
        height: 75px !important;
    }
}