/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

@media(min-width: 480px){
	body .wd-sidebar-opener.wd-show-on-scroll.wd-shown{
		display: none;
	}
}



body.archive .wd-col-offcanvas-md-sm.wd-col-offcanvas-sm{
  border-color:#E59E6D;
}
body .wd-breadcrumbs>:is(span,a):last-child{
  /*color: rgb(63, 55, 44);*/
}

body .wd-product .product-wrapper{
	padding: 0;
	border-radius: 10px;
}
body .wd-product .wd-entities-title {
    padding: 15px 15px;
}

body .bloque-descarga{
  width: 15%;
  float: left;
  margin-right: 5%;
  text-align: center;
  min-height: 160px;
  line-height: 20px;
}
@media (max-width:480px){
  body .bloque-descarga{
    width: 45%;
    margin-right: 5%;
  }
}

body .yith-wcan-filters .yith-wcan-filter .filter-item.has-children > label::after{
  font-size: 20px;
  color:#fff;
  line-height: 20px;
  float: right;
  padding: 5px 0;
}
body .yith-wcan-filters label{
  border-bottom: 1px solid #fafafa;
}

body .yith-wcan-filters .yith-wcan-filter .filter-item > label > input[type=radio],
body .yith-wcan-filters .yith-wcan-filter .filter-item > label > input[type=checkbox] {
  display: none !important;
}

body .yith-wcan-filters .yith-wcan-filter .toggle-handle {
  display: none !important;
}

body .yith-wcan-filters .yith-wcan-filter .filter-item.has-children > label::after {
  content: '▸';
  margin-left: 6px;
  font-weight: bold;
}
body .yith-wcan-filters .yith-wcan-filter .filter-item.has-children.open > label::after {
  content: '▾';
}



/*esto es temporal es para no mostrar el producto asociado a todas las categorías*/

body .wd-product.post-561{
  display: none;
}
body #text-3{

  padding-top: 20px;
  margin-bottom: 0;
}
body #yith-woocommerce-ajax-navigation-filters-3{
  background: rgba(81, 68, 49, 1);
}
body .widget-area #text-3 p,body .widget-area #text-2 p,body .elementor-widget-container #text-2 p{
  text-align: center;
}
body .widget-area #text-3 img{
  max-width: 50%;
}
body .widget-area #text-2 img,body .elementor-widget-container #text-2 img{
  max-width: 75%;
}
body .widget-area #text-2{
  margin-top: 25px;
}

/*fin cambio temporal*/


body .wd-sidebar{
    padding: 20px;
    border-right: solid 5px #FFB556;
}
body .wd-content-area.site-content.wd-grid-col{
  padding: 20px 0;
}


body .yith-wcan-filters .yith-wcan-filter .filter-items .filter-item.active > label > a{
  color: rgb(255, 181, 86) !important;
}
body .file-download:hover{
  cursor: pointer;
}
body.logged-in .whb-header-bottom{
  display: block;
}
body .whb-header-bottom{
  display: none;
}
body .yith-wcan-filters{
  padding: 25px;
  background: rgb(81 68 49);
  padding-bottom: 0;
}
body .shop-loop-head{
  display: none;
}
body .wd-product .price{
  display: none;
}
/*Formulario de registro prescriptores*/

#form-registro-prescriptor {
  max-width: 750px;
  margin: 0 auto;
  padding: 45px;
  border-radius: 15px;
  color: rgba(81, 68, 49, 1); /* Texto corporativo */
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  border: 1px solid rgba(81, 68, 49, 1);
}

#form-registro-prescriptor p {
  margin-bottom: 20px;
}

#form-registro-prescriptor label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

#form-registro-prescriptor input[type="text"],
#form-registro-prescriptor input[type="email"],
#form-registro-prescriptor input[type="password"],
#form-registro-prescriptor select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 17px;
}

#form-registro-prescriptor input[type="submit"] {
  background-color: rgba(81, 68, 49, 1);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#form-registro-prescriptor input[type="submit"]:hover {
  background-color: rgba(60, 50, 35, 1);
}

/*#empresa-extra {
  background-color: rgba(255, 255, 255, 0.3);
  padding: 15px;
  border-left: 4px solid rgba(81, 68, 49, 1);
  margin-top: 10px;
  border-radius: 8px;
}*/
.fila-doble {
  display: flex;
  gap: 20px;
}
.fila-doble p {
  flex: 1;
  margin-bottom: 0;
}





body .bloque-acciones-calc{
  margin-top: 10px;
}

body .del-calc,body .ren-calc,body .download-calc{
    padding: 10px 10px;
    border: 1px solid;
    text-transform: capitalize;
    margin-bottom: 10px;
    margin-right: 5px;
}
body .pmpro_card_content a.pmpro_btn {
    display: none !important;
}
body.pmpro-login .pmpro_btn:hover,body.pmpro-login .pmpro_btn:focus{
  color: #e59e6d;
  border: 1px solid #e59e6d;
}

body .wc-form-facturacion{
	max-width: 100%;
}
body .wd-cart-action-row{
	display: none;
}
body .cart-totals-inner table tr:last-child :is(th,td) {
    border-bottom: 1px solid #ccc;
}
body.single-product .product-image-summary-wrap{
	background: #fff;
	padding: 40px;
	border-radius: 10px;
}
body.pmpro-login .pmpro_card {
	justify-content: center;
    width: 50%;
    display: inline-flex;
}
body #pmpro_login{
	text-align:center;
}
body .wd-page-content{
  min-height: 70vh;
}
body .wd-my-account-links[class*="wd-grid"]{
    --wd-col-lg: 2;
    --wd-col-md: 2;
    --wd-col-sm: 1;
    --wd-gap-lg: 20px;
    margin-top: 30px;  
}
body .woocommerce-MyAccount-content{
  padding: 30px;
  background: #fff;
  border-radius: 10px;
}
body .shop_table tr :is(td,th):first-child,body .shop_table tr :is(td,th):last-child{
  padding-inline-start: 10px;
  padding-inline-end: 10px;
}
body .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions{
  display: table-cell;
  text-align: center;
}
h3{
  font-size: 21px;
}
body.page-id-23 table th{
  vertical-align: top;
  min-width: 130px;
    font-size: 13px;
}
body.page-id-23 table td{
  font-size: 12px;
}


body #pmpro_account-membership{
  display: none;
}
body .woocommerce-order-details .wc-item-meta{
  display: none;
}
body .woocommerce-table--order-details :is(th,td){
  border: 0;
}

.ocultarcalcpresu,.ocultarcalccostes{
  display: none;
}
.button-vertodas{
    padding: 10px 20px;
    border: 1px solid;
}

/*
body .wc-block-components-totals-item,body .wp-block-woocommerce-checkout-order-summary-totals-block{
    display: none;
}
body .wc-block-checkout__sidebar .wc-block-components-totals-footer-item{
    display: none;
}*/

/*body .product-rating-price,
body .woocommerce-Price-amount amount,body .wd-product .price,
body .summary-inner>.price{
	display: none;
}*/
body .but-descargar{
    background: rgb(229, 158, 109);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 16px 0;
    display: inline-block;
}
body .product-tabs-wrapper{
	display: none;
}

body .widget-area #nav_menu-2,
body .widget-area #nav_menu-6,
body .widget-area #menu-menu-lateral-no-miembros,
body .widget-area #menu-menu-lateral,
body .widget.widget_nav_menu #menu-menu-lateral
{
	padding: 20px 20px 30px 20px;
    background-color: #FFFFFF;
    border-radius: 10px 10px 10px 10px;
}
body .widget-area #nav_menu-2 li a,
body .widget-area #nav_menu-6 li a,
body .widget-area #menu-menu-lateral-no-miembros li a,
body .widget-area #menu-menu-lateral li a,
body .widget.widget_nav_menu #menu-menu-lateral li a
{
    border-bottom: 1px solid #ddd;
    padding: 8px 8px;
    width: 100%;
    color: #3F372C;
    font-size: 16px;
    font-weight: bold;
}
body .widget-area #nav_menu-2 li:last-child a,
body .widget-area #menu-menu-lateral-no-miembros li:last-child a,
body .widget-area #menu-menu-lateral li:last-child a,
body .widget.widget_nav_menu #menu-menu-lateral li:last-child a
{
  border-bottom: 0;
}

body .wd-prefooter{
	display: none;
}
body .wc-block-components-sidebar-layout .wc-block-components-main{
	background: #fff;
    padding: 40px;
    border-radius: 10px;
}
body div.is-large .wp-block-woocommerce-checkout-order-summary-block{
	background: #fff;
    border-radius: 10px;
    padding: 15px;
}


/*calculadora presupuestos*/

:root {
  --color-princ:    #2c3e50;
  --color-sec:      #ecf0f1;
  --color-acento:   #3498db;
  --radio-size:     1rem;
  --border-radius:  0.4rem;
  --gap-base:       1rem;
}

* { box-sizing: border-box; margin:0; padding:0; }

.mi-formulario {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  font-family: Arial, sans-serif;
  border-radius: var(--border-radius);
}

.mi-formulario h3 {
  font-size: 15px;
}

fieldset {
  border: 1px solid #ccc;
  padding: var(--gap-base);
  margin-bottom: var(--gap-base);
  border-radius: var(--border-radius);
}

legend {
  font-weight: bold;
  color: rgba(81, 68, 49, 1);
  padding: 0 0.5rem;
}

.form-group { margin-bottom: var(--gap-base); }

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-princ);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #bbb;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.radios label {
  display: inline-flex;
  align-items: center;
  margin-right: var(--gap-base);
}

.radios input[type="radio"] {
  width: var(--radio-size);
  height: var(--radio-size);
  margin-right: 0.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-base);
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tabla-responsive {
  overflow-x: auto;
  margin-bottom: var(--gap-base);
}

table {
  width: 100%;
  border-collapse: collapse;
  /*min-width: 600px;*/
}

th, td {
  border: 1px solid #ccc;
  padding: 0.6rem;
  text-align: left;
}

/*th {
  background: var(--color-acento);
  color: #fff;
  font-weight: normal;
}*/

@media (max-width: 599px) {
  td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: bold;
  }
  td, th { display: block; }
  tr { display: block; margin-bottom: 1rem; }
}

.btn-submit {
  display: inline-block;
  background: rgb(229,158,109);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: rgba(81, 68, 49, 1);
  color:#fff;
}


/*fin calculadora presupuestos*/


/* CONTENEDOR GENERAL */
form.custom-register-form,
form[action=""] {
  /*max-width: 800px;*/
  margin: 0 auto;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", Roboto, sans-serif;
  /*display: flex;
  flex-wrap: wrap;*/
  gap: 20px;
}

/* CADA CAMPO EN UNA COLUMNA DE 48% */
form.custom-register-form p,
form[action=""] p {
  flex: 1 1 48%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* CAMPOS QUE DEBEN OCUPAR 100% */
form.custom-register-form p.full,
form[action=""] p.full {
  flex: 1 1 100%;
}

form.custom-register-form label,
form[action=""] label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

form.custom-register-form input[type="text"],
form.custom-register-form input[type="email"],
form.custom-register-form input[type="password"],
form.custom-register-form input[type="tel"],
form.custom-register-form select,
form[action=""] input,
form[action=""] select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s;
}

form.custom-register-form input:focus,
form[action=""] input:focus,
form[action=""] select:focus {
  border-color: #0073aa;
  outline: none;
}

form.custom-register-form button,
form[action=""] button {
  background: rgba(229, 158, 109, 1);
  color: white;
  border: none;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  flex: 1 1 100%;
}

form.custom-register-form button:hover,
form[action=""] button:hover {
  background: #514431;
  color: #fff;
}

/* MENSAJES DE ERROR */
form.custom-register-form p[style*="color:red"],
form[action=""] p[style*="color:red"] {
  background: #ffe9e9;
  border-left: 4px solid #e60000;
  padding: 10px 15px;
  border-radius: 6px;
  color: #990000;
  font-weight: 500;
  flex: 1 1 100%;
}
p.registro-exitoso {
  background-color: #e6ffea;
  border-left: 4px solid #28a745;
  padding: 15px 20px;
  margin-top: 20px;
  border-radius: 6px;
  color: #1e7e34;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
/* RESPONSIVE: UNA SOLA COLUMNA EN MÓVIL */
@media screen and (max-width: 768px) {
  form.custom-register-form,
  form[action=""] {
    flex-direction: column;
  }

  form.custom-register-form p,
  form[action=""] p {
    flex: 1 1 100%;
  }
}

@media (max-width: 768.98px) {
    body .shop_table_responsive td:not(:last-child) {
        padding-bottom: 10px;
        padding-top: 15px;
        border-bottom: 1px dashed var(--brdcolor-gray-300);
        padding-left: 15px;
        padding-right: 15px;
    }
    body .shop_table tr :is(td,th):first-child, body .shop_table tr :is(td,th):last-child {
        padding-inline-start: 10px;
        padding-inline-end: 10px;
        text-align: right;
        padding-top: 15px;
        
    }
    body .woocommerce-table--order-details :is(th,td){
      max-width: 100%;
      width: 100%;
      text-align: left;
    }
    body.woocommerce-view-order .shop_table tr :is(td,th):first-child, body .shop_table tr :is(td,th):last-child{
      text-align: left;
    }
    body.pmpro-login .pmpro_card {
        justify-content: center;
        width: 100%;
        display: inline-flex;
    }
    body .lr-leads-wrapper .button{
      margin-left: 0 !important;
      width: 100% !important;
    }
    body .lr-leads-wrapper input[type='text']{
      width: 100% !important;
      margin-bottom: 15px !important;

    }
    body .boton-limpiar{
        margin-left: 0!important;
    }
    body .boton-buscar{
        margin-bottom: 15px !important;
    }

}