/* Standalone checkout follows the blue payment reference, independent of store themes. */
body.cashier-page {
  background: #3563fc;
  min-height: 100vh;
  min-height: 100dvh;
}
.cashier-page > .site-header,
.cashier-page > .site-footer,
.cashier-page > .support-launcher,
.cashier-page > .telegram-launcher {
  display: none;
}
.cashier-page #app.page-width {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.cashier-frame {
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 24px;
  color: #293345;
  font-size: 14px;
  line-height: 1.6;
  color-scheme: light;
}
.cashier-heading {
  text-align: center;
  color: #fff;
  margin-bottom: 26px;
}
.cashier-total {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.cashier-total > img,
.cashier-total > span {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  object-fit: contain;
  display: block;
}
.cashier-total > span {
  display: grid;
  place-items: center;
  color: #fff;
}
.cashier-total strong {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
.cashier-total small {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}
.cashier-heading p {
  margin: 13px 0 0;
  color: #e2e8ff;
}
.cashier-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 12px 42px #163b9d18;
}
.cashier-summary {
  margin: 0 0 20px;
}
.cashier-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
}
.cashier-summary dt {
  font-weight: 400;
  color: #737c89;
  flex-shrink: 0;
}
.cashier-summary dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}
.cashier-summary strong {
  font-weight: 650;
}
.cashier-status {
  color: #b8700c;
  font-weight: 500;
}
.cashier-status.is-success {
  color: #13856a;
}
.cashier-method {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}
.cashier-method img {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
.cashier-copy {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  color: #3563fc;
  background: none;
  border: 0;
  padding: 6px;
  border-radius: 5px;
}
.cashier-copy:hover {
  background: #edf2ff;
}
.cashier-notice {
  background: #fff6e4;
  color: #946313;
  padding: 12px 14px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 22px;
}
.cashier-copy-feedback {
  color: #3563fc;
  text-align: center;
  font-size: 12px;
  margin: 8px 0 0;
}
.cashier-copy-feedback:empty {
  display: none;
}
.cashier-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 100%;
  border: 1px solid #3563fc;
  border-radius: 28px;
  padding: 11px 16px;
  background: #3563fc;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cashier-button:hover {
  background: #254fdf;
  color: #fff;
}
.cashier-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cashier-button:focus-visible,
.cashier-copy:focus-visible,
.cashier-proof-button:focus-visible,
.cashier-close:focus-visible {
  outline: 3px solid #99b1ff;
  outline-offset: 3px;
}
.cashier-countdown {
  margin: 15px 0 8px;
  text-align: center;
  font-size: 13px;
  color: #c93d47;
  font-variant-numeric: tabular-nums;
}
.cashier-help {
  margin: 12px 0;
  text-align: center;
  color: #7b8392;
  font-size: 12px;
  line-height: 1.8;
}
.cashier-state-note {
  border-radius: 8px;
  background: #f3f6fc;
  padding: 14px;
  text-align: left;
}
.cashier-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 12px;
}
.cashier-links a,
.cashier-links button,
.cashier-back {
  color: #3563fc;
}
.cashier-links button {
  border: 0;
  padding: 0;
  background: none;
}
.cashier-brand {
  text-align: center;
  color: #d8e2ff;
  margin: 20px 0 0;
  font-size: 12px;
}
.cashier-delivery {
  margin-top: 24px;
}
.cashier-delivery h2 {
  font-size: 16px;
  margin: 0 0 12px;
}
.cashier-delivery pre {
  padding: 15px;
  background: #f3f6fc;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-family: inherit;
  max-height: 380px;
  overflow: auto;
}
body.cashier-dialog-open {
  overflow: hidden;
}
.cashier-dialog {
  width: min(410px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #293345;
  background: #fff;
  box-shadow: 0 24px 90px #03163e40;
  font-size: 13px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cashier-dialog::backdrop {
  background: #061333b5;
}
.cashier-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: #f7f8fc;
  border-bottom: 1px solid #e5e9f0;
  position: sticky;
  top: 0;
  z-index: 1;
}
.cashier-dialog-heading h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.cashier-close {
  background: none;
  border: 0;
  color: #697183;
  padding: 4px;
  line-height: 1;
}
.cashier-dialog-body {
  padding: 18px;
}
.cashier-dialog-body > label {
  color: #7b8392;
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}
.cashier-copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid #e2e6ed;
  border-radius: 4px;
  padding: 7px 10px;
  min-height: 40px;
}
.cashier-copy-field small {
  font-weight: 400;
  font-size: 12px;
}
.cashier-address {
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: 12px;
}
.cashier-warning {
  color: #c43b45;
  font-size: 12px;
  margin: 6px 0 12px;
  line-height: 1.6;
}
.cashier-qr {
  display: block;
  width: 180px;
  height: 180px;
  padding: 8px;
  border: 1px solid #eef1f6;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  margin: 18px auto 12px;
}
.cashier-proof-button {
  display: block;
  width: auto;
  margin: 12px auto 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  color: #7b8392;
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}
.cashier-proof-button:hover {
  color: #3563fc;
  background: #f4f6fc;
}
.cashier-proof-heading {
  text-align: center;
}
.cashier-proof-heading > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 14px;
  color: #3563fc;
  background: #edf2ff;
}
.cashier-proof-heading h1 {
  font-size: 22px;
  font-weight: 650;
  margin: 0 0 10px;
}
.cashier-proof-heading p {
  font-size: 13px;
  color: #737c89;
  margin: 0 0 20px;
}
.cashier-proof-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: #f4f6fb;
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.cashier-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 22px 12px;
  border: 1px dashed #bccbf9;
  background: #f8faff;
  border-radius: 10px;
  cursor: pointer;
}
.cashier-upload-icon {
  color: #3563fc;
}
.cashier-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.cashier-upload.has-image {
  padding: 10px;
  border-style: solid;
}
.cashier-upload.has-image .cashier-upload-placeholder {
  display: none;
}
.cashier-upload:focus-within {
  outline: 3px solid #bccbf9;
  outline-offset: 3px;
}
.cashier-upload strong {
  font-size: 14px;
  font-weight: 600;
}
.cashier-upload-placeholder > span:not(.cashier-upload-icon) {
  font-size: 11px;
  color: #7b8392;
  text-align: center;
}
.cashier-preview {
  display: block;
  width: 100%;
  text-align: center;
}
.cashier-preview[hidden] {
  display: none;
}
.cashier-preview img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 230px;
  border-radius: 7px;
  object-fit: contain;
}
.cashier-preview span {
  display: block;
  color: #737c89;
  font-size: 12px;
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.cashier-preview .cashier-preview-change {
  color: #3563fc;
  margin-top: 4px;
}
.cashier-back {
  display: block;
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
}
.cashier-page .loading-state {
  width: min(520px, calc(100% - 32px));
  margin: 80px auto;
}
.cashier-page .support-panel {
  z-index: 1100;
}
@media (max-width: 575px) {
  .cashier-frame {
    padding-top: 26px;
  }
  .cashier-card {
    padding: 20px;
    border-radius: 14px;
  }
  .cashier-total strong {
    font-size: 26px;
  }
  .cashier-total > img,
  .cashier-total > span {
    width: 54px;
    height: 54px;
  }
  .cashier-summary > div {
    gap: 14px;
    padding: 11px 0;
  }
}
