/* Sipariş formu — tutarlı tipografi ve dikey ritim */
.ocf {
  --ocf-gap-field: 1.25rem;
  --ocf-gap-label: 0.5rem;
  --ocf-gap-inner: 0.625rem;
  --ocf-text: 1.1875rem;
  --ocf-text-label: 1.3125rem;
  --ocf-text-title: 2rem;
  --ocf-text-sm: 1.0625rem;
  --ocf-leading: 1.55;
  --ocf-leading-tight: 1.4;

  display: block;
  background: #f5f4fb;
  border-radius: 14px;
  padding: 1.375rem 1.375rem;
  margin: 1rem 0;
  font-family: var(--font-body-family, inherit);
  color: #2c2d2e;
  font-size: var(--ocf-text);
  line-height: var(--ocf-leading);
}

.ocf__title {
  font-size: var(--ocf-text-title);
  font-weight: 700;
  line-height: var(--ocf-leading-tight);
  color: #4d407a;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  margin: 0 0 var(--ocf-gap-field) 0;
}

.ocf__field {
  margin-bottom: var(--ocf-gap-field);
}
.ocf__field:last-child {
  margin-bottom: 0;
}

.ocf__label {
  display: block;
  font-size: var(--ocf-text-label);
  font-weight: 600;
  line-height: var(--ocf-leading-tight);
  margin-bottom: var(--ocf-gap-label);
  color: #2c2d2e;
}

.ocf__req {
  color: #e44;
  margin-left: 0.25rem;
  font-size: 1em;
  font-weight: 700;
}

.ocf__input {
  width: 100%;
  background: #fff;
  border: 1.5px solid #d8d4ea;
  border-radius: 10px;
  padding: 0.75rem 0.875rem;
  font-size: var(--ocf-text);
  line-height: var(--ocf-leading-tight);
  font-family: inherit;
  color: #2c2d2e;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.ocf__input:focus {
  outline: none;
  border-color: #645893;
  box-shadow: 0 0 0 3px rgba(100, 88, 147, 0.12);
}

.ocf__input::placeholder {
  color: #b8b5c8;
}

.ocf__textarea {
  resize: vertical;
  min-height: 5.5rem;
  font-size: var(--ocf-text);
  line-height: var(--ocf-leading);
}

.ocf__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23645893' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.25rem;
}

.ocf__counter {
  text-align: right;
  font-size: var(--ocf-text-sm);
  line-height: var(--ocf-leading-tight);
  color: #8a86a0;
  margin-top: var(--ocf-gap-inner);
}

.ocf__radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--ocf-gap-inner);
}

.ocf__radio-row {
  display: flex;
  flex-direction: column;
  gap: var(--ocf-gap-inner);
}

.ocf__radio {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  background: #fff;
  border: 1.5px solid #d8d4ea;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: var(--ocf-text);
  line-height: var(--ocf-leading);
}

.ocf__check-group {
  display: flex;
  flex-direction: column;
  gap: var(--ocf-gap-inner);
}

.ocf__check-row {
  display: flex;
  flex-direction: column;
  gap: var(--ocf-gap-inner);
}

.ocf__check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  background: #fff;
  border: 1.5px solid #d8d4ea;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: var(--ocf-text);
  line-height: var(--ocf-leading);
}

.ocf__check:has(input:checked) {
  border-color: #645893;
  background: #efe7ff;
}

.ocf__check input {
  accent-color: #645893;
  transform: scale(1.12);
  flex-shrink: 0;
}

.ocf__check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  flex-wrap: wrap;
}

.ocf__check-reveal {
  margin-left: 0;
  margin-top: 0.125rem;
}

.ocf__check-reveal[hidden] {
  display: none;
}

.ocf__reveal-files {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}

@media (min-width: 540px) {
  .ocf__reveal-files {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ocf__reveal-files--single {
  grid-template-columns: 1fr;
}

@media (min-width: 540px) {
  .ocf__reveal-files--single {
    grid-template-columns: 1fr;
  }
}

.ocf__dropzone--mini {
  padding: 0.625rem 0.5rem;
  gap: 0.25rem;
}

.ocf__dropzone-btn--mini {
  padding: 0.25rem 0.625rem;
  font-size: 0.95rem;
}

.ocf__radio:has(input:checked) {
  border-color: #645893;
  background: #efe7ff;
}

.ocf__radio input {
  accent-color: #645893;
  transform: scale(1.15);
  flex-shrink: 0;
}

.ocf__radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  flex-wrap: wrap;
}

.ocf__chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--ocf-gap-inner);
}

.ocf__chip {
  cursor: pointer;
}

.ocf__chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ocf__chip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ocf-gap-inner);
  padding: 0.75rem 0.5rem;
  background: #fff;
  border: 1.5px solid #d8d4ea;
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.ocf__chip:has(input:checked) .ocf__chip-card {
  border-color: #645893;
  background: #efe7ff;
}

.ocf__chip-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

.ocf__chip-label {
  font-size: var(--ocf-text);
  font-weight: 600;
  line-height: var(--ocf-leading-tight);
}

.ocf__price-badge {
  display: inline-block;
  font-size: var(--ocf-text-sm);
  font-weight: 700;
  line-height: var(--ocf-leading-tight);
  color: #4d407a;
  background: #fff8e7;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-left: 0.35rem;
  white-space: nowrap;
  border: 1px solid #fdae38;
}

.ocf__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ocf-gap-inner);
  padding: 1.125rem 1rem;
  background: #fff;
  border: 2px dashed #645893;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}

.ocf__dropzone:hover,
.ocf__dropzone.is-drag {
  background: #efe7ff;
}

.ocf__dropzone.is-error {
  border-color: #e44;
}

.ocf__file {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.ocf__dropzone-btn {
  display: inline-block;
  background: #efe7ff;
  color: #4d407a;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: var(--ocf-text);
  line-height: var(--ocf-leading-tight);
}

.ocf__dropzone-hint {
  font-size: var(--ocf-text-sm);
  line-height: var(--ocf-leading);
  color: #8a86a0;
  text-align: center;
}

.ocf__file-name {
  font-size: var(--ocf-text-sm);
  color: #279a4b;
  font-weight: 600;
  margin-top: 0.25rem;
  word-break: break-word;
  text-align: center;
  line-height: var(--ocf-leading-tight);
}

.ocf__html-heading {
  font-size: var(--ocf-text-label);
  font-weight: 600;
  line-height: var(--ocf-leading-tight);
  margin: 0 0 var(--ocf-gap-label) 0;
  color: #2c2d2e;
}

.ocf__html {
  font-size: var(--ocf-text);
  line-height: var(--ocf-leading);
  color: #374151;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.ocf__field--html .ocf__html {
  margin: 0;
}

.ocf__html.rte > :first-child {
  margin-top: 0;
}

.ocf__html.rte > :last-child {
  margin-bottom: 0;
}

.ocf__html.rte p {
  margin: 0 0 0.5em;
}

.ocf__html.rte p:last-child {
  margin-bottom: 0;
}

.ocf__html.rte a {
  color: #645893;
}

.ocf__dialog-trigger {
  display: inline-block;
  background: none;
  border: none;
  padding: 0.125rem 0;
  margin: 0;
  color: #645893;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  font-size: var(--ocf-text-label);
  font-weight: 600;
  line-height: var(--ocf-leading);
  text-align: left;
}

.ocf__dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  height: fit-content;
  max-height: min(90vh, 720px);
  margin: auto;
  border: none;
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.375rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #2c2d2e;
  font-size: var(--ocf-text);
  line-height: var(--ocf-leading);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.ocf__dialog::backdrop {
  background: rgba(44, 45, 46, 0.5);
}

.ocf__dialog h4 {
  margin: 0 0 0.75rem 0;
  padding-right: 2rem;
  color: #4d407a;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: var(--ocf-leading-tight);
}

.ocf__dialog-body {
  font-size: var(--ocf-text);
  line-height: var(--ocf-leading);
}

.ocf__dialog-body p {
  margin: 0 0 0.65em;
}

.ocf__dialog-body p:last-child {
  margin-bottom: 0;
}

.ocf__dialog-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: none;
  border: none;
  font-size: 1.625rem;
  line-height: 1;
  cursor: pointer;
  color: #645893;
  padding: 0.25rem;
}

.ocf__dialog-confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: var(--ocf-gap-field);
  font-size: var(--ocf-text);
  line-height: var(--ocf-leading);
}

.ocf__dialog-confirm input {
  transform: scale(1.2);
  accent-color: #645893;
  margin-top: 0.2em;
  flex-shrink: 0;
}

.ocf__error {
  color: #e44;
  font-size: var(--ocf-text-sm);
  font-weight: 500;
  line-height: var(--ocf-leading-tight);
  margin-top: var(--ocf-gap-inner);
}

.ocf__field.is-error .ocf__input,
.ocf__field.is-error .ocf__radio,
.ocf__field.is-error .ocf__chip-card {
  border-color: #e44;
}

.ocf__total {
  margin-top: var(--ocf-gap-field);
  padding: 0.75rem 1rem;
  background: #fff8e7;
  border-radius: 10px;
  font-size: var(--ocf-text-label);
  font-weight: 600;
  line-height: var(--ocf-leading-tight);
  text-align: right;
  border: 1px solid #fdae38;
}

.ocf__total strong {
  color: #c62a32;
  font-weight: 700;
  font-size: 1.375rem;
}
