/* Order form (index.php), on top of ac-tokens.css + ac-base.css. Moved out of index.php on 2026-11-23. */
.ac-wrap { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

/* Page title */
.ac-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.ac-hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ac-account { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--ac-line); border-radius: 14px; font-size: 14px; color: var(--ac-muted); }
.ac-account i { color: var(--ac-blue); }
.ac-account .ac-btn-soft { font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 8px; background: var(--ac-green-tint); }

/* Steps */
.ac-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ac-step-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid var(--ac-line); border-radius: 14px; }
.ac-step-card b { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; background: var(--ac-blue); font-size: 16px !important; color: #fff; display: flex; align-items: center; justify-content: center; }
.ac-step-card div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; color: var(--ac-muted); }
.ac-step-card strong { font-size: 15px; color: var(--ac-ink); }

/* Layout */
.ac-layout-main { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.ac-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ac-side { flex: 1 1 320px; min-width: 0; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }

/* Cards */
.ac-card { background: #fff; border: 1px solid var(--ac-line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.ac-card-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.ac-card-head h2 small { font-weight: 400; font-size: 16px; color: var(--ac-faint); }
@media (max-width: 575px) { .ac-card { padding: 20px 16px; } }

/* Fields */
.ac-row > .ac-field-auto { flex: 0 0 auto; }
.ac-row > .ac-field-grow { flex: 1 1 280px; }
.ac-field-half { max-width: 360px; }
.ac-label { font-size: 14px; font-weight: 600; color: var(--ac-ink); }
.ac-sublabel { font-size: 13px; color: var(--ac-muted); }
.ac-order textarea.ac-input { height: auto; padding: 12px 14px; }
.ac-order .ac-input:focus, .ac-order .ac-qty:focus { border-color: var(--ac-green-dark); box-shadow: 0 0 0 3px rgba(30,127,92,.2); }

/* Choice cards (delivery) */
.ac-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ac-choice { position: relative; margin: 0; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: #fff; border: 2px solid var(--ac-line); }
.ac-choice:hover { border-color: var(--ac-green); }
.ac-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ac-choice.is-selected { background: var(--ac-green-soft); border-color: var(--ac-green-dark); }
.ac-choice:focus-within { box-shadow: 0 0 0 3px rgba(30,127,92,.25); }
.ac-choice-top { display: flex; justify-content: space-between; align-items: center; }
.ac-choice-top i { font-size: 22px; color: var(--ac-blue); }
.ac-radio { width: 20px; height: 20px; border-radius: 999px; border: 2px solid #A0AAB7; background: #fff; }
.ac-choice.is-selected .ac-radio { border: 6px solid var(--ac-green-dark); }
.ac-choice-title { font-size: 16px; font-weight: 600; }
.ac-choice-price { font-size: 15px; font-weight: 700; color: var(--ac-price); }
.ac-choice-desc { font-size: 13.5px; line-height: 1.45; color: var(--ac-muted); }

/* Notes (yellow on the order form) */
.ac-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--ac-warn-bg); color: var(--ac-warn-ink); font-size: 14px; line-height: 1.5; }
.ac-note i { margin-top: 3px; }
.ac-note a { color: var(--ac-warn-ink) !important; font-weight: 600; }

/* Company switch and checkbox */
.ac-switch span.ac-hint { font-size: 14px; color: var(--ac-faint); }
.ac-check { display: flex; gap: 12px; align-items: flex-start; margin: 0; cursor: pointer; }
.ac-check span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ac-faint); }
.ac-check strong { font-size: 15px; color: var(--ac-ink); }

/* File uploader (jquery.fileuploader default theme, restyled) */
.ac-order .fileuploader { background: transparent; padding: 0; margin: 0; }
.ac-order .fileuploader-input { flex-direction: column; align-items: center; gap: 14px; padding: 32px 20px; border: 2px dashed var(--ac-green); border-radius: 16px; background: var(--ac-green-soft); text-align: center; }
.ac-order .fileuploader-input::before { content: "\f093"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 34px; color: var(--ac-blue); }
.ac-order .fileuploader-input .fileuploader-input-caption { align-self: center; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; color: var(--ac-ink); font-size: 16px; font-weight: 600; white-space: normal; }
.ac-order .fileuploader-input .fileuploader-input-button { background: var(--ac-green-dark); border: 0; border-radius: 10px; padding: 12px 22px; color: #fff; font-weight: 600; box-shadow: none; }
.ac-order .fileuploader-input .fileuploader-input-button:hover { background: var(--ac-green-darker); transform: none; }
.ac-order .fileuploader-input.fileuploader-dragging { background: var(--ac-green-tint); border-color: var(--ac-green-dark); border-style: dashed; }
.ac-order .fileuploader-input.fileuploader-dragging .fileuploader-input-button { transform: none; opacity: 1; }
.ac-order .fileuploader-items .fileuploader-item { border: 1px solid var(--ac-line); border-radius: 12px; margin-top: 8px; padding: 12px 14px; }
.ac-upload-limits { font-size: 13px; color: var(--ac-faint); text-align: center; margin-top: -8px; }

/* Print settings blocks (one per group of files) */
.ac-spec { border: 1px solid var(--ac-field); border-radius: 16px; scroll-margin-top: 90px; }
.ac-spec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 20px; background: #F7F9FB; border-bottom: 1px solid var(--ac-line); border-radius: 15px 15px 0 0; }
.ac-spec-head strong { font-size: 16px; }
.ac-spec-sum { flex: 1 1 auto; font-size: 13.5px; color: var(--ac-muted); min-width: 0; }
.ac-link-btn { border: 0; background: none; padding: 6px 8px; min-height: 36px; font-size: 14px; color: #A3282B; cursor: pointer; border-radius: 8px; }
.ac-link-btn:hover { background: #FDECEC; }
.ac-specs-single .ac-spec-remove { display: none; }

/* Collapsed settings block (only with 2 or more blocks): just the head stays visible */
.ac-spec-toggle { color: var(--ac-muted); }
.ac-spec-toggle:hover { background: #EEF1F4; }
.ac-specs-single .ac-spec-toggle { display: none; }
.ac-spec-files { display: none; }
.ac-spec.is-collapsed .ac-spec-body { display: none; }
.ac-spec.is-collapsed .ac-spec-head { border-bottom: 0; border-radius: 15px; cursor: pointer; }
.ac-spec.is-collapsed .ac-spec-files { display: block; margin-top: 2px; color: var(--ac-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ac-spec + .ac-spec { margin-top: 12px; }
.ac-spec-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 24px; }

/* Paper colour dropdown: a normal select can't show colours on every device */
.ac-color { position: relative; }
.ac-order .ac-color-toggle { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; }
.ac-color-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-color-caret { font-size: 12px; color: var(--ac-muted); }
.ac-swatch { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(27,36,48,.25); }
.ac-color-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; min-width: 270px; padding: 10px; background: #fff; border: 1px solid var(--ac-field); border-radius: 12px; box-shadow: 0 10px 28px rgba(27,36,48,.18); }
.ac-color-panel[hidden] { display: none; }
.ac-color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; margin-top: 8px; }
.ac-color-head { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ac-faint); padding: 2px 8px; }
.ac-color-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ac-ink); font-size: 15px; text-align: left; cursor: pointer; }
.ac-color-option:disabled { opacity: .35; cursor: not-allowed; }
.ac-color-option:not(:disabled):hover, .ac-color-option:not(:disabled):focus { background: var(--ac-green-soft); outline: none; border-color: var(--ac-green); }
.ac-color-option.is-selected { border-color: var(--ac-green-dark); background: var(--ac-green-tint); font-weight: 600; }
.ac-chips { display: flex; flex-direction: column; gap: 8px; }
.ac-chips:empty { display: none; }
.ac-chip-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ac-chip-count { font-size: 13px; color: var(--ac-faint); }

/* Chosen files are shown as tiles with a preview under "Welke bestanden?", not in the upload box */
.ac-order .fileuploader-items { display: none; }
.ac-chip-list.ac-file-grid, .ac-chip-list.ac-file-grid.is-many { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.ac-chip-list.ac-file-grid.is-many { max-height: 420px; }
.ac-file-tile { position: relative; min-width: 0; }
.ac-file-tile .ac-chip { display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; max-width: none; padding: 6px; border-radius: 10px; white-space: normal; text-align: left; }
.ac-file-thumb { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 130px; border-radius: 6px; background: #EEF1F4 center / contain no-repeat; color: #B42318; font-size: 28px; }
.ac-file-thumb.has-preview i { display: none; }
.ac-file-pages { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); padding: 3px 10px; border-radius: 0px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 14px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.ac-file-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.25; font-size: 12px; overflow-wrap: anywhere; }
.ac-file-remove { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; padding: 0; border: 1px solid var(--ac-line); border-radius: 50%; background: #fff; color: #B42318; font-size: 12px; cursor: pointer; }
.ac-file-remove:hover { background: #FDECEA; }
.ac-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
/* many files: compact grid in a scroll box */
.ac-chip-list.is-many { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); max-height: 172px; overflow-y: auto; padding: 8px; border: 1px solid var(--ac-line); border-radius: 12px; background: #F7F9FB; }
.ac-chip { font-size: 13px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ac-field); background: #fff; color: var(--ac-ink); cursor: pointer; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.ac-chip-list.is-many .ac-chip { max-width: none; border-radius: 8px; }
/* already picked in another print setting: light green, can still be picked here */
.ac-chip.is-used { background: #DDF3E9; border-color: #9ED9BF; color: #14553D; }
.ac-chip.is-selected { background: var(--ac-green-dark); border-color: var(--ac-green-dark); color: #fff; font-weight: 600; }

/* Options: pills, quantity stepper, layouts */
.ac-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-pill { font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--ac-field); background: #fff; color: var(--ac-ink); cursor: pointer; }
.ac-pill:hover { border-color: var(--ac-green); }
.ac-pill.is-selected { background: var(--ac-green-dark); border-color: var(--ac-green-dark); color: #fff; }
.ac-stepper { display: flex; align-items: stretch; width: max-content; border: 1px solid var(--ac-field); border-radius: 10px; overflow: hidden; }
.ac-step { width: 46px; height: 46px; border: 0; background: #F7F9FB; font-size: 20px; color: var(--ac-ink); cursor: pointer; }
.ac-step:hover { background: var(--ac-green-tint); }
.ac-order .ac-qty { width: 80px; height: 46px; border: 0; border-left: 1px solid var(--ac-field); border-right: 1px solid var(--ac-field); border-radius: 0; text-align: center; font-size: 16px; font-weight: 600; padding: 0 4px; }
.was-validated .ac-qty:invalid { background-image: none; padding-right: 4px; }
/* 8 options: always 2 rows of 4 over the full width */
.ac-layouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ac-layout { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 8px 12px; border-radius: 12px; border: 2px solid var(--ac-line); background: #fff; cursor: pointer; min-width: 0; }
.ac-layout:hover { border-color: var(--ac-green); }
.ac-layout img { height: 96px; width: 100%; object-fit: contain; }
.ac-layout span { font-size: 14px; font-weight: 600; color: var(--ac-ink); }
@media (max-width: 575px) {
  .ac-layouts { gap: 8px; }
  .ac-layout { padding: 10px 4px 8px; }
  .ac-layout img { height: 64px; }
  .ac-layout span { font-size: 12px; }
}
.ac-layout.is-selected { background: var(--ac-green-soft); border-color: var(--ac-green-dark); }

/* "Add a print setting" button */
.ac-add { font-size: 15px; font-weight: 600; color: var(--ac-green-dark); background: #fff; border: 2px dashed var(--ac-green); border-radius: 14px; min-height: 56px; cursor: pointer; }
.ac-add:hover { background: var(--ac-green-soft); }

/* Sidebar */
.ac-summary { background: #fff; border: 1px solid var(--ac-line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.ac-summary h2 { margin: 0; font-size: 18px; font-weight: 700; }
.ac-sum-rows { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.ac-sum-rows div { display: flex; justify-content: space-between; gap: 12px; }
.ac-sum-rows span { color: var(--ac-muted); }
.ac-sum-rows strong { text-align: right; }
.ac-sum-rows .ac-sum-price { padding-top: 12px; border-top: 1px solid var(--ac-line); }
.ac-coupon { display: flex; gap: 8px; }
.ac-coupon .ac-input { flex: 1 1 auto; min-width: 0; }
.ac-order .submit-form { font-size: 17px; font-weight: 700; color: #fff; background: var(--ac-green-dark); border: 0; border-radius: 12px; min-height: 54px; width: 100%; }
.ac-order .submit-form:hover { background: var(--ac-green-darker); }
.ac-order .submit-form.btn-danger { background: #B42318; }
.ac-order .submit-form.btn-success { background: var(--ac-green-darker); }

/* Side cards and form status */
.ac-side-card { background: #fff; border: 1px solid var(--ac-line); border-radius: 18px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ac-muted); }
.ac-side-card strong { color: var(--ac-ink); font-size: 15px; }
.ac-order .valid-label, .ac-order .invalid-label { display: none; margin: 0; font-size: 14px; }
.ac-order .valid-label { color: #28a745; }
.ac-order .invalid-label { color: #dc3545; }
.ac-order .form-status { font-size: 14px; }
