/*
 Theme Name:   Dr. PAUL Hair Clinic
 Theme URI:    https://drpaulhairclinic.com/
 Description:  Custom theme
 Author:       Dr. PAUL Hair Clinic
 Author URI:   https://drpaulhairclinic.com/
 Template:     generatepress
 Version:      0.1
*/

.dropdown-menu-toggle .gp-icon svg {
	top: 0.2em;
}

.main-navigation li.current-menu-parent > a {
	text-decoration: none !important;
}

.entry-content p a,
.entry-content li a {
	text-decoration: underline;
}

.entry-content footer p a,
.entry-content footer li a {
	text-decoration: none;
}

ul.wp-block-list li {
	margin-bottom: 8px;
}

.wp-block-table thead {
	border-bottom: 1px solid;
}

html {
	scroll-padding-top: 120px;	
}

/* Carousel */

.paul-carousel-control {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
}

.paul-carousel-control-prev {
	z-index: 9;
    left: 10px;
}

.paul-carousel-control-next {
	z-index: 9;
    right: 10px;
}

/* Breadcrumb */

.entry-content .rank-math-breadcrumb a {
	text-decoration: none;
	color: #42617F;
	font-weight: 600;
}

/* Floating Contact Button */

.paul-floating-contact {
	position: fixed;
	right: 32px;
	bottom: 32px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	pointer-events: none;
}

.paul-floating-contact.active {
	pointer-events: auto;
}

.paul-floating-contact__toggle {
	width: 60px;
	height: 60px;
	border: none;
	border-radius: 50%;
	background: #42617F;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
	display: grid;
	place-items: center;
	position: relative;
	transition: background 0.3s ease, transform 0.3s ease;
	pointer-events: auto;
}

.paul-floating-contact__toggle:hover {
	background: #42617F;
	transform: translateY(-2px);
}

.paul-floating-contact__toggle:focus {
	background: #42617F;
}

.paul-floating-contact__toggle .paul-icon {
	position: absolute;
	font-size: 30px;
	line-height: 1;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.paul-floating-contact__toggle .paul-icon--close {
	opacity: 0;
	transform: rotate(-90deg) scale(0.7);
	margin-bottom: 15%;
}

.paul-floating-contact.active .paul-floating-contact__toggle .paul-icon--open {
	opacity: 0;
	transform: rotate(90deg) scale(0.7);
}

.paul-icon--open svg {
	width: 28px;
	height: 28px;
	margin-top: 5px;
}

.paul-floating-contact.active .paul-floating-contact__toggle .paul-icon--close {
	opacity: 1;
	transform: rotate(0) scale(1);
}

.paul-floating-contact__item {
	display: flex;
	align-items: center;
	min-height: 52px;
	color: #111;
	text-decoration: none;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px) scale(0.95);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.paul-floating-contact.active .paul-floating-contact__item {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.paul-floating-contact__item-icon {
	display: inline-grid;
	place-items: center;
	margin-left: 8px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	font-size: 16px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

.paul-floating-contact__item-icon-line {
	background-color: #06C755;
}

.paul-floating-contact__item-icon-line svg {
	width: 32px;
	height: 32px;
}

.paul-floating-contact__item-icon-branches {
	background-color: #262626;
	color: #fff;
}

.paul-floating-contact__item-icon-branches svg {
	width: 28px;
	height: 28px;
}

.paul-floating-contact__item-text {
	background-color: #ffffff;
	color: #262626;
	padding: 8px 16px;
	border-radius: 16px;
	font-size: 16px;
	font-weight: 600;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

/* Rank Math */

.wp-block-rank-math-toc-block nav li {
	margin-bottom: 3px;
}

/* Envira Gallery */

.envirabox-theme-base_dark .envirabox-toolbar>div {
	margin-right: 9px;
}

/* WPForms */

.wp-singular .wpforms-form button {
	background-color: #42617f !important;
}

/* Language Switcher */

.mls-dropdown-wrap .mls-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
	min-width: 120px;
	text-indent: 26px;
    padding: 6px 28px 6px 10px;
    border: 1px solid #ccc;
    border-radius: 16px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
	background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px top 12px, right 12px top 12px;
    background-size: 18px 12px, 12px;
}

.mls-hidden {
	display: none;
}

.mls-dropdown-wrap.mls-lang-en .mls-dropdown {
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 10'%3E%3Crect width='19' height='10' fill='%23fff'/%3E%3Cg fill='%23B22234'%3E%3Crect y='0' width='19' height='0.77'/%3E%3Crect y='1.54' width='19' height='0.77'/%3E%3Crect y='3.08' width='19' height='0.77'/%3E%3Crect y='4.62' width='19' height='0.77'/%3E%3Crect y='6.15' width='19' height='0.77'/%3E%3Crect y='7.69' width='19' height='0.77'/%3E%3Crect y='9.23' width='19' height='0.77'/%3E%3C/g%3E%3Crect width='7.6' height='5.38' fill='%233C3B6E'/%3E%3Cdefs%3E%3Csymbol id='star' viewBox='-1 -1 2 2'%3E%3Cpolygon points='0,-1 0.224,-0.309 0.951,-0.309 0.363,0.118 0.588,0.809 0,0.382 -0.588,0.809 -0.363,0.118 -0.951,-0.309 -0.224,-0.309' fill='%23fff'/%3E%3C/symbol%3E%3C/defs%3E%3Cuse href='%23star' x='0.51' y='0.42' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='2.03' y='0.42' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='3.55' y='0.42' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='5.07' y='0.42' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='6.59' y='0.42' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='0.51' y='1.77' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='2.03' y='1.77' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='3.55' y='1.77' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='5.07' y='1.77' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='6.59' y='1.77' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='0.51' y='3.12' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='2.03' y='3.12' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='3.55' y='3.12' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='5.07' y='3.12' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='6.59' y='3.12' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='0.51' y='4.47' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='2.03' y='4.47' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='3.55' y='4.47' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='5.07' y='4.47' width='0.5' height='0.5'/%3E%3Cuse href='%23star' x='6.59' y='4.47' width='0.5' height='0.5'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
}
 
.mls-dropdown-wrap.mls-lang-th .mls-dropdown {
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Crect width='9' height='6' fill='%23fff'/%3E%3Crect width='9' height='1' y='0' fill='%23A51931'/%3E%3Crect width='9' height='2' y='2' fill='%23241D4F'/%3E%3Crect width='9' height='1' y='5' fill='%23A51931'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
}

/* Custom CSS */

.paul-mb-0 {
	margin-bottom: 0;
}

.paul-underline mark {
	box-shadow: inset 0 -0.28em 0 0 var(--base-3);
}

.entry-content .paul-svg-1-5em .gb-shape svg {
	width: 1.5em;
	height: 1.5em;
}

.entry-content .paul-svg-2em .gb-shape svg {
	width: 2em;
	height: 2em;
}

.paul-envira-gallery .envira-gallery-wrap .envira-gallery-public {
	display: grid;
	column-gap: 20px;
	row-gap: 20px;
	grid-template-columns: 1fr 1fr 1fr 1fr;
}

.paul-envira-gallery.paul-envira-gallery-3col .envira-gallery-wrap .envira-gallery-public {
	grid-template-columns: 1fr 1fr 1fr;
}

.paul-envira-gallery .envira-gallery-wrap .envira-gallery-public .envira-gallery-item {
	width: auto !important;
}

.paul-envira-gallery .envira-gallery-wrap .envira-gallery-public .envira-gallery-item img {
	border-radius: 16px;
	overflow: hidden;
}

.paul-envira-gallery .envira-gallery-wrap .envira-pagination a.page-numbers {
	margin: 0 2px;
}

@media (min-width: 1025px) {
	
	.main-navigation .main-nav ul li[class*="current-menu-"] > a {
		text-decoration: underline;
		text-underline-offset: 5px;
	}
	
}

@media (max-width: 1080px) {
	
	.main-navigation .menu-toggle {
		padding-left: 0;
		padding-right: 0;
	}
	
}

@media (min-width: 768px) {

	.paul-toc-2-column.wp-block-rank-math-toc-block nav {
    	columns: 2;
    	-webkit-columns: 2;
    	-moz-columns: 2;
    	column-gap: 20px;
		margin-bottom: 1.6em;
	}
	
}

@media (max-width: 767px) {
	
	.inside-header {
		padding-top: 16px;
		padding-bottom: 16px;
	}
	
	.menu-toggle .gp-icon svg {
		height: 1.8em;
		width: 1.8em;
		top: .5em;
	}
	
	/* Custom CSS */
	
	.paul-envira-gallery .envira-gallery-wrap .envira-gallery-public {
		grid-template-columns: 1fr 1fr;
	}
	
	.paul-envira-gallery.paul-envira-gallery-3col .envira-gallery-wrap .envira-gallery-public {
		grid-template-columns: 1fr 1fr;
	}
	
	/* Floating Contact Button */
	
	.paul-floating-contact {
		right: 24px;
		bottom: 24px;
	}

}