/* =============================================================
   LOQ APP SHELL
   Internal mobile views opened from the bottom navigation.
   ============================================================= */

.loq-app-view {
  position: fixed;
  inset: 0;
  z-index: 430;
  display: none;
  pointer-events: none;
}

.loq-app-view.is-open {
  display: block;
  pointer-events: auto;
}

.loq-app-view__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(250 250 252 / 0.98);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.loq-app-view.is-open .loq-app-view__backdrop {
  opacity: 1;
}

.loq-app-view__panel {
  position: absolute;
  inset: 0 0 0;
  height: auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(420px 260px at 0% 0%, rgb(var(--loq-primary-rgb, 90 56 229) / 0.06), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  color: var(--loq-text, #11131a);
  box-shadow: none;
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.loq-app-view:not(.loq-app-view--cart) .loq-app-view__panel {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.loq-app-view.is-open .loq-app-view__panel {
  transform: translateY(0);
}

.loq-app-view__header {
  position: relative;
  z-index: 3;
  min-height: 78px;
  padding: 18px var(--loq-gutter, 18px) 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    radial-gradient(420px 180px at 0% -28%, rgb(var(--loq-primary-rgb, 90 56 229) / 0.09), transparent 64%),
    linear-gradient(180deg, #ffffff 0%, #f7f7fa 100%);
  border-bottom: 1px solid rgb(17 19 28 / 0.08);
}

.loq-app-view--account .loq-app-view__header {
  min-height: 68px;
  padding-top: 18px;
  padding-bottom: 10px;
  background: transparent;
  border-bottom: 0;
}

.loq-app-view__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--loq-primary, #5a38e5);
  font-size: 12px;
  font-weight: 800;
}

.loq-app-view__header h2 {
  margin: 0;
  color: var(--loq-text, #11131a);
  font-size: 24px;
  font-weight: 760;
  line-height: 1;
}

.loq-app-view__close {
  width: 44px;
  height: 44px;
  border: 1px solid rgb(17 19 28 / 0.08);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--loq-text, #11131a);
  background: #ffffff;
  box-shadow: 0 8px 22px rgb(17 19 28 / 0.08);
}

.loq-app-view__account-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.loq-app-view__icon-action {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--loq-text, #11131a);
  background: transparent;
  font-size: 19px;
}

.loq-app-view__icon-action span {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--loq-primary, #5a38e5);
}

.loq-app-view__body {
  height: calc(100% - 78px);
  padding: 14px var(--loq-gutter, 18px) calc(var(--loq-bottom-nav-h, 74px) + var(--loq-safe-bottom, 0px) + 28px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.loq-app-view--account .loq-app-view__body {
  padding-top: 4px;
}

.loq-app-view:not(.loq-app-view--cart) .loq-app-view__body {
  height: auto;
  overflow: visible;
}

.loq-app-block {
  margin-bottom: 16px;
}

.loq-app-card {
  border: 1px solid rgb(17 19 28 / 0.08);
  border-radius: var(--loq-card-radius, 8px);
  background: rgb(255 255 255 / 0.92);
  box-shadow: var(--loq-shadow-card, 2px 4px 12px #00000014);
}

.loq-app-view--cart .loq-app-view__body {
  padding: 0;
}

.loq-app-cart,
.loq-app-view--cart .widget_shopping_cart_content {
  height: 100%;
  min-height: 0;
}

.loq-app-cart ul.woocommerce-mini-cart.cart_list,
.loq-app-view--cart .widget_shopping_cart_content ul.woocommerce-mini-cart.cart_list {
  padding: 10px var(--loq-gutter, 18px) 16px;
}

.loq-app-cart .woocommerce-mini-cart__total,
.loq-app-cart .woocommerce-mini-cart__buttons,
.loq-app-view--cart .widget_shopping_cart_content .woocommerce-mini-cart__total,
.loq-app-view--cart .widget_shopping_cart_content .woocommerce-mini-cart__buttons {
  padding-left: var(--loq-gutter, 18px) !important;
  padding-right: var(--loq-gutter, 18px) !important;
}

.loq-app-cart .woocommerce-mini-cart__buttons,
.loq-app-view--cart .widget_shopping_cart_content .woocommerce-mini-cart__buttons {
  padding-bottom: calc(var(--loq-bottom-nav-h, 74px) + var(--loq-safe-bottom, 0px) + 18px) !important;
}

body.loq-app-view-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .loq-app-view {
    display: none !important;
  }
}
