body.pg-cart-popup-open {
  overflow: hidden;
}

.pg-cart-popup {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  background: rgba(36, 42, 22, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pg-cart-popup.active {
  pointer-events: auto;
  opacity: 1;
}

.pg-cart-popup__dialog {
  position: relative;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 482px;
  height: 100%;
  border-left: 1px solid #e7dfc2;
  background: #fcfcfb;
  box-shadow: -24px 0 80px rgba(36, 42, 22, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.pg-cart-popup.active .pg-cart-popup__dialog {
  transform: translateX(0);
}

.pg-cart-popup__header {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: #fcfaf2;
}

.pg-cart-popup__heading {
  margin: 0;
  padding-right: 40px;
  color: #242a16;
  font-family: "Josefin Sans";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}

.pg-cart-popup__close {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pg-cart-popup__body {
  padding: 16px 24px;
}

.pg-cart-popup-title {
  margin: 0 0 24px;
  color: #242a16;
  font-family: "Josefin Sans";
  font-size: 16px;
  font-weight: 700;
  line-height: 150%;
}

.pg-cart-popup-title.pg-cart-popup__eyebrow {
  color: #242a16;
  font-family: "Josefin Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 120%;
}

.pg-cart-popup__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pg-cart-popup__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e7dfc2;
}

.pg-cart-popup__item-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.pg-cart-popup__media {
  width: 110px;
  height: 116px;
  aspect-ratio: 55 / 58;
  overflow: hidden;
  background: #faf7e8;
  flex-shrink: 0;
}

.pg-cart-popup__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pg-cart-popup__content {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 116px;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
}

.pg-cart-popup__name {
  margin: 0;
  color: #242a16;
  font-family: "Josefin Sans";
  font-size: 18px;
  font-weight: 400;
  line-height: 140%;
}

.pg-cart-popup__meta {
  margin: 0;
  color: #4b5040;
  font-family: "Josefin Sans";
  font-size: 16px;
  font-weight: 300;
  line-height: 150%;
}

.pg-cart-popup__subtotal,
.pg-cart-popup__subtotal .amount {
  margin: 0;
  color: #393b39;
  font-family: "Josefin Sans";
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
}

.pg-cart-popup__trash {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #cfc9ab;
  background: #faf7e8;
  cursor: pointer;
  flex-shrink: 0;
}

.pg-cart-popup__footer {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: #fcfaf2;
}

.pg-cart-popup__total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pg-cart-popup__total-row > span:first-child {
  color: #242a16;
  font-family: "Josefin Sans";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}

.pg-cart-popup__total-row [data-cart-popup-total],
.pg-cart-popup__total-row [data-cart-popup-total] .amount {
  color: #393b39;
  font-family: "Josefin Sans";
  font-size: 22px;
  font-weight: 600;
  line-height: normal;
}

.pg-cart-popup__actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pg-cart-popup__button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 12px 20px;
  text-decoration: none;
  font-family: "Josefin Sans";
  font-size: 16px;
  line-height: 150%;
}

.pg-cart-popup__button--secondary {
  border: 1px solid #242a16;
  color: #242a16;
}

.pg-cart-popup__button--primary {
  background: #242a16;
  color: #fff;
}

@media (max-width: 767px) {
  .pg-cart-popup__header,
  .pg-cart-popup__body,
  .pg-cart-popup__footer {
    padding: 16px;
  }

  .pg-cart-popup__actions {
    grid-template-columns: 1fr;
  }
}

body.pg-auth-gate-open {
  overflow: hidden;
}

.pg-auth-gate-popup {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  background: rgba(36, 42, 22, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pg-auth-gate-popup.active {
  pointer-events: auto;
  opacity: 1;
}

.pg-auth-gate-popup__dialog {
  position: relative;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 482px;
  height: 100%;
  border-left: 1px solid #e7dfc2;
  background: #fcfcfb;
  box-shadow: -24px 0 80px rgba(36, 42, 22, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.pg-auth-gate-popup.active .pg-auth-gate-popup__dialog {
  transform: translateX(0);
}

.pg-auth-gate-popup__header {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: #fcfaf2;
}

.pg-auth-gate-popup__heading {
  margin: 0;
  padding-right: 40px;
  color: #242a16;
  font-family: "Josefin Sans";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}

.pg-auth-gate-popup__close {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pg-auth-gate-popup__body {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pg-auth-gate-popup__title {
  margin: 0;
  color: #242a16;
  font-family: "Josefin Sans";
  font-size: 18px;
  font-weight: 700;
  line-height: 140%;
}

.pg-auth-gate-popup__copy {
  margin: 8px 0 0;
  color: #4b5040;
  font-family: "Josefin Sans";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}

.pg-auth-gate-popup__section {
  display: flex;
  flex-direction: column;
}

.pg-auth-gate-popup__section .pg-auth-gate-popup__button--primary {
  margin-top: 12px;
}

.pg-auth-gate-popup__divider {
  border-bottom: 1px solid #d8d1b3;
}

.pg-auth-gate-popup__footer {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: #fcfaf2;
}

.pg-auth-gate-popup__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pg-auth-gate-popup__actions--auth {
  margin-top: 4px;
}

.pg-auth-gate-popup__button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 12px 20px;
  text-decoration: none;
  font-family: "Josefin Sans";
  font-size: 16px;
  line-height: 150%;
}

.pg-auth-gate-popup__button--secondary {
  border: 1px solid #cfc9ab;
  color: #242a16;
  background: #faf7e8;
}

.pg-auth-gate-popup__button--primary {
  background: #faf7e8;
  color: #242a16;
}

.pg-auth-gate-popup__button--1 {
  background: #242a16;
  color: #fff;
  border: 1px solid #242a16;
}

.pg-auth-gate-popup__button--2,
.pg-auth-gate-popup__button--3 {
  background: #faf7e8;
  color: #242a16;
  border: 1px solid #cfc9ab;
}

@media (max-width: 767px) {
  .pg-auth-gate-popup__header,
  .pg-auth-gate-popup__body,
  .pg-auth-gate-popup__footer {
    padding: 16px;
  }
}

/* Global WooCommerce notices */
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
  margin: 0 0 16px;
  border: 1px solid #cfc9ab !important;
  border-top-color: #cfc9ab !important;
  border-radius: 4px;
  background: #faf7e8 !important;
  color: #242a16 !important;
  box-shadow: none !important;
  font-family: "Josefin Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-error::before {
  color: #242a16 !important;
}

.woocommerce .woocommerce-info a,
.woocommerce .woocommerce-message a,
.woocommerce .woocommerce-error a {
  color: #242a16 !important;
  text-decoration: underline;
}
