/* 
Theme Name: Hello Child
Theme URI: https://t.me/Toptech_ir
Description: 
Author: پیمان ثریا
Author URI: https://t.me/Toptech_ir
Template: hello-elementor
Version: 1.0.31
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


/* 1) ظرف فرم */
.pymemail-form {
  position: relative;
  max-width: 300px;
  margin: 1em auto;
}

/* 2) فیلد ایمیل */
.pymemail-form .pymemail-input {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 48px !important;
  padding: 0 14px 0 120px !important; /* فضا برای دکمه در دسکتاپ */
  border: none !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  outline: none;
  text-align: right !important;
}

.pymemail-form .pymemail-input::placeholder {
  color: #121212 !important;
  font-size: 14px;
  font-weight: 200;
}

/* 3) دکمه ثبت داخل فیلد - برای تمام سایزها */
.pymemail-form .pymemail-submit {
  position: absolute;
  left: 4px; /* فاصله از لبه چپ input */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1B1615;
  color: #fff;
  border: none !important;
  padding: 10px 20px !important;
  height: 40px !important;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: opacity .2s;
}

.pymemail-form .pymemail-submit:hover {
  opacity: .95;
}

/* Toast container */
.pymemail-toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Each toast */
.pymemail-toast {
  min-width: 200px;
  max-width: 300px;
  padding: 12px 16px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Visible state */
.pymemail-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Variants */
.pymemail-toast.success {
  background-color: #226B60;
}

.pymemail-toast.error {
  background-color: #c0392b;
}

/* 4) واکنش‌گرا برای موبایل */
@media (max-width: 480px) {
  .pymemail-form {
    max-width: 100% !important;
    margin: 1em !important;
    padding: 0 10px;
  }

  /* فیلد ایمیل */
  .pymemail-form .pymemail-input {
    height: 44px !important;
    padding: 0 14px 0 95px !important;
    font-size: 0.9rem !important;
  }

  /* دکمه داخل input */
  .pymemail-form .pymemail-submit {
    left: 9px;
    padding: 10px 16px !important;
    height: 44px !important;
    font-size: 0.85rem !important;
  }

  /* کانتینر توست */
  .pymemail-toast-container {
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 20px);
    align-items: center;
  }

  .pymemail-toast {
    width: 100%;
    max-width: none;
  }
}








.pymchekoutcust-mini-cart-product-details {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-auto-rows: min-content;
    align-items: start;
    column-gap: 3px !important;
}

 
/* 1) ظرف فرم */
.pymemail-form {
  position: relative;
  max-width: 300px;
  margin: 1em auto;
}

/* 2) فیلد ایمیل */
.pymemail-form .pymemail-input {
  width: 300px !important;
  height: 48px !important;
  padding: 0 21px 0 70px !important; /* فاصله از چپ برای دکمه */
  border: none !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  outline: none;
  text-align: right !important;
}

.pymemail-form .pymemail-input::placeholder {
  color: #121212 !important;
  font-size: 14px;
  font-weight: 200;
}

/* 3) دکمه ثبت داخل فیلد با Flex برای مرکز قرارگیری متن */
.pymemail-form .pymemail-submit {
  position: absolute;
  left: -120px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;               /* فعال‌سازی Flex */
  align-items: center;         /* مرکز عمودی */
  justify-content: center;     /* مرکز افقی */
  background-color: #1B1615;
  color: #fff;
  border: none !important;
  padding: 22px 40px !important;
  height: 32px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 400;
  transition: opacity .2s;
}

.pymemail-form .pymemail-submit:hover {
  opacity: .95;
}


/* Toast container */
.pymemail-toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Each toast */
.pymemail-toast {
  min-width: 200px;
  max-width: 300px;
  padding: 12px 16px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Visible state */
.pymemail-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Variants */
.pymemail-toast.success {
  background-color: #226B60;
}

.pymemail-toast.error {
  background-color: #c0392b;
}

/* 4) واکنش‌گرا برای موبایل */
@media (max-width: 480px) {
  /* حاشیه و Padding فرم */
  .pymemail-form {
    max-width: 100% !important;
    margin: 1em !important;
    padding: 0 9px;
  }

  /* فیلد ایمیل با عرض کامل */
  .pymemail-form .pymemail-input {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 40px !important;
    padding: 0 14px 0 50px !important; /* جا برای دکمه */
    font-size: 0.9rem !important;
  }

  /* دکمه ارسال چسبیده به لبهٔ فرم */
  .pymemail-form .pymemail-submit {
    position: absolute;
    left: 10px;                             /* فاصله از لبه فرم */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 19px 12px !important;
    height: 30px !important;
    font-size: 0.85rem !important;
  }

  /* کانتینر توست در مرکز پایین صفحه */
  .pymemail-toast-container {
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 20px);
    align-items: center;
  }

  .pymemail-toast {
    width: 100%;
    max-width: none;
  }
}


/* ========================================================================== 
   v1.0.28 — Article heading hierarchy
   Keep H2 visibly above H3 inside blog/article content regardless of Elementor
   per-widget typography overrides.
   ========================================================================== */
body.single-post .elementor-widget-theme-post-content .elementor-widget-container h2,
body.single-post .entry-content h2,
body.single-post article .post-content h2 {
  font-size: clamp(27px, 2.05vw, 32px) !important;
  line-height: 1.65 !important;
  font-weight: 800 !important;
}

body.single-post .elementor-widget-theme-post-content .elementor-widget-container h3,
body.single-post .entry-content h3,
body.single-post article .post-content h3 {
  font-size: clamp(21px, 1.55vw, 25px) !important;
  line-height: 1.7 !important;
  font-weight: 700 !important;
}

@media (max-width: 767px) {
  body.single-post .elementor-widget-theme-post-content .elementor-widget-container h2,
  body.single-post .entry-content h2,
  body.single-post article .post-content h2 {
    font-size: 22px !important;
  }

  body.single-post .elementor-widget-theme-post-content .elementor-widget-container h3,
  body.single-post .entry-content h3,
  body.single-post article .post-content h3 {
    font-size: 18px !important;
  }
}



@media (max-width: 480px) {
  body.single-post .elementor-widget-theme-post-content .elementor-widget-container h2,
  body.single-post .entry-content h2,
  body.single-post article .post-content h2 {
    font-size: 20px !important;
    line-height: 1.7 !important;
  }

  body.single-post .elementor-widget-theme-post-content .elementor-widget-container h3,
  body.single-post .entry-content h3,
  body.single-post article .post-content h3 {
    font-size: 17px !important;
    line-height: 1.8 !important;
  }
}

/* Pym product-video Elementor slot compatibility — v1.0.31 */
body.pym-product-video-only-enabled.woocommerce.single-product .elementor-widget-pym_product_display,
body.pym-product-video-only-enabled.woocommerce.single-product .elementor-widget-pym_product_display > .elementor-widget-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}
