#cartbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: calc(100% - 32px);
  max-width: 448px;
  background: var(--blD);
  color: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(79, 111, 146, 0.3);
  z-index: 40;
}
#cartbar[hidden] {
  display: none;
}
#cartbar span {
  display: flex;
  align-items: center;
  gap: 8px;
}
#toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -20px);
  background: var(--tx);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 99px;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.25s;
  z-index: 60;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mbtn {
  flex: 1;
  padding: 13px;
  border-radius: 14px;
  font-weight: 800;
  text-align: center;
}
#m-cust .cu {
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 40px);
  overflow: hidden;
}
.cu-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.cu-n {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.cu-p {
  color: var(--pkD);
  font-weight: 800;
  font-size: 15px;
  margin-top: 3px;
}
.cu-x {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f3f6;
  border: none;
  color: var(--tx2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cu-b {
  overflow-y: auto;
  padding: 4px 20px 16px;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.cu-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
}
.cu-s {
  margin-top: 14px;
}
.cu-b > .cu-s:first-child {
  margin-top: 8px;
}
.cu-l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 8px;
}
.cu-ch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.oc {
  padding: 8px 14px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid #e3e6ec;
  color: var(--tx2);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.oc small {
  font-size: 11.5px;
  color: var(--mu);
  font-weight: 500;
}
.oc.on {
  background: var(--pk);
  border-color: #f3ccda;
  color: var(--pkD);
  font-weight: 600;
}
.oc.on small {
  color: var(--pkD);
}
.oc.m i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid #cdd3dc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.oc.m i svg {
  width: 11px;
  height: 11px;
}
.oc.m.on {
  background: var(--bl);
  border-color: #c9d6e4;
  color: var(--blD);
}
.oc.m.on small {
  color: var(--blD);
}
.oc.m.on i {
  background: var(--blD);
  border-color: var(--blD);
  color: #fff;
}
.acc {
  margin-top: 14px;
  border: 1px solid #e3e6ec;
  border-radius: 14px;
  background: #fff;
}
.acc-h {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx2);
}
.acc-h span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.acc-h em {
  font-style: normal;
  color: var(--mu);
  font-weight: 500;
}
.acc-h svg {
  width: 16px;
  height: 16px;
  color: var(--mu);
  transition: transform 0.2s;
}
.acc.open .acc-h svg {
  transform: rotate(180deg);
}
.cnt {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--bl);
  color: var(--blD);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.acc-b {
  display: none;
  padding: 0 14px 14px;
}
.acc.open .acc-b {
  display: block;
}
.cu-b textarea {
  width: 100%;
  border: 1px solid #e3e6ec;
  border-radius: 16px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--tx);
  resize: none;
  outline: none;
  background: #fff;
}
.cu-b textarea:focus {
  border-color: #b9c8d8;
}
.cu-b textarea::placeholder {
  color: #aeb3bb;
}
.cu-ft {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.stp {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bl);
  border-radius: 99px;
  padding: 4px;
}
.stp button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--blD);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qn {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  color: var(--blD);
}
.cu-add {
  flex: 1;
  padding: 14px 12px;
  border-radius: 99px;
  background: var(--pkD);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  white-space: nowrap;
}
.mi {
  cursor: pointer;
}
.ph {
  padding: 4px;
}
.ph img {
  padding: 0 !important;
  border-radius: 10px;
}
.ci .th {
  padding: 3px;
}
.ci .th img {
  padding: 0 !important;
  border-radius: 9px;
}
.mi.na {
  opacity: 0.55;
}
.hb {
  font-size: 11px;
  font-weight: 600;
  color: var(--mu);
  background: #f1f3f6;
  padding: 2px 8px;
}
body.closed .pill {
  background: #f1f3f6;
  color: var(--mu);
}
body.closed .pill i {
  background: #c9cdd3;
}
.nt {
  position: relative;
}
.nc {
  position: absolute;
  right: 12px;
  bottom: 9px;
  font-size: 11px;
  color: var(--mu);
  pointer-events: none;
}
.cu-b textarea {
  padding-bottom: 24px;
}
.oc.fx {
  background: #f8f9fc;
  border-color: #eef0f4;
  color: var(--mu);
  font-weight: 600;
  cursor: default;
}
.acts .ib.hi {
  color: var(--tx2);
}
.acts .ib.bl {
  color: var(--blD) !important;
}
.acts .ib.pkc {
  color: var(--pkD) !important;
}
.acts [hidden] {
  display: none !important;
}
.hd-l {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.hd {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
}
.hd-t {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.hd-t img {
  max-height: 22px;
  max-width: 90px;
  object-fit: contain;
}
.hd-dt {
  font-size: 12px;
  color: var(--mu);
}
.hd-it {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--tx2);
  line-height: 1.5;
}
.hd-it span {
  color: var(--mu);
}
.hd-f {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e3e6ec;
}
.hd-f b {
  color: var(--tx);
  font-size: 14.5px;
}
.hd-btn {
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--pk);
  color: var(--pkD);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#m-hist .modal {
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 40px);
  overflow: hidden;
}
#m-hist .hh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
#m-hist .hh h3 {
  font-size: 18px;
  font-weight: 800;
}
#m-hist .hb {
  overflow-y: auto;
  padding: 4px 16px 16px;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
#notif {
  position: fixed;
  top: 10px;
  left: 50%;
  width: calc(100% - 20px);
  max-width: 440px;
  transform: translate(-50%, -140%);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2),
    opacity 0.3s;
  opacity: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(46, 52, 64, 0.14);
  padding: 12px 14px;
  cursor: pointer;
}
#notif.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
#notif[hidden] {
  display: none;
}
.nf-t {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mu);
}
.nf-t .bi {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--pk);
  color: var(--pkD);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nf-t em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: auto;
}
.nf-x {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f3f6;
  color: var(--tx2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}
.nf-b {
  margin-top: 6px;
  padding-left: 27px;
}
.nf-b b {
  display: block;
  font-size: 14.5px;
  color: var(--tx);
}
.nf-b span {
  font-size: 13px;
  color: var(--tx2);
}

/* Home stats: one card, 3 columns */
.stats {
  margin-top: 26px;
}
.stats .h2 .st-by {
  color: #b0587a;
}
.stats .h2 .hrt {
  color: #b0587a;
  font-size: 0.85em;
}
.st-one {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(46, 52, 64, 0.05);
  padding: 12px 0;
}
.st-one > div {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 6px;
}
.st-one > div + div {
  border-left: 1px solid var(--line);
}
.st-one b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #4f6f92;
  white-space: nowrap;
}
.st-one small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--mu);
}
