#cp-rx_manager-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#cp-modal-content {
  background: #fff;
  padding: 20px;
  width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

#cp-search-results div {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 5px;
  border-bottom: 1px solid #eee;
}

#cp-search-results div:hover {
  background: #f0f0f0;
}

.cp-drug-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.cp-drug-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-left: 10px;
  border-radius: 3px;
}

.cp-drug-item .cp-remove-drug {
  cursor: pointer;
  margin-left: 10px;
  color: red;
  font-weight: bold;
}

button#cp-add-rx_manager-btn {
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 3px;
}


.cp-rx_manager {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  background: #fafafa;
}

.cp-rx_manager h3 {
  margin-top: 0;
}

.cp-rx_manager ul {
  list-style: none;
  padding: 0;
}

.cp-rx_manager ul li {
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cp-rx_manager button {
  margin-left: 10px;
  cursor: pointer;
  background: #0073aa;
  border: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
}

.cp-rx_manager button:hover {
  background: #005177;
}

.cp-drug-status {
  font-weight: bold;
  min-width: 80px;
  display: inline-block;
  text-align: center;
}
#cp-modal-content {
  text-align: right;
}
.cp-rx_manager-field.half-width {
  flex: 1 1 49%;
}
.cp-rx_manager-field {
  flex: 1 1 100%;
}
#cp-rx_manager-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.cp-rx_manager-drug-list {
  flex: 1 1 100%;
}
#cp-close-modal {
  background: #ff5151;
  color: white;
  border: unset;
}
#cp-close-modal:hover {
    box-shadow: 0 9px 20px 0 rgba(255, 81, 81, 0.42);
}
.dc-btn.rx-manager {
  background: #0fbf0f !important;
  border: unset !important;
  color: white !important;
}
#cp-rx_manager-modal h2, #cp-rx_manager-modal h3 {
  font-family: var(--yekan-font);
  font-size: 16px;
  font-weight: 400;
}
.cp-rx_manager-drug-list h3 {
  margin-bottom: 18px;
}
.cp-drug-item {
  background: #eee;
  border-radius: 7px;
  padding: 6px;
}
.cp-drug-item {
  background: #eee;
  border-radius: 7px;
  padding: 6px;
    padding-right: 6px;
  padding-right: 24px;
}
.rx-manager-page {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.rx-manager-page h2 {
  font-family: var(--yekan-font);
  align-content: center;
}

#rx_record-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}
.rx_record-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
}
.rx_record-content {
  background: #fff;
  width: 800px;
  margin: 100px auto;
  padding: 20px;
  position: relative;
  border-radius: 10px;
}
.rx_record-header {
  display: flex;
  align-items: center;
  gap: 15px;
}
.rx_record-header img {
  width: 60px;
  border-radius: 50%;
}
.rx_record-body ul {
  padding-left: 20px;
}
.rx_record-close , .rx_product-close{
  position: absolute;
  top: 15px;
  left: 15px;
  background: #eee0;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: red;
  font-weight: 800;
}
.rx_record-header div {
  font-family: var(--yekan-font);
  text-align: right;
}
#rx_record-phone {
  margin: unset !important;
}
.rx_record-header {
  border-bottom: 1px solid #00000024;
  padding: 24px;
  display: flex;
  justify-content: space-between;
}
.rx_record-body {
  text-align: right;
  padding: 20px;
}
.rx_record-body h4 , #rx_record-name {
  font-family: iranyekanx;
  font-weight: 500;
}

#rx_record-medicines li {
  list-style-type: none;
  background: #0000001a;
  padding: 10px 30px;
  border-radius: 10px;
  margin-bottom: 5px;
  padding-left: 130px;
  display: flex;
  position: inherit;
}
#rx_record-medicines {
  border-bottom: 1px solid #00000024;
  padding-bottom: 15px;
  margin-bottom: 12px;
  margin-top: 12px;
  position: relative;
}
#rx_record-medicines span.not_bought , #rx_record-medicines span.bought  {
  position: absolute;
  left: 10px;
  color: #f3f3f3;
  padding: 0 10px;
  border-radius: 5px;
  font-family: iranyekanx;
  font-weight: 500;
}
.not_bought {
    background: #dc8908;
}
.bought {
    background: #5edc08;
}
#rx_record-medicines a {
  color: black;
}
.show-prescription-popup , .show-recored_rx-popup {
  color: #fff;
  height: 30px;
  font-size: 13px;
  line-height: 30px;
  border-radius: 4px;
  text-align: center;
  background: var(--themecolor);
  padding: 0 10px;
}
#rx_record-medicines input[type="checkbox"] {
  margin-left: 5px;
}
.rx_record-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: baseline;
}
.rx_record-footer p {
  margin: unset !important;
  line-height: inherit;
}
.cp-rx_manager-field.\31 \/3-width {
  flex: 1 1 32%;
}


#rx_product-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}
.rx_product-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
}
.rx_product-content {
  background: #fff;
  width: 800px;
  margin: 100px auto;
  padding: 20px;
  position: relative;
  border-radius: 10px;
}
#product-quick-view {
  display: flex;
  gap: 25px;
  padding-left: 50px;
}
.rx_product-image-box img {
  border: 1px solid #4b4b4b21;
  border-radius: 12px;
  padding: 15px;
  width: 550px;
}
.rx_product-title h3 {
  font-family: var(--yekan-font);
  letter-spacing: -0.5px;
  font-weight: 400;
  font-size: 20px;
}
.rx_product-content-box {
  text-align: right;
  gap: 10px;
  display: flex;
  flex-direction: column;
}
.rx_product-price {
  border: 2px solid var(--themecolor);
  text-align: center;
  display: flex;
  padding: 5px 20px;
  justify-content: center;
  border-radius: 0 0 12px 12px;
  border-top: unset;
}
.rx_product-price p {
  margin: unset;
  font-family: 'IRANYekanX' !important;
  font-size: 20px;
}
.rx_product-price p span {
  font-size: 13px;
}
.class\=\"rx_product-fields\" {
  margin-top: -25px;
}
.rx_product-image-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.rx_product-price {
  border: 2px solid #0fbf0f;
  text-align: center;
  display: flex;
  padding: 5px 20px;
  justify-content: center;
  border-radius: 12px;
}
.dc-btn.rx-product-submitter {
  background: #0fbf0f !important;
  border: unset !important;
  color: white !important;
  height: 60px;
  width: 100%;
}
#rx_record-medicines input[type="checkbox"] {
  position: absolute;
  right: -6px;
  top: 26px;
  transform: scale(1.5);
  margin: 5px;
  border-radius: 20px !important;
  accent-color: #30a518;
}
.rx_record-medicine-meta {
  display: flex;
  gap: 12px;
}
.rx_record-medicine-meta.user-view {
    margin-right: 20px;
}
.rx_record-medicine-meta__item {
  font-family: yekanbakhfanum-regular;
}
#rx_record-medicines a {
  color: #3f3f3f;
  font-family: iranyekanx;
  font-weight: 500;
}
#rx_record-phone {
    font-family: yekanbakhfanum-regular;
}
.rx_record-header__userinfo {
  display: flex;
  gap: 12px;
}
.rx_record-appointment {
  background: #e5e5e5;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: yekanbakhfanum-regular !important;
}
#rx_record-appointment-date {
  font-family: iranyekanX;
  font-weight: 500;
  font-size: 17px;
}
.dc-btn.rx-manager[disabled] {
  background: #cdcdcd !important;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.5;
}
@media(max-width: 768px) {
    .dc-dashboardboxtitle h2 {
        font-size: 16px;
    }
    button#cp-add-rx_manager-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .rx_record-content {
        width: 100%;
        margin: 75px auto;
        height: max-content;
        bottom: 0;
        position: absolute;
        margin-bottom: unset !important;
        border-bottom-left-radius: unset;
        border-bottom-right-radius: unset;
    }
    #rx_record-medicines li {
        padding: 10px !important;
        list-style-type: none;
        display: flex;
        flex-direction: column;
    }
    #rx_record-medicines span.not_bought, #rx_record-medicines span.bought {
        position: relative !important;
        left: unset !important;
        text-align: center;
    }
    .rx_record-body {
        padding: 10px 0px !important;
        max-height: 500px !important;
    }
    .rx_record-medicine-meta {
        gap: 5px !important;
        justify-content: space-between;
    }
    #rx_record-medicines {
        padding: unset !important;
        padding-bottom: 20px !important;
    }
    #cp-modal-content {
        width: 100% !important;
        bottom: 0 !important;
        position: absolute !important;
        max-height: 100% !important;
    }
    .dc-btn.rx-manager, #cp-close-modal {
        width: 100%;
    }
    .rx_product-content {
        width: 100% !important;
        padding: 20px;
        max-height: max-content;
        margin: 100px 0 0 0 !important;
        height: 90%;
        bottom: 0;
        position: absolute !important;
        overflow: scroll;
    }
    #product-quick-view {
        flex-direction: column;
        padding: unset !important;
    }
    .rx_product-image-box {
        gap: 5px !important;
    }
    .cp-rx_manager-field {
        margin-top: 15px;
    }
    .rx_product-excerpt {
        display: none;
    }
    .rx_record-body h4, #rx_record-name {
        font-size: 16px;
    }
    .rx_record-header {
        padding: 11px !important;
        padding-bottom: 15px !important;
    }
    #rx_record-medicines input[type="checkbox"] {
        position: absolute;
        right: -15px;
        top: 35px;
    }
    #rx_record-appointment-date {
        font-size: 14px;
    }
    .rx_record-footer {
        flex-direction: column !important;
    }
    .dc-btn.rx-manager {
        margin-top: 7px !important;
    }
}




/*** Carousel ***/
.rx-swiper div.swiper-slide {
  border: 1px solid #9b9a9a30;
  padding: 14px;
  border-radius: 10px;
}
.rx-swiper h3 {
  font-family: iranyekanx;
  font-weight: 500;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 20px;
}
.rx-swiper .swiper-button-next::after, .rx-swiper .swiper-button-prev::after {
  font-size: 15px;
  background: #e6e6e6;
  padding: 10px 13px;
  border-radius: 82px;
}
.regular_users_dashboard {
  display: flex;
  flex-wrap: inherit;
}



/*** Iranic Cart ***/

.iranic-mini-cart {
    padding: 20px;
    background: #fdfdfd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: IRANSans, sans-serif;
    direction: rtl;
}

.iranic-mini-cart h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    font-family: iranyekanX;
}

.iranic-cart-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    margin-bottom: 15px;
    padding: 10px;
    position: relative;
    gap: 12px;
}

.iranic-cart-item-thumb img {
    width: 60px;
    height: auto;
    border-radius: 8px;
}

.iranic-cart-item-details {
    flex: 1;
}

.iranic-cart-item-name a {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    text-decoration: none;
}
.iranic-cart-item-name a {
  font-family: iranyekanx !important;
  font-weight: 500;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iranic-cart-item-qty {
    font-size: 14px;
    color: #666;
}

.iranic-cart-item-price {
    font-size: 15px;
    margin-top: 5px;
    color: #2a9d8f;
    font-weight: bold;
    display: flex;
    gap: 10px;
}

.iranic-cart-item-price del {
    color: #999;
    margin-left: 8px;
}

.iranic-remove-item {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #ff5252;
  color: white;
  border: none;
  border-radius: 5px;
  width: 20px;
  height: 20px;
  font-size: 18px;
  line-height: 23px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.iranic-remove-item:hover {
    background: #e60000;
}

.iranic-cart-total {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: 20px;
}
.iranic-cart-total {
  border-top: 1px solid #c1c1c15c;
  border-bottom: 1px solid #c1c1c15c;
  padding: 10px 0;
  font-family: iranyekanX;
}

.iranic-cart-buttons {
    margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  flex-direction: column;
  text-align: center;
}

.iranic-cart-buttons a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: background 0.3s ease;
    font-family: iranyekanx;
}

.iranic-cart-buttons .view-cart {
    background-color: #0077b6;
}

.iranic-cart-buttons .view-cart:hover {
    background-color: #005f8e;
}

.iranic-cart-buttons .checkout {
    background-color: #38b000;
}

.iranic-cart-buttons .checkout:hover {
    background-color: #2a7c00;
}
.iranic-cart-item-price {
  font-family: yekanbakhfanum-regular;
}

.iranic-mini-cart {
  max-height: 582px;
}
.btn-rx-actions .at-chatbtn-wrap {
  margin: unset;
}
.bt-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.dc-actionbtn.guppy-messagner-button a {
  width: 135px !important;
}
.dc-actionbtn.guppy-messagner-button a {
  width: max-content !important;
  padding: 10px;
  text-align: center !important;
  font-family: 'IranYekanX' !important;
  font-weight: 600 !important;
}
.btn-rx-actions .bt-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}
.at-chatbtn i {
  margin-left: 4px;
  margin-right: unset !important;
}
