/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

 .hidden {
  display: none !important;
 }

 .add--menu-box {
  padding: 10px 16px !important;
 }

 .add--menu-box .gspb-buttonbox-icon svg {
  width: 20px !important;
  height: 20px !important;
 } 

 .add--menu-box:hover .gspb-buttonbox-icon svg {
  fill: #212529;
 }

 /* Hide Login */
 .login-remember + a.twa--line-login {
  display: none !important;
 }

/* Account Modal */
.ct-account-modal .login,
.ct-account-modal .woocommerce-form-register {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

/* Hide compare */
.ct-compare-button-archive {
	display: none;
}

/* Style wishlist */
.ct-wishlist-button-single {
  background: transparent;
  display: flex;
  gap: 10px;
}	

 /* Component */
.box--container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 40px 25px;
  background: #f1f7f5;
  border-radius: 8px;
}

@media (min-width: 640px) {
  .box--container {
    padding: 40px;
  }
}

 /* Single product page */
.single-product .ct-product-additional-actions {
  margin-bottom: 1em !important;
}

.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  background-color: #F1F7F5;
  padding: 20px;
  border-radius: 10px;
}

.ingredients-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
  width: 100%;
}

.ingredients-list input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #037B5E;
  border-radius: 9999px;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ingredients-list input[type="checkbox"]:checked {
  border: 3px solid #07c498;
  background-color: #037B5E;
}

.ingredients-list .unit,
.ingredients-list .amount {
  font-family: Noto Sans Thai,sans-serif;
  font-size: 14px;
  white-space: nowrap;
  
}


.ingredients-list label {
  margin: 0;
  flex: 1;
  width: 60%;
}

.ingredients-list .amount {
  margin-right: 4px;
  font-weight: 500;
  width: 15%;
  text-align: right;
}

.ingredients-list .unit {
  color: #666;
  /* width: 15%; */
  text-align: right;
}

.spacer {
  height: 2em;
}

.additional-info,
.instruction-steps {
  list-style: none;
  padding: 0;
  width: 100%;
  background-color: #F1F7F5;
  padding: 20px;
  border-radius: 10px;
}

.instruction-steps h6 {
  margin-bottom: 5px;
}

.instruction-steps p {
  font-size: 14px;
}

.instruction-step {
  margin: 0 0 1em 0;
}

.gspb-buttonbox-textwrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gspb-buttonbox-icon {
  margin-right: 10px;
}

.summary #add-menu {
  padding: 15px 16px 15px 16px;
}

#add-menu:hover svg {
  fill: #212529;
}

.ct-drawer-inner #add-menu {
  padding: 1px 16px 1px 16px;
}

@media (max-width: 689.98px) {
  .ct-floating-bar-actions :is(.product_type_variable.button,.single_add_to_cart_button:not(.loading)):after {
      content: "" !important;
      background-image: url("data:image/svg+xml,%3Csvg width='29' height='28' viewBox='0 0 29 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5757 26.1361C11.2368 26.1361 11.7727 25.6002 11.7727 24.9392C11.7727 24.2781 11.2368 23.7422 10.5757 23.7422C9.91462 23.7422 9.37872 24.2781 9.37872 24.9392C9.37872 25.6002 9.91462 26.1361 10.5757 26.1361Z' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M23.7424 26.1361C24.4035 26.1361 24.9394 25.6002 24.9394 24.9392C24.9394 24.2781 24.4035 23.7422 23.7424 23.7422C23.0814 23.7422 22.5455 24.2781 22.5455 24.9392C22.5455 25.6002 23.0814 26.1361 23.7424 26.1361Z' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M1 1H5.78788L8.99576 17.0274C9.10521 17.5785 9.40501 18.0735 9.84267 18.4259C10.2803 18.7782 10.828 18.9653 11.3897 18.9546H23.0242C23.586 18.9653 24.1336 18.7782 24.5713 18.4259C25.0089 18.0735 25.3087 17.5785 25.4182 17.0274L27.3333 6.98485H6.98485' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
      width: 15px;
      height: 15px;
      background-size: cover;
  }
}

.ct-floating-bar-actions :is(.product_type_variable.button,.single_add_to_cart_button:not(.loading)):hover:after {
  background-image: url("data:image/svg+xml,%3Csvg width='29' height='28' viewBox='0 0 29 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5757 26.1361C11.2368 26.1361 11.7727 25.6002 11.7727 24.9392C11.7727 24.2781 11.2368 23.7422 10.5757 23.7422C9.91462 23.7422 9.37872 24.2781 9.37872 24.9392C9.37872 25.6002 9.91462 26.1361 10.5757 26.1361Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M23.7424 26.1361C24.4035 26.1361 24.9394 25.6002 24.9394 24.9392C24.9394 24.2781 24.4035 23.7422 23.7424 23.7422C23.0814 23.7422 22.5455 24.2781 22.5455 24.9392C22.5455 25.6002 23.0814 26.1361 23.7424 26.1361Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M1 1H5.78788L8.99576 17.0274C9.10521 17.5785 9.40501 18.0735 9.84267 18.4259C10.2803 18.7782 10.828 18.9653 11.3897 18.9546H23.0242C23.586 18.9653 24.1336 18.7782 24.5713 18.4259C25.0089 18.0735 25.3087 17.5785 25.4182 17.0274L27.3333 6.98485H6.98485' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* Archive Menu */
.ct-product-content-block {
  width: calc(100%);
  padding-top: 10px;
  /* margin-inline: -20px; */
}

.food--menu {
  padding: 5px 10px !important;
}

.food--menu svg {
  width: 20px !important;
  height: 20px !important;
}

.food--menu:hover svg {
  fill: #212529;
}

.ct-product-content-block a {
  width: 100%;
}

/* Popup menu */
.ct-quick-view-content #add-menu {
  margin-bottom: 10px !important;
}

/* Select Menu */
.calorie-target {
  text-align: center;
  position: relative;
}

.calorie-target-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: #f1f1f1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff;
  /* box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); */
}

.calorie-target-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.calorie-target-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 40px;
  border-radius: 50%;
  width: 85%;
  height: 85%;
  display: flex;
  justify-content: center;
}

.calorie-target-label {
  font-size: 20px;
  color: #666;
}

.calorie-target-number {
  font-size: 48px;
  line-height: 1.2;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calorie-icon {
  font-size: 32px;
}

.calorie-target-number .number {
  color: #000000;
}

.calorie-target-unit {
  font-size: 18px;
  color: #666;
  margin-top: 5px;
}

.calorie-target-goal {
  position: relative;
  top: -50px;
  right: -150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.goal-label {
  font-size: 16px;
  line-height: 1.2;
  color: #666;
}

.goal-number {
  font-size: 24px;
  line-height: 1.4;
  color: #000000;
  font-weight: bold;
}

@media (max-width: 600px) {
  .calorie-target-circle {
    width: 200px;
    height: 200px;
  }

  .calorie-target-number {
    font-size: 28px;
    line-height: 1.6;
  }

  .calorie-target-unit {
    font-size: 16px;
  }

  .calorie-target-goal {
    margin-top: 1em;
    top: 0; 
    right: 0;
  }

  .box--container.menu {
    padding: 20px;
  }

  .calorie-target-label {
    font-size: 16px;
  }
}

/* Progress ring styles */
.calorie-target-circle {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  transform-origin: center;
}

.progress-ring-circle {
  transition: stroke-dashoffset 1s ease-in-out;
  stroke-dasharray: 829.38;
  stroke-dashoffset: 829.38;
}

.progress-ring-circle-bg {
  fill: transparent;
}

.calorie-target-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 85%;
  height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  padding: 10%;
}

@media (max-width: 600px) {
  .calorie-target-circle {
    max-width: 200px;
  }

  .calorie-target-number {
    font-size: 28px;
  }

  .calorie-target-label {
    font-size: 16px;
  }

  .calorie-target-unit {
    font-size: 16px;
  }
}

/* Disabled autocomplete */
::-webkit-credentials-auto-fill-button {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  right: 0 !important;
}


.ct-panel .ct-account-modal .login,
.ct-panel .ct-account-modal .register {
  display: none !important;
}

.ct-panel.active .ct-account-modal .login,
.ct-panel.active .ct-account-modal .register {
  display: flex !important;
}