.cp-vial-label {
  --label-ink: #102a45;
  --label-teal: #00796d;
  box-sizing: border-box;
  container-type: inline-size;
  margin: 1.25rem 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  color: var(--label-ink);
}
.cp-vial-label *, .cp-vial-thumbnail * { box-sizing: border-box; }
.cp-vial-caption {
  margin: 0 0 .5rem;
  color: #486071;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.4;
}
.cp-vial-pending {
  padding: .85rem;
  margin: 0;
  background: #edf4f2;
  border: 1px solid #bdcec9;
  overflow-wrap: anywhere;
}
.cp-vial-face {
  position: relative;
  display: grid;
  min-width: 0;
  gap: .8rem;
  padding: 1.1rem 1.6rem 1rem 1.3rem;
  padding: clamp(.85rem, 3.2cqw, 1.5rem) clamp(1.2rem, 4.8cqw, 2.35rem) clamp(.85rem, 3cqw, 1.4rem) clamp(1rem, 4cqw, 2rem);
  border: 1px solid #c4d1d4;
  border-left: .36rem solid var(--label-ink);
  background: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
}
.cp-vial-face::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: .44rem;
  border-left: 1px solid #93c7ba;
  background: #e4f2ed;
}
.cp-vial-logo {
  display: block;
  width: clamp(7.25rem, 32cqw, 10rem);
  max-width: 74%;
  height: auto;
  justify-self: start;
}
.cp-vial-product-name {
  margin: 0;
  padding-top: .7rem;
  border-top: 1px solid #99bdb6;
  font-size: 1.65rem;
  font-size: clamp(1.45rem, 6.6cqw, 2.5rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.cp-vial-product-long {
  font-size: 1.35rem;
  font-size: clamp(1.2rem, 5.1cqw, 2rem);
}
.cp-vial-specification, .cp-vial-sku {
  min-width: 0;
  margin: 0;
  display: grid;
  justify-items: start;
  gap: .16rem;
}
.cp-vial-field {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #486673;
}
.cp-vial-value {
  font-size: 1.12rem;
  font-size: clamp(1.07rem, 4.2cqw, 1.5rem);
  line-height: 1.25;
  font-weight: 600;
  color: var(--label-teal);
  overflow-wrap: anywhere;
}
.cp-vial-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .45rem 1rem;
  padding-top: .65rem;
  border-top: 1px solid #b7c8c9;
}
.cp-vial-notice {
  margin: 0;
  font-size: .89rem;
  line-height: 1.4;
  font-weight: 700;
  text-transform: none;
  overflow-wrap: anywhere;
}
.cp-vial-code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .96rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
@container (max-width: 225px) {
  .cp-vial-face { padding: .7rem 1rem .75rem .75rem; gap: .6rem; }
  .cp-vial-product-name { font-size: 1.3rem; }
  .cp-vial-product-long { font-size: 1.12rem; }
}

.cp-vial-label [hidden], .cp-vial-thumbnail [hidden] { display: none !important; }
.cp-vial-switch {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: .25rem;
  padding: .18rem;
  margin: .45rem 0 .65rem;
  border: 1px solid #b9c9ca;
  border-radius: .35rem;
  background: #fff;
}
.cp-vial-switch-button {
  min-height: 36px;
  padding: .34rem .8rem;
  border: 0;
  border-radius: .22rem;
  background: transparent;
  color: var(--label-ink);
  font: 600 .83rem/1.3 Arial, "Microsoft YaHei", sans-serif;
  cursor: pointer;
}
.cp-vial-switch-button[aria-pressed="true"] { color: #fff; background: var(--label-ink); }
.cp-vial-switch-button:disabled { color: #657579; cursor: default; }
.cp-vial-switch-button:focus-visible { outline: 2px solid var(--label-teal); outline-offset: 2px; }
.cp-vial-photo-stage {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  isolation: isolate;
  overflow: hidden;
  border-radius: .25rem;
  background: #edf2f1;
}
.cp-vial-thumbnail {
  --label-ink: #102a45;
  --label-teal: #00796d;
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  text-align: left;
  overflow: hidden;
  border-radius: .25rem;
}
.cp-vial-thumbnail-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .5rem;
  padding: 1rem;
  border: 1px solid #d5dfdb;
  background: #eff5f2;
  overflow-wrap: anywhere;
}
.cp-vial-thumbnail-brand { font: 600 .74rem/1.25 Arial, sans-serif; color: var(--label-teal); }
.cp-vial-thumbnail-name { font: 640 1.2rem/1.2 Arial, sans-serif; color: var(--label-ink); }
.cp-vial-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cp-vial-photo-overlay {
  position: absolute;
  left: var(--cp-vial-print-left, 29.5%);
  top: var(--cp-vial-print-top, 44.5%);
  width: var(--cp-vial-print-width, 40.5%);
  height: var(--cp-vial-print-height, 36%);
  container-type: size;
  mix-blend-mode: multiply;
}
.cp-vial-photo-overlay .cp-vial-face {
  width: 100%;
  height: 100%;
  padding: 1cqh 2cqw;
  gap: 1.6cqh;
  grid-template-rows: minmax(0, .22fr) minmax(0, .43fr) minmax(0, .18fr) minmax(0, .17fr);
  border: 0;
  background: transparent;
  color: var(--label-ink);
}
.cp-vial-photo-overlay .cp-vial-face::after { display: none; }
.cp-vial-photo-overlay .cp-vial-logo {
  width: auto;
  height: 100%;
  max-width: 52%;
  object-fit: contain;
  object-position: left center;
}
.cp-vial-photo-overlay .cp-vial-product-name {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 1.4cqh 0 0;
  border-top: max(.5px, .35cqw) solid #719d99;
  font-size: min(8.7cqw, 14.5cqh);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.cp-vial-photo-overlay .cp-vial-product-long { font-size: min(6.9cqw, 10.7cqh); }
.cp-vial-photo-overlay .cp-vial-product-short { font-size: min(14cqw, 21cqh); }
.cp-vial-photo-overlay .cp-vial-specification {
  display: flex;
  align-items: center;
}
.cp-vial-photo-overlay .cp-vial-specification .cp-vial-field { display: none; }
.cp-vial-photo-overlay .cp-vial-value { font-size: min(5.85cqw, 10.5cqh); line-height: 1.06; }
.cp-vial-photo-overlay .cp-vial-footer {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  padding-top: .8cqh;
  border-top: max(.5px, .3cqw) solid #9fb2b2;
}
.cp-vial-photo-overlay .cp-vial-notice {
  flex: 1 1 auto;
  font-size: min(4.85cqw, 8.1cqh);
  line-height: 1.16;
}
.cp-vial-photo-overlay .cp-vial-sku { gap: .4cqh; }
.cp-vial-photo-overlay .cp-vial-field { font-size: min(3.45cqw, 5.5cqh); line-height: 1; }
.cp-vial-photo-overlay .cp-vial-code {
  font-size: min(5.7cqw, 8.6cqh);
  line-height: 1;
  letter-spacing: -.02em;
}
