.yoo-payment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: center;
  gap: 44px;
  margin: 22px 0 48px;
  padding: 24px 32px 24px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.yoo-payment-copy {
  min-width: 0;
}
.yoo-payment-copy .eyebrow {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
}
.yoo-payment-copy h2 {
  margin: 16px 0 18px;
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -1.35px;
}
.yoo-payment-copy h2 span {
  display: block;
  color: var(--red);
}
.yoo-payment-copy > p {
  max-width: 480px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.yoo-payment-card {
  min-width: 0;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.yoo-payment-provider a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.yoo-payment-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.yoo-payment-field {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.yoo-payment-field input,
.yoo-payment-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 6px;
  padding: 9px 12px;
  border: 1px solid #dcd9de;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  box-sizing: border-box;
}
.yoo-payment-field textarea {
  resize: vertical;
  min-height: 70px;
}
.yoo-payment-field input::placeholder,
.yoo-payment-field textarea::placeholder {
  color: #92929b;
}
.yoo-payment-comment {
  margin-top: 6px;
  border-bottom: 1px solid var(--line);
}
.yoo-payment-comment summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 8px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.yoo-payment-comment summary::-webkit-details-marker {
  display: none;
}
.yoo-payment-comment summary > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.yoo-payment-comment summary::after {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: -3px 3px 0;
  border-right: 1.5px solid var(--red);
  border-bottom: 1.5px solid var(--red);
  transform: rotate(45deg);
}
.yoo-payment-comment[open] summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}
.yoo-payment-comment .yoo-payment-field {
  padding: 0 0 14px;
}
.yoo-payment-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.yoo-payment-confirm input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--red);
}
.yoo-payment-checkout {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.yoo-payment-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.yoo-payment-total span {
  color: var(--muted);
  font-size: 12px;
}
.yoo-payment-total strong {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.yoo-payment-card .yoo-payment-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  font-size: 15px;
}
.yoo-payment-card .yoo-payment-submit:disabled,
.yoo-payment-card .yoo-payment-submit:disabled:hover {
  cursor: not-allowed;
  transition: none;
  opacity: 1;
  background: #ececef;
  border-color: #ececef;
  color: #93939c;
  box-shadow: none;
}
.yoo-payment-card .yoo-payment-feedback {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.yoo-payment-feedback:empty {
  display: none;
}
.yoo-payment-provider {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.yoo-payment-provider img {
  flex-shrink: 0;
  width: 76px;
  height: auto;
}
.yoo-payment-card .yoo-payment-privacy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.yoo-payment-privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.yoo-payment :is(input, textarea, button, a, summary):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
@media (max-width: 1000px) {
  .yoo-payment {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    gap: 28px;
    padding: 24px;
  }
  .yoo-payment-copy h2 {
    font-size: 38px;
  }
}
@media (max-width: 760px) {
  .yoo-payment {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 16px 0 36px;
    padding: 24px 20px 20px;
    border-radius: var(--radius);
  }
  .yoo-payment-copy h2 {
    margin: 16px 0 12px;
    font-size: 34px;
  }
  .yoo-payment-copy > p {
    font-size: 15px;
    line-height: 1.55;
  }
  .yoo-payment-card {
    padding: 20px;
    border-radius: var(--radius);
  }
  .yoo-payment-confirm {
    font-size: 13px;
  }
  .yoo-payment-provider {
    gap: 8px;
  }
}
@media (max-width: 420px) {
  .yoo-payment {
    padding: 22px 14px 14px;
  }
  .yoo-payment-card {
    padding: 18px 16px;
  }
  .yoo-payment-copy h2 {
    font-size: 32px;
  }
  .yoo-payment-comment summary {
    font-size: 13px;
  }
  .yoo-payment-comment summary > span {
    font-size: 11px;
  }
}

/* Both methods share the amount, email and confirmation above. */
.yoo-payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.yoo-payment-methods .yoo-payment-submit {
  font-size: 14px;
  padding: 12px 10px;
  min-width: 0;
  white-space: normal;
}
@media (max-width: 420px) {
  .yoo-payment-methods {
    grid-template-columns: 1fr;
  }
}
