/* =========================================================
   PWC ATC MODAL — 1:1 screenshot look (PWC design applied)
   ========================================================= */

.pwc-atc-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 22px 16px;
  background: rgba(0, 0, 0, .35);
  z-index: 9999;
  overflow: auto;
}

.pwc-atc-overlay.is-open {
  display: flex;
}

.pwc-atc-modal {
  width: min(1100px, 100%);
  background: var(--pwc-white);
  border-radius: 34px;
  box-shadow: 0 35px 110px rgba(0, 0, 0, .35);
  position: relative;
  overflow: hidden;
  max-height: calc(100vh - 44px);
}

.pwc-atc-body {
  max-height: calc(100vh - 44px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 26px 26px;
}

.pwc-atc-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: .95;
}

/* wrapper */
.pwc-atc-wrap {}

/* Title */
.pwc-atc-h {
  text-align: center;
  font-weight: 700;
  font-size: 24px;
  margin: 10px 0 18px;
  color: var(--pwc-text);
}

/* Top product row */
.pwc-atc-top {
  display: grid;
  grid-template-columns: 92px 1fr 140px 150px;
  align-items: center;
  gap: 18px;
  padding: 10px 10px 10px 6px;
}

.pwc-atc-prodimgbox {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwc-atc-prodimg {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}

.pwc-atc-prodtxt {
  min-width: 0;
}

.pwc-atc-prodname {
  font-weight: 700;
  font-size: 16px;
  color: var(--pwc-text);
}

.pwc-atc-prodstock {
  margin-top: 6px;
  color: var(--pwc-success);
  font-weight: 700;
  font-size: 15px;
}

.pwc-atc-prodstock span {
  color: var(--pwc-text-secondary);
  font-weight: 400;
}

.pwc-atc-prodprice {
  justify-self: end;
  font-weight: 700;
  font-size: 16px;
  color: var(--pwc-text);
}

.pwc-atc-prodprice span {
  font-weight: 700;
}

.pwc-atc-qtybox {
  justify-self: end;
  display: grid;
  grid-template-columns: 44px 62px 44px;
  align-items: center;
  height: 54px;
  border: 1px solid var(--pwc-border);
  background: var(--pwc-white);
  border-radius: var(--pwc-r-pill);
}

.pwc-atc-qbtn {
  height: 54px;
  border: 0;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  color: var(--pwc-text);
}

.pwc-atc-qinp {
  height: 54px;
  border: 0;
  outline: 0;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  background: transparent;
  color: var(--pwc-text);
}

/* Shipping */
.pwc-atc-ship {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pwc-atc-shiptext {
  text-align: center;
  font-size: 16px;
  opacity: .8;
}

.pwc-atc-shiptext strong {
  font-weight: 700;
  opacity: 1;
}

.pwc-atc-shipbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
}

.pwc-atc-shipic {
  font-size: 18px;
  opacity: .75;
}

.pwc-atc-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .08);
  overflow: hidden;
  width: 100%;
}

.pwc-atc-barfill {
  height: 100%;
  width: 0%;
  background: var(--pwc-accent);
  border-radius: 999px;
}

/* Actions */
.pwc-atc-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.pwc-atc-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: var(--pwc-text-secondary);
  font-size: 16px;
}

.pwc-atc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--pwc-r-pill);
  background: var(--pwc-accent);
  color: var(--pwc-accent-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: 0;
}

/* Reco heading */
.pwc-atc-recH {
  text-align: center;
  font-weight: 700;
  margin: 32px 0 24px;
  font-size: 24px;

}

/* Reco grid */
.pwc-atc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 0 10px 10px;
}

.pwc-atc-card {
  position: relative;
  text-align: center;
  padding: 0 10px 12px;
}

.pwc-atc-disc {
  position: absolute;
  left: 10px;
  top: 90px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--pwc-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--pwc-accent);
}

.pwc-atc-cardlink {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pwc-atc-cardimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwc-atc-rimg {
  max-width: 210px;
  max-height: 210px;
  object-fit: contain;
  border-radius: var(--pwc-r-sm);
  display: block;
}

.pwc-atc-cardtitle {
  margin-top: 6px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  min-height: 42px;
}

.pwc-atc-cardprice {
  margin-top: 10px;
  font-weight: 700;
  font-size: 15px;
}

.pwc-atc-cardstock {
  margin-top: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--pwc-success);
}

.pwc-atc-cardbtn {
  margin-top: 6px;
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--pwc-r-pill);
  background: var(--pwc-accent);
  color: var(--pwc-black);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 980px) {

  .pwc-atc-top {
    grid-template-columns: 86px 1fr;
    grid-template-rows: auto auto auto;
  }

  .pwc-atc-prodprice {
    justify-self: start;
  }

  .pwc-atc-qtybox {
    justify-self: start;
  }

  .pwc-atc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pwc-atc-body {
    padding: 16px;
  }

  .pwc-atc-actions {
    gap: 18px;
    flex-direction: column;
  }

  .pwc-atc-btn {
    width: 100%;
  }

  .pwc-atc-grid {
    grid-template-columns: 1fr;
  }

  .pwc-atc-cardimg {
    max-height: 180px;
  }

  .pwc-atc-disc {
    top: 70px;
  }
}

.pwc-atc-prodvar {
  font-size: 14px;
  font-weight: 400;
  opacity: .65;
}

.pwc-atc-variant {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  opacity: .65;
}

.pwc-atc-qbtn:disabled {
  opacity: .35;
  cursor: not-allowed;
}