/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
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
*/

/* Add your custom styles here */

/* Wrapper */
.custom-prices-wrap {
  max-width: 900px;
}

/* هر آیتم */
.price-item {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
  position: relative;
}

/* ردیف‌ها */
.field-row {
  display: flex;
  gap: 24px;
}

/* بلاک کامل */
.field-block.full {
  margin: 10px 0 18px 0;
}

/* لیبل‌ها */
.price-item label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

/* فیلدها */
.price-item input[type="text"] {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border-radius: 6px;
}

/* قیمت */
.price-field {
  flex: 1;
}

/* ورودی قیمت + تومان */
.price-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

/* دکمه حذف */
.remove-item {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff4d4d;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}

/* فاصله دکمه افزودن */
#add-price {
  margin-top: 10px;
}

#adminmenu .wp-menu-image img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transform: translateY(-4px);
}

.price-item textarea {
  width: 100%;
  min-height: 50px;
  resize: vertical;
  padding: 10px;
  border-radius: 6px;
  line-height: 1.6;
}

.last-update {
  margin-top: 20px;
  padding: 10px 15px;
  background: #f9f9f9;
  border-left: 4px solid #00a32a;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  text-align: left;
}

@media (max-width: 768px) {
  .main-ontainer {
    max-width: 100vw;
  }
}
.main-ontainer {
  max-width: 500px;
}
.header-logo-img .elementor-image-box-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.last-update-element::before {
  content: "آخرین آپدیت:";
  font-size: 13px;
  font-weight: 800;
  position: absolute;
  top: -22px;
  right: 0px;
}
@keyframes buyAnim {
  0% {
    box-shadow: 0 0 0px #00771144;
  }
  100% {
    box-shadow: 0 0 10px #00771144;
  }
}
@keyframes sellAnim {
  0% {
    box-shadow: 0 0 0px #dd000044;
  }
  100% {
    box-shadow: 0 0 10px #dd000044;
  }
}
.buy-icon-box {
  animation: buyAnim 2s infinite alternate;
}
.sell-icon-box {
  animation: sellAnim 2s infinite alternate;
}
.main-items-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.main-items-container .item-card:last-child {
  border-bottom: none !important;
}
.item-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0px 0 40px 0;
  border-bottom: 1px solid #00000011;
}
.item-title {
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  background-color: white;
  padding: 10px 14px;
  border-radius: 7px;
  box-shadow: 0 10px 20px -10px #00000055;
}
.item-prices {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: -10px;
  align-items: center;
}
.price-buy,
.price-sell {
  font-size: 13px;
  font-feature-settings: "numr";
  background-color: #e2efd1;
  padding: 7px;
  border-radius: 5px;
  border: 1px solid #cee9c0bb;
}
.price-sell {
  background-color: #f5dcd1;
  border: 1px solid #eec9bfbb;
}
.item-description {
  width: 100%;
  background: #ffffff;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(247, 247, 247, 1) 100%
  );
  padding: 15px 10px;
  font-size: 13px;
  border-radius: 7px;
  margin-top: 7px;
  font-weight: 500;
  border: 1px solid #00000011;
}
.item-prices::before {
  content: "";
  width: 75%;
  height: 55px;
  position: absolute;
  right: 50%;
  transform: translate(50%, -25px);
  z-index: -1;
  border-radius: 30px 30px 0 0;
  border: 1px dashed #000000;
  border-bottom: 0;
}
