/*
Theme Name: Urna Child
Theme URI: https://urnawp.com/
Author: Thembay
Description: This is a child theme for Urna
Version: 1.3
Author URI: https://thembay.com/
Template: urna
Text Domain: urna-child
*/

/*  [ Add your custom css below ]
- - - - - - - - - - - - - - - - - - - - */

/* Botones del header (ubicacion de menu "Botones del header") */

/* --- Estilo de los botones (escritorio) --- */
.noya-header-buttons__list {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.noya-header-buttons__list > li {
	float: none;
	margin: 0;
	padding: 0;
}
.noya-header-buttons__list > li > a {
	display: block;
	padding: 8px 10px;
	border: 1px solid #000;
	background: transparent;
	color: #000;
	font-size: 12px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background .2s, color .2s;
}
/* El segundo boton va relleno; el primero, solo con borde */
.noya-header-buttons__list > li:last-child > a,
.noya-header-buttons__list > li > a:hover {
	background: #000;
	color: #fff;
}

/* --- Escritorio: a la izquierda de la lupa --- */
#tbay-header .noya-header-buttons {
	display: inline-block;
	vertical-align: middle;
	margin-right: 6px;
}

@media (min-width: 1200px) {
	/* Menu y bloque derecho se reparten el espacio; el logo queda centrado */
	#tbay-header .header-main .tbay-mainmenu,
	#tbay-header .header-main .header-right {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}
	#tbay-header .header-main .header-logo {
		flex: 0 0 auto;
		width: auto;
		padding-left: 0;
		padding-right: 0;
	}
	#tbay-header .header-main .header-right {
		padding-left: 0;
	}
}

/* En portatiles el espacio es justo: se angosta el selector de idioma */
@media (min-width: 1200px) and (max-width: 1499px) {
	#tbay-header .header-right .gt_selector {
		width: 110px;
	}
}

/* --- Movil / tablet: dos botones lado a lado al final del menu lateral --- */
#tbay-mobile-menu-navbar .noya-mobile-menu-buttons {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	padding: 16px 15px;
}
#tbay-mobile-menu-navbar .noya-mobile-menu-buttons::after {
	display: none; /* sin la linea divisoria de los demas items */
}
#tbay-mobile-menu-navbar .noya-mobile-menu-buttons > a {
	flex: 1 1 0;
	min-width: 0;
	padding: 10px 8px;
	border: 1px solid #000;
	background: transparent;
	color: #000;
	font-size: 12px;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#tbay-mobile-menu-navbar .noya-mobile-menu-buttons > a:last-child {
	background: #000;
	color: #fff;
}

/* --- Submenu desplegable de un boton (escritorio) --- */
#tbay-header .noya-header-buttons__list > li {
	position: relative;
}
#tbay-header .noya-header-buttons__list > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: 6px;
	vertical-align: middle;
	border: 4px solid transparent;
	border-top-color: currentColor;
	border-bottom-width: 0;
}
#tbay-header .noya-header-buttons__list > li:hover > a {
	background: #000;
	color: #fff;
}
#tbay-header .noya-header-buttons__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1002;
	min-width: 220px;
	max-width: 280px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #000;
	text-align: left;
}
#tbay-header .noya-header-buttons__list > li:hover > .sub-menu,
#tbay-header .noya-header-buttons__list > li:focus-within > .sub-menu {
	display: block;
}
#tbay-header .noya-header-buttons__list .sub-menu > li {
	float: none;
	margin: 0;
	padding: 0;
}
#tbay-header .noya-header-buttons__list .sub-menu > li > a {
	display: block;
	padding: 8px 14px;
	color: #000;
	font-size: 12px;
	line-height: 1.4;
	text-decoration: none;
	text-transform: uppercase;
	white-space: normal;
}
#tbay-header .noya-header-buttons__list .sub-menu > li > a:hover {
	background: #f2f2f2;
}

/* --- Submenus del menu principal (izquierda): mismo estilo que los botones --- */
#tbay-header #primary-menu .dropdown-menu {
	min-width: 220px;
	max-width: 280px;
	padding: 6px 0;
	background: #fff;
	border: 1px solid #000;
	box-shadow: none;
}
#tbay-header #primary-menu .dropdown-menu > li {
	margin: 0;
	padding: 0;
}
#tbay-header #primary-menu .dropdown-menu > li > a {
	display: block;
	padding: 8px 14px;
	color: #000;
	font-size: 12px;
	line-height: 1.4;
	text-transform: uppercase;
	white-space: normal;
}
#tbay-header #primary-menu .dropdown-menu > li > a:hover,
#tbay-header #primary-menu .dropdown-menu > li:hover > a {
	background: #f2f2f2;
	color: #000;
}
/* Flecha en los items que abren un segundo nivel */
#tbay-header #primary-menu .dropdown-menu > li.menu-item-has-children > a::after {
	content: "";
	float: right;
	margin-top: 4px;
	border: 4px solid transparent;
	border-left-color: currentColor;
	border-right-width: 0;
}
/* Segundo nivel: se abre pegado a la derecha */
#tbay-header #primary-menu .dropdown-menu .dropdown-menu {
	top: -7px;
	left: 100%;
}
