/*
Theme Name: Crazy Web Studio (Divi Child)
Template: Divi
Text Domain: Divi-child
Author: Crazy Web Studio
Author URI: https://www.crazywebstudio.co.th
*/

/* Remove bullet points from entry content globally */
.entry-content ul {
    list-style-type: none !important;
    padding: .5rem 0 !important;
}


.dipi_gravity_forms_styler_0 .gform_wrapper .ginput_container_time.gfield_time_ampm select, .dipi_gravity_forms_styler_0 .gform_wrapper .gfield .ginput_container input:not(.gfield-choice-input){
	width: 100% !important;
}
.gform-theme.gform-theme--framework.gform_wrapper .button {
	width: 100% !important;
}
.gform_confirmation_message {
    color: #fff;
    font-size: 16px;
}
.dipi_gravity_forms_styler .gform_wrapper .ginput_container_address .ginput_address_country:not(.et_pb_custom_button_icon):after, .dipi_gravity_forms_styler .ginput_container_select:not(.et_pb_custom_button_icon):after {
    filter: invert(1);
}
body .dipi_gravity_forms_styler .gform_wrapper .gfield_required {
	color: #edbe7d !important;
}

/* go to top button*/
.et_pb_scroll_top.et-pb-icon{
	background: #EABC7C  !important;
	margin-right: 10px;
	border-radius: 5px;

}

.et_pb_scroll_top.et-pb-icon{
	color: #141414 !important;
}

.logo-size-scrolled{
	max-height: 40px !important;
    min-height: 40px !important;
	transition: max-height 0.3s ease-in-out;
}

#cws-main-navigation-desktop{
	transition: height 0.3s ease;
}
#cws-main-navigation-desktop.scrolled{
	min-height: auto;
}
#cws-main-navigation-desktop .book-btn-size-scrolled{
	padding: 2px 20px !important;
}


/* Mobile Menu */
.no-scroll {
    overflow: hidden;
}

#cws-main-navigation-mobile .et_pb_column {
    /* margin-bottom: 0 !important; */
}

.cws-mobile-menu-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #232323;
    z-index: 99999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cws-mobile-menu-wrapper.active {
    opacity: 1;
    transform: translateY(0);
}

.cws-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 50px;
    cursor: pointer;
    color: #fef6e4;
    z-index: 100000000;
}

.cws-mobile-menu-content {
    z-index: 99999999;
    position: absolute;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}


/* WPML Mobile Language Switcher */
.cws-wpml-mobile-switcher-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#cws-wpml-mobile-switcher .cws-wpml-mobile-switcher__button {
  background: transparent;
  padding: 0;
  margin: 0;
  border: 1px solid #232323;
  line-height: 0;
}

#cws-wpml-mobile-switcher .cws-wpml-mobile-switcher__button img {
  min-width: 24px;
  height: auto;
  vertical-align: middle;
}

#cws-wpml-mobile-switcher .cws-wpml-mobile-switcher__dropdown {
  position: absolute;
  top: 100%;
  right: 0px;
  background-color: #232323;
  border: 1px solid #fef6e4;
  border-radius: 5px;
  padding: 5px 10px 0;
  list-style: none;
  width: 110px;
}

#cws-wpml-mobile-switcher .cws-wpml-mobile-switcher__dropdown li {
  margin: 0 0 10px;
  font-size: 16px;
}

#cws-wpml-mobile-switcher .cws-wpml-mobile-switcher__dropdown img {
  margin-right: 5px;
  vertical-align: middle;
}

#cws-wpml-mobile-switcher .cws-wpml-mobile-switcher__dropdown a {
  text-decoration: none;
  color: #fef6e4;
  display: flex;
}

#cws-wpml-mobile-switcher .cws-wpml-mobile-switcher:hover .cws-wpml-mobile-switcher__dropdown {
  display: block;
}
.cws-privacy-policy-element label {
	color: #fff !important;
}

@media screen and (min-width: 981px) {
	body .et-menu li:not(.mega-menu) ul, 
	body #top-menu li:not(.mega-menu) ul {
		width: 300px !important;
	}	
}

/* Mobile Menu */
#cws-mobile-menu ul,
#cws-mobile-menu ul .sub-menu {
  display: flex;
  flex-direction: column;
  gap: .50rem;
}

#cws-mobile-menu li.menu-item a {
  font-family: 'Alegreya', Helvetica, Arial, Lucida, sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: .2rem;
  align-items: center;
  justify-content: center;
}

#cws-mobile-menu li.cta-mobile {
	margin-top: 1rem;
}

#cws-mobile-menu li.cta-mobile a {
	background-color: #fff6e4 !important;
	color: #141414 !important;
    padding: .25rem .75rem !important;
}




/* Submenu remains hidden by default */
#cws-mobile-menu ul .sub-menu {
  padding-bottom: 0;
  /*margin-left: 1.5rem; */
  padding-top: .50rem;
  display: none;

}

#cws-mobile-menu li.menu-item-has-children>a:after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 12px;
  background-image: url('https://pizzagrillphuket.com/wp-content/uploads/2025/02/arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 15px;
  margin-top: 2px;
  transition: transform 0.3s ease;
}

#cws-mobile-menu li.menu-item-has-children.open > a:after {
  transform: rotate(180deg);
}

#cws-mobile-menu .dropdown-toggle {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.cws-mobile-menu-wrapper.active{
	overflow: scroll;
}

#menu-mobile-1 > li.cws-submenu-01.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-has-children.menu-item-73835 > ul > li.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-73779 {
	font-size: 20px !important;
}

/* Blog Post Content */
.et_pb_post_content h1,
.et_pb_post_content h2,
.et_pb_post_content h3,
.et_pb_post_content h4 {
	margin-bottom: .75rem;
	line-height: 1.2em;
}

.et_pb_post_content p:not(.has-background):last-of-type {
	padding-bottom: 1em;
}

.pac_dih__caption {
	margin-top: .5rem;
	margin-bottom: .75rem;
}

.et_pb_post_content .et_pb_text ol, 
.et_pb_post_content .et_pb_text ul {
    padding-top: 1em;
	padding-bottom: 1em;
}

/* Blog Sidebar */
.single .post {
    padding-bottom: 0;
    margin-bottom: 20px;
}

.et_pb_post .entry-featured-image-url {
	margin-bottom: 10px;
}

/* Promotion Carousel */
.wpgb-grid-1 .wpgb-prev-button, 
.wpgb-grid-1 .wpgb-next-button {
    color: #fff !important
}

.wpgb-grid-1 .wpgb-page-dots .wpgb-dot[aria-selected=true]:after {
    background: #fff !important
}

/* allergen icons z-index */
.preferences-icon{
	z-index: 50 !important;
}