#TB_window {
  left: 0 !important;
  margin: 0 auto !important;
  max-width: 600px !important;
  right: 0 !important;
  top: 10% !important;
  width: 95% !important;
  /*IOS issue(Mobile device)*/
  -webkit-overflow-scrolling: touch!important;
  z-index: 9999999;    
}
#TB_window iframe#TB_iframeContent {
  margin: 0 auto;
  max-width: 600px;
  width: 100% !important;
  height: 480px!important;
}
.product_cat-gift-card h1 {
 margin-bottom: 15px!important;

}
.mwb_wgm_added_wrapper > .mwb_wgm_section {
 
  margin-bottom: 25px !important;
}
.mwb_wgm_added_wrapper label {
 color: #666666 ;
 font-size: 14px;

}
.mwb_wgm_added_wrapper input {
 font-family: Montserrat,"Helvetica Neue",sans-serif!important;

height: auto;
padding: 6px 10px;
}
textarea#mwb_wgm_message {
    padding: 10px 10px;
}
.mwb_wgm_added_wrapper > p input.mwb_wgm_to_email {
 margin-bottom: 20px;
 margin-top: 7px;
}
.mwb_wgm_added_wrapper .mwb_wgm_message {
  display: block;
  margin-bottom: 3px;
  width: 100%;
 
}
.mwb_wgm_info {
  display: block;
  margin-top: 3px;
}



.mwb_wgm_from_name, .mwb_wgm_send_date.hasDatepicker, .input-text.mwb_wgm_price {
  width: 100%!important;
}
.mwb_wgm_to_email {
  width: 100%!important;
}
#mwb_wgm_to_email, #mwb_wgm_to_ship, #mwb_wgm_to_download, #mwb_wgm_message, #mwb_wgm_to_name_optional, .mwb_wgm_added_wrapper .mwb_wgm_from_name, .mwb_wgm_send_date {
 border: 1px solid #f1f1f1 ;
}
#mwb_wgm_browse_img{
  border: 1px solid #f1f1f1 ;
}
.mwb_wgm_send_giftcard {
  margin-right: 5px;
}
#mwb_wgm_price {
 padding: 6px 8px;
 width: 99%;
}
.mwb_wgm_added_wrapper .mwb_wgm_msg_info {
 display: block;
 font-size: 13px;
}
.mwb_wgm_added_wrapper .mwb_gm_method{
  display:block;
}
.mwb_wgm_added_wrapper #mwb_wgm_send_date {
  border: 1px solid #f1f1f1;
 
}.mwb_wgm_added_wrapper .mwb_wgm_to_email{
margin-bottom: 10px  !important;
}

body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_disable:focus {
 background: #f7f7f7 linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)) repeat scroll 0 0;
 border-bottom: none;
}
body.single-product .product_cat-gift-card .mwb_wgm_template_item.mwb_wgm_pre_selected_temp,
body.single-product .product_cat-gift-card .mwb_wgm_featured_img.mwb_wgm_pre_selected_temp {
  border-color: #000 !important;
  border-radius: 5px;
  margin-right: 12px;
}
body.single-product .product_cat-gift-card .mwb_wgm_featured_img {
  margin-right: 12px;
  margin-bottom: 10px;
  border: 1px solid #dcdcdc ;
  background-color: #00897b;
  display: inline-block;
  transition: border-color 0.2s ease;
}
.mwb_wgm_delivery_method {
  border: 1px solid #f1f1f1;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.12);
  margin-bottom: 25px;
  padding: 20px;
}

@media only screen and (max-width: 640px){
  #TB_window > iframe#TB_iframeContent {
  height: 400px !important;
  }
  /*IOS issue(Mobile device)*/
  #TB_window {
   height: 80vh;
   overflow-y: scroll;
 }
}
@media only screen and (max-width: 768px){
  .mwb_wgm_added_wrapper input[type="text"], .mwb_wgm_added_wrapper textarea{
    font-size: 12px;
  }
}
/*====================================
=            custom style            =
====================================*/
.product_cat-gift-card {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.14);
  padding: 30px;
}
 .product_cat-gift-card h1 {

  position: relative;
}

 .product_cat-gift-card h1.product_title.entry-title::before {
    background-color: #575757;
    bottom: -8px;
    content: "";
    height: 2px;
    position: absolute;
    width: 45%;
}
.product_cat-gift-card .woocommerce-product-gallery__image.flex-active-slide {
  max-width: 300px;
  width: 100%;
}
.product_cat-gift-card .price {
  margin: 15px 0;
}
.product_cat-gift-card .woocommerce form.cart, .woocommerce-page form.cart {
  margin-top: 20px!important;
}
.product_cat-gift-card .mwb_wgm_added_wrapper > p label {
  display: block;
  font-size: 15px;
  margin-top: 10px;
  padding-bottom: 6px;
}
.product_cat-gift-card input[type="text"], .product_cat-gift-card input[type="email"], .product_cat-gift-card input[type="url"], .product_cat-gift-card input[type="password"], .product_cat-gift-card input[type="search"] {
  padding: 7px !important;
}
.product_cat-gift-card .mwb_wgm_from_name, .product_cat-gift-card .mwb_wgm_send_date.hasDatepicker, .product_cat-gift-card .input-text.mwb_wgm_price {
  border: 1px solid #f1f1f1 ;
  width: 100% !important;
}
.product_cat-gift-card input,.product_cat-gift-card textarea{
  border: 1px solid #f1f1f1!important;
}

.product_cat-gift-card .woocommerce-product-gallery__image {
  border: 1px solid #f1f1f1;
  border-radius: 5px;
  padding: 5px;
}
body.single-product .product_cat-gift-card input:active,
body.single-product .product_cat-gift-card textarea:active {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
.product_cat-gift-card .mwb_wgm_send_giftcard {
  margin-bottom: 7px;
  margin-right: 7px;
}

/*=====  End of custom style  ======*/
.mwb_wgm_added_wrapper > p {
  margin-bottom: 3px;
}
.amount_wrapper{
  background: grey;
  background-color: grey;
  display: inline-block;
  padding: 2%;
  margin: 2%;
  font-weight: bold;
  color: white;
}
#mwb_check_balance{
  background: grey;
  background-color: grey;
  display: inline-block;
  padding: 2%;
  font-weight: bold;
  color: white;
}
#mwb_wgm_loader {
    background-color: rgba(255, 255, 255, 0.6);
    bottom: 0;
    height: 100%;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 99999;
}
#mwb_wgm_loader img {
    display: block;
    left: 0;
    margin: 0 auto;
    position: absolute;
    right: 0;
    top: 40%;
}
.gift_card_balance_email, .gift_card_code{
  width: 50%;
}
.gift_card_balance_email {
  margin-bottom: 25px;
}
.gift_card_code {
  margin-bottom: 25px;
}
.mwb_check_balance {
  margin-top: 15px;
}
/* custom css for redeem iframe*/
.mwb_redeem_embed {
  width: 100%;
  height: 610px;
  display: block;
}

#mwb_wgm_setting_wrapper input[type=text], #mwb_wgm_setting_wrapper input[type=number], #mwb_wgm_setting_wrapper select {
  padding: 5px 10px!important;
}

.show_if_wgm_gift_card>p>label {
  padding-right: 15px;
}

/* ===== Preset Price Buttons ===== */
body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_preset_prices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_preset_prices button.mwb_wgm_preset_btn {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease;
  font-family: Montserrat, "Helvetica Neue", sans-serif;
  flex: 1 1 auto;
  min-width: 70px;
  text-align: center;
}
body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_preset_prices button.mwb_wgm_preset_btn:hover {
  border-color: #000;
  background: #fff;
  box-shadow: none;
  color: #000;
}
body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_preset_prices button.mwb_wgm_preset_btn.mwb_wgm_preset_active {
  border-color: #000;
  background: #fff;
  box-shadow: none;
  color: #000;
}
body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_preset_prices button.mwb_wgm_preset_btn .woocommerce-Price-currencySymbol {
  margin-right: 2px;
}

/* ===== Template Picker Grid ===== */
body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_template_picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 15px 0;
}
body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_template_picker .mwb_wgm_template_item {
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_template_picker .mwb_wgm_template_item:hover {
  border-color: #000;
  background: transparent;
  box-shadow: none;
}
body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_template_picker .mwb_wgm_template_item.mwb_wgm_pre_selected_temp {
  border-color: #000;
  background: transparent;
  box-shadow: none;
}
body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_template_picker .mwb_wgm_featured_img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* ===== Mobile: Template Slider ===== */
@media only screen and (max-width: 768px) {
  body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_preset_prices {
    gap: 8px;
  }
  body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_preset_prices button.mwb_wgm_preset_btn {
    padding: 8px 14px;
    font-size: 14px;
    min-width: 60px;
  }
  body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_template_picker {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 10px;
    margin: 10px -15px;
    padding-left: 15px;
    padding-right: 15px;
    scrollbar-width: thin;
  }
  body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_template_picker::-webkit-scrollbar {
    height: 4px;
  }
  body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_template_picker::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
  }
  body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_template_picker .mwb_wgm_template_item {
    flex: 0 0 75%;
    scroll-snap-align: center;
  }
}
@media only screen and (max-width: 480px) {
  body.single-product .product_cat-gift-card .mwb_wgm_added_wrapper .mwb_wgm_template_picker .mwb_wgm_template_item {
    flex: 0 0 85%;
  }
}
