.checkout-open{display:block;width:100%;margin:12px 0;background:#176b9b;border-radius:9px;padding:12px;color:#fff;cursor:pointer}
.checkout-no-scroll{overflow:hidden}
.checkout-backdrop{position:fixed;inset:0;z-index:9999;background:rgba(11,31,48,.65);display:flex;align-items:center;justify-content:center;padding:15px}
.checkout-backdrop.hidden{display:none!important}
.checkout-modal{width:min(610px,100%);max-height:90vh;overflow:auto;border-radius:17px;background:white;box-shadow:0 20px 80px rgba(0,0,0,.25)}
.checkout-head{position:sticky;top:0;background:#17384f;color:white;display:flex;align-items:center;justify-content:space-between;padding:14px 20px;z-index:1}
.checkout-head h2{font-size:19px;margin:0;color:white}.checkout-close{background:transparent;color:white;border:0;font-size:29px;line-height:1;cursor:pointer}
.checkout-body{padding:22px}.checkout-body h3{font-size:16px;margin:10px 0 14px;color:#17384f}
.checkout-summary{background:#edf5fb;padding:15px;border-radius:10px;margin-bottom:20px}.checkout-summary h3{margin:0 0 10px}
.checkout-info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:8px 0;border-bottom:1px solid #dbe8ef;overflow-wrap:anywhere}.checkout-info-row span{color:#577083}.checkout-info-row strong{text-align:right;font-weight:600}
.checkout-note,.checkout-disclaimer,.checkout-warning{font-size:12px;color:#607b8e;line-height:1.6}
.checkout-choices{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 15px}.checkout-choice{flex:1;min-width:110px;background:white;border:1px solid #bdd5e5;border-radius:9px;color:#176b9b;padding:12px;cursor:pointer}
.checkout-choice.selected{background:#176b9b;color:white;border-color:#176b9b}.checkout-payment{background:#f3f9fd;border:1px solid #d8e9f2;border-radius:12px;padding:17px;display:flex;flex-direction:column;align-items:stretch;gap:8px}
.checkout-payment .checkout-info-row{width:100%}.checkout-address{overflow-wrap:anywhere;text-align:center}.checkout-qr{align-self:center;background:#fff;padding:8px;border-radius:9px;max-width:100%;height:auto}
.checkout-copy{background:#176b9b;color:white;border-radius:8px;padding:11px;cursor:pointer}.checkout-error{color:#a91c1c}
@media(max-width:480px){.checkout-body{padding:14px}.checkout-head{padding:13px}.checkout-info-row{font-size:12px}.checkout-choice{font-size:12px}}

/* ONLINE PRICE PUBLIC CHECKOUT V1 */

.checkout-save-area {
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #d5e4ef;
}

.checkout-create {
  display:block;
  width:100%;
  padding:15px;
  border:0;
  border-radius:10px;
  background:#147db7;
  color:white;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}

.checkout-create:disabled {
  opacity:.6;
  cursor:default;
}

.checkout-save-message {
  margin-top:14px;
  overflow-wrap:anywhere;
}

.checkout-created {
  padding:16px;
  border:1px solid #b8d8eb;
  border-radius:12px;
  background:#eef7fd;
}

.checkout-created h3 {
  margin-top:0;
  color:#17648b;
}

.checkout-access-code {
  padding:12px;
  border-radius:8px;
  background:#fff;
  font-family:monospace;
  font-size:12px;
  line-height:1.6;
  overflow-wrap:anywhere;
}


/* ONLINE PRICE SUCCESS DESIGN V2 */

.checkout-success {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid #bfdfd0;
  border-radius: 16px;
  background: #f5fbf8;
  text-align: center;
}

.checkout-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 28px;
  font-weight: 800;
}

.checkout-success h3 {
  margin: 0;
  color: #17384f;
  font-size: 21px;
}

.checkout-success-description {
  margin: 0;
  color: #52758c;
  font-size: 13px;
  line-height: 1.5;
}

.checkout-success-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px;
  border: 1px solid #d4e4f3;
  border-radius: 12px;
  background: white;
}

.checkout-success-label {
  color: #648198;
  font-size: 12px;
  font-weight: 600;
}

.checkout-success-number {
  color: #176b9b;
  font-size: 24px;
  letter-spacing: .5px;
  overflow-wrap: anywhere;
}

.checkout-success-code {
  color: #17384f;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
}

.checkout-success-summary {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  text-align: left;
}

.checkout-success-copy {
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-radius: 10px;
  background: #147db7;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.checkout-success-copy:hover {
  background: #0e6a9f;
}

.checkout-success-copy.copied {
  background: #15803d;
}

/* ONLINE PRICE MOBILE CHECKOUT V2 */

@media (max-width: 600px) {

  .checkout-backdrop {
    padding: 10px;
    align-items: center;
  }

  .checkout-modal {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    overflow: hidden;
    border-radius: 15px;
  }

  .checkout-head {
    position: relative;
    flex-shrink: 0;
    padding: 14px 16px;
  }

  .checkout-head h2 {
    font-size: 18px;
  }

  .checkout-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
  }

  .checkout-summary {
    padding: 12px;
    margin-bottom: 12px;
  }

  .checkout-summary h3 {
    margin-bottom: 6px;
  }

  .checkout-summary .checkout-info-row {
    padding: 6px 0;
  }

  .checkout-body h3 {
    margin: 12px 0 10px;
  }

  .checkout-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 12px;
  }

  .checkout-choice {
    width: 100%;
    min-width: 0;
    min-height: 45px;
    padding: 10px 7px;
    font-size: 13px;
    line-height: 1.3;
  }

  .checkout-choice:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .checkout-payment {
    min-width: 0;
    padding: 12px;
    gap: 7px;
  }

  .checkout-address {
    font-size: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .checkout-qr {
    box-sizing: border-box;
    width: auto;
    max-width: min(224px, 100%);
    height: auto;
  }

  .checkout-disclaimer {
    margin: 10px 0;
  }

  /* Закреплённая кнопка оформления */

  .checkout-save-area {
    position: sticky;
    bottom: -14px;
    z-index: 3;
    margin: 12px -14px -14px;
    padding: 12px 14px;
    border-top: 1px solid #d4e4ef;
    background: #fff;
    box-shadow: 0 -5px 16px rgba(20,70,110,.09);
  }

  .checkout-create {
    min-height: 48px;
    font-size: 15px;
  }

  .checkout-save-message {
    margin-top: 7px;
    font-size: 12px;
  }
}
