/* ==========================================================================
   Quick cart — opened-view template (wrapper class .mrw-dl-quick)
   A frosted-glass bar docked to the bottom of the rack:
   [ cart button ] [ - 1 + ] [ title / price ] [ details button (•••) ]   (mirrored on LTR pages)
   Every value can be changed from Elementor («نمای باز شده ▸ Quick cart»); the fallbacks below are the defaults.
   ========================================================================== */

.mrw-dl-quick .mrw .mrw-info {
  position: absolute;
  top: auto;
  bottom: calc(var(--mr-ql-bottom, 14px) + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  box-sizing: border-box;
  width: min(var(--mr-ql-w, 560px), calc(100% - 2 * var(--mr-ql-side, 12px)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas:
    "add qty title thumb"
    "add qty price thumb";
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
  padding: 18px 16px 12px;
  border-radius: var(--mr-ql-radius, 44px);
  background: var(--mr-ql-bg, rgba(255, 255, 255, .22));
  border: 1px solid var(--mr-ql-border, rgba(255, 255, 255, .45));
  -webkit-backdrop-filter: blur(var(--mr-ql-blur, 18px)) saturate(1.4);
  backdrop-filter: blur(var(--mr-ql-blur, 18px)) saturate(1.4);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
  text-align: start;
  justify-items: stretch;
  gap: 0;
  column-gap: 14px;
  row-gap: 2px;
  z-index: 60;
}

/* grab handle on top of the bar */
.mrw-dl-quick .mrw .mrw-info::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 40px;
  height: 4px;
  margin-left: -20px;
  border-radius: 4px;
  background: var(--mr-ql-handle, rgba(255, 255, 255, .75));
}

/* things this template does not use */
.mrw-dl-quick .mrw .mrw-info .mrw-count,
.mrw-dl-quick .mrw .mrw-info .mrw-dl-desc,
.mrw-dl-quick .mrw .mrw-info .mrw-dl-badge,
.mrw-dl-quick .mrw .mrw-info .mrw-qc-thumb,
.mrw-dl-quick .mrw .mrw-info .mrw-price del,
.mrw-dl-quick .mrw .mrw-grip {
  display: none !important;
}

.mrw-dl-quick .mrw .mrw-info .mrw-actions {
  display: contents;
}

/* ---- title / price ---- */
.mrw-dl-quick .mrw .mrw-info .mrw-title {
  grid-area: title;
  min-width: 0;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--mr-ql-title, #fff) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
}

.mrw-dl-quick .mrw .mrw-info .mrw-price {
  grid-area: price;
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: .3em;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--mr-ql-price, #fff) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
  text-align: start;
}

.mrw-dl-quick .mrw .mrw-info .mrw-price ins,
.mrw-dl-quick .mrw .mrw-info .mrw-price .amount,
.mrw-dl-quick .mrw .mrw-info .mrw-price bdi {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  text-decoration: none;
  color: inherit !important;
}

.mrw-dl-quick .mrw .mrw-info .mrw-price .woocommerce-Price-currencySymbol {
  font-size: .58em;
  font-weight: 700;
  opacity: .9;
}

/* ---- details button: round, built-in ••• icon (own settings, never shared with the other templates) ---- */
.mrw-dl-quick .mrw .mrw-info .mrw-details-btn {
  grid-area: thumb;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
  width: var(--mr-ql-details, 52px);
  height: var(--mr-ql-details, 52px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  font-size: 0;
  background: var(--mr-ql-details-bg, rgba(255, 255, 255, .16));
  border: 1px solid var(--mr-ql-details-border, rgba(255, 255, 255, .55));
  color: var(--mr-ql-details-color, #fff);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.mrw-dl-quick .mrw .mrw-info .mrw-details-btn:hover {
  background: var(--mr-ql-details-hover-bg, rgba(255, 255, 255, .3));
  color: var(--mr-ql-details-color, #fff);
}

.mrw-dl-quick .mrw .mrw-info .mrw-details-btn .mrw-details-btn__txt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mrw-dl-quick .mrw .mrw-info .mrw-details-btn .mrw-details-btn__ico {
  display: none !important;
}

.mrw-dl-quick .mrw .mrw-info .mrw-details-btn::before {
  content: "";
  width: calc(var(--mr-ql-details, 52px) * .5);
  height: calc(var(--mr-ql-details, 52px) * .5);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='5'%20cy='12'%20r='2'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='2'/%3E%3Ccircle%20cx='19'%20cy='12'%20r='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='5'%20cy='12'%20r='2'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='2'/%3E%3Ccircle%20cx='19'%20cy='12'%20r='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- quantity ---- */
.mrw-dl-quick .mrw .mrw-info .mrw-qty {
  grid-area: qty;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  min-height: var(--mr-ql-qty-h, 50px);
  padding: 0 var(--mr-ql-qty-pad, 8px);
  gap: var(--mr-ql-qty-gap, 8px);
  border-radius: var(--mr-ql-qty-radius, 999px);
  background: var(--mr-ql-qty-bg, rgba(255, 255, 255, .16));
  border: 1px solid var(--mr-ql-qty-border, rgba(255, 255, 255, .55));
  color: var(--mr-ql-qty, #fff);
  animation: none;
}

.mrw-dl-quick .mrw .mrw-info .mrw-qty[hidden],
.mrw-dl-quick .mrw .mrw-info .mrw-qty.mrw-qty--off-q {
  display: none !important;
}

.mrw-dl-quick .mrw .mrw-info .mrw-qty .mrw-qty__btn {
  width: var(--mr-ql-qty-btn, 32px);
  height: calc(var(--mr-ql-qty-btn, 32px) + 4px);
  font-size: calc(var(--mr-ql-qty-btn, 32px) * .75);
  color: inherit;
}

.mrw-dl-quick .mrw .mrw-info .mrw-qty .mrw-qty__val {
  font-size: var(--mr-ql-qty-font, 20px);
  font-weight: 700;
  min-width: 1.2em;
  color: inherit;
}

/* ---- round add-to-cart button ---- */
.mrw-dl-quick .mrw .mrw-info .mrw-add {
  grid-area: add;
  grid-row: 1 / span 2;
  align-self: center;
  flex: none;
  width: var(--mr-ql-add, 66px);
  height: var(--mr-ql-add, 66px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  border: 0;
  background: var(--mr-ql-add-bg, #f4b12e) !important;
  color: var(--mr-ql-add-text, #2b2118) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  font-size: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.mrw-dl-quick .mrw .mrw-info .mrw-add:hover {
  background: var(--mr-ql-add-hover, #e6a21e) !important;
}

.mrw-dl-quick .mrw .mrw-info .mrw-add.is-done {
  background: var(--mr-ql-success, var(--mr-success, #2e9e57)) !important;
  color: #fff !important;
}

/* text only for screen readers */
.mrw-dl-quick .mrw .mrw-info .mrw-add .mrw-add__txt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mrw-dl-quick .mrw .mrw-info .mrw-add.is-done .mrw-add__txt::before {
  content: none;
}

.mrw-dl-quick .mrw .mrw-info .mrw-add .mrw-add__ico {
  display: none !important;
}

/* built-in bag icon */
.mrw-dl-quick .mrw .mrw-info .mrw-add::before {
  content: "";
  flex: none;
  width: calc(var(--mr-ql-add, 66px) * .42);
  height: calc(var(--mr-ql-add, 66px) * .42);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%208h12l1%2012H5L6%208z'/%3E%3Cpath%20d='M9%208V6a3%203%200%200%201%206%200v2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%208h12l1%2012H5L6%208z'/%3E%3Cpath%20d='M9%208V6a3%203%200%200%201%206%200v2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mrw-dl-quick .mrw .mrw-info .mrw-add.is-busy::before {
  display: none;
}

.mrw-dl-quick .mrw .mrw-info .mrw-add.is-done::before {
  content: "\2713";
  width: auto;
  height: auto;
  background: none;
  -webkit-mask: none;
  mask: none;
  font-size: 28px;
  line-height: 1;
}

.mrw-dl-quick .mrw .mrw-info .mrw-add .mrw-add__spin {
  width: 24px;
  height: 24px;
}

/* status message floats above the bar */
.mrw-dl-quick .mrw .mrw-info .mrw-msg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  min-height: 0;
  text-align: center;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
  pointer-events: none;
}

.mrw-dl-quick .mrw .mrw-info .mrw-msg.is-error {
  color: #ffb4a8;
}

.mrw-dl-quick .mrw .mrw-info .mrw-msg a {
  pointer-events: auto;
}

/* phones */
@media (max-width: 767px) {
  .mrw-dl-quick .mrw .mrw-info {
    column-gap: 10px;
    padding: 16px 12px 10px;
  }

  .mrw-dl-quick .mrw .mrw-info .mrw-title,
  .mrw-dl-quick .mrw .mrw-info .mrw-price {
    font-size: 17px;
  }

  .mrw-dl-quick .mrw .mrw-info .mrw-qty {
    min-height: var(--mr-ql-qty-h, 44px);
    gap: var(--mr-ql-qty-gap, 4px);
  }

  .mrw-dl-quick .mrw .mrw-info .mrw-qty .mrw-qty__val {
    font-size: var(--mr-ql-qty-font, 17px);
  }

  .mrw-dl-quick .mrw .mrw-info .mrw-qty .mrw-qty__btn {
    width: var(--mr-ql-qty-btn, 26px);
    font-size: calc(var(--mr-ql-qty-btn, 26px) * .85);
  }

  .mrw-dl-quick .mrw .mrw-info .mrw-add {
    width: var(--mr-ql-add, 56px);
    height: var(--mr-ql-add, 56px);
  }

  .mrw-dl-quick .mrw .mrw-info .mrw-details-btn {
    width: var(--mr-ql-details, 46px);
    height: var(--mr-ql-details, 46px);
  }
}