/* FOTO imago – Photo Print Ordering. Svi stilovi su ograničeni na .fipo-app / .fipo-prices / .fipo-status. */
.fipo-app,
.fipo-prices,
.fipo-status {
	--fipo-ink: #111;
	--fipo-ink-2: #3a3a3a;
	--fipo-muted: #737373;
	--fipo-line: #e4e4e4;
	--fipo-bg: #fff;
	--fipo-soft: #f5f5f5;
	--fipo-green: #1a8f4c;
	--fipo-yellow: #c98a00;
	--fipo-red: #c62828;
	--fipo-radius: 14px;
	color: var(--fipo-ink);
	font-size: 16px;
	line-height: 1.45;
	text-align: left;
}
.fipo-app *,
.fipo-app *::before,
.fipo-app *::after,
.fipo-status *,
.fipo-prices * {
	box-sizing: border-box;
}
.fipo-app { background: var(--fipo-bg); max-width: 1080px; margin: 0 auto; }
.fipo-app ul, .fipo-app ol { list-style: none; margin: 0; padding: 0; }
.fipo-app li { margin: 0; }
.fipo-app p { margin: 0 0 .75em; }
.fipo-app img { max-width: none; border-radius: 0; box-shadow: none; }
.fipo-app .fipo-muted { color: var(--fipo-muted); }
.fipo-app .fipo-small { font-size: 13px; }
.fipo-app .fipo-center { text-align: center; margin: 16px 0; }
.fipo-app .fipo-num { text-align: right; white-space: nowrap; }
.fipo-app .fipo-ico { flex: none; vertical-align: -3px; }

/* Gumbi */
.fipo-app .fipo-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--fipo-ink);
	background: var(--fipo-ink); color: #fff; font: inherit; font-weight: 600; line-height: 1; cursor: pointer;
	text-decoration: none; text-transform: none; letter-spacing: 0; box-shadow: none;
	transition: transform .12s ease, background-color .15s ease, opacity .15s ease;
}
.fipo-app .fipo-btn:hover { background: #000; color: #fff; }
.fipo-app .fipo-btn:active { transform: scale(.98); }
.fipo-app .fipo-btn:disabled { opacity: .4; cursor: not-allowed; }
.fipo-app .fipo-btn--ghost { background: transparent; color: var(--fipo-ink); border-color: var(--fipo-line); }
.fipo-app .fipo-btn--ghost:hover { background: var(--fipo-soft); color: var(--fipo-ink); }
.fipo-app .fipo-btn--small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.fipo-app .fipo-btn:focus-visible,
.fipo-app button:focus-visible,
.fipo-app select:focus-visible,
.fipo-app input:focus-visible { outline: 2px solid var(--fipo-ink); outline-offset: 2px; }
.fipo-app .fipo-link { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 14px; color: var(--fipo-ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; box-shadow: none; min-height: 0; }
.fipo-app .fipo-link:hover { color: #000; text-decoration: underline; background: none; }
.fipo-app .fipo-link--danger:hover { color: var(--fipo-red); }
.fipo-app .fipo-iconbtn { background: none; border: 0; padding: 8px; border-radius: 50%; cursor: pointer; color: var(--fipo-ink); line-height: 0; box-shadow: none; min-height: 0; }
.fipo-app .fipo-iconbtn:hover { background: var(--fipo-soft); color: var(--fipo-ink); }

/* Koraci */
.fipo-app .fipo-steps { display: flex; gap: 4px; margin: 0 0 20px; padding: 0; counter-reset: none; }
.fipo-app .fipo-steps__item { flex: 1 1 0; min-width: 0; }
.fipo-app .fipo-steps__item button {
	width: 100%; background: none; border: 0; border-top: 3px solid var(--fipo-line); padding: 10px 2px 0; font: inherit; color: var(--fipo-muted);
	display: flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; border-radius: 0; box-shadow: none; min-height: 0; text-transform: none; letter-spacing: 0;
}
.fipo-app .fipo-steps__item button:hover { background: none; color: var(--fipo-ink); }
.fipo-app .fipo-steps__item button:disabled { cursor: default; color: var(--fipo-muted); opacity: 1; }
.fipo-app .fipo-steps__item.is-current button,
.fipo-app .fipo-steps__item.is-done button { border-top-color: var(--fipo-ink); color: var(--fipo-ink); }
.fipo-app .fipo-steps__num { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.fipo-app .fipo-steps__item.is-current .fipo-steps__num,
.fipo-app .fipo-steps__item.is-done .fipo-steps__num { background: var(--fipo-ink); color: #fff; border-color: var(--fipo-ink); }
.fipo-app .fipo-steps__label { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fipo-app .fipo-body { min-height: 240px; padding-bottom: 16px; }
.fipo-app .fipo-anim { animation: fipo-in .22s ease both; }
@keyframes fipo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.fipo-app .fipo-alert { display: flex; gap: 8px; align-items: flex-start; background: #fff8e1; border: 1px solid #f1d58a; color: #4a3800; border-radius: var(--fipo-radius); padding: 12px 14px; margin: 0 0 16px; font-size: 15px; }
.fipo-app .fipo-alert--block { display: block; }
.fipo-app .fipo-alert--block p { margin-bottom: 8px; }
.fipo-app .fipo-loading { padding: 60px 0; text-align: center; color: var(--fipo-muted); }
.fipo-app .fipo-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--fipo-line); border-top-color: var(--fipo-ink); border-radius: 50%; animation: fipo-spin .7s linear infinite; vertical-align: -3px; }
.fipo-app .fipo-spinner--light { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes fipo-spin { to { transform: rotate(360deg); } }

/* Korak 1 */
.fipo-app .fipo-drop { border: 2px dashed #cfcfcf; border-radius: 20px; padding: 36px 18px; text-align: center; background: var(--fipo-soft); transition: border-color .15s, background-color .15s; margin-bottom: 20px; }
.fipo-app .fipo-drop.is-over { border-color: var(--fipo-ink); background: #ededed; }
.fipo-app .fipo-drop__title { font-size: 22px; font-weight: 700; margin: 8px 0 4px; }
.fipo-app .fipo-drop .fipo-btn { margin: 10px 0 12px; }

.fipo-app .fipo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.fipo-app .fipo-grid--crop { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: start; }
.fipo-app .fipo-card { min-width: 0; }
.fipo-app .fipo-card__img { position: relative; aspect-ratio: 1 / 1; background: var(--fipo-soft); border-radius: var(--fipo-radius); overflow: hidden; }
.fipo-app .fipo-card__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fipo-app .fipo-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--fipo-muted); font-weight: 700; letter-spacing: .05em; }
.fipo-app .fipo-card__del { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(17,17,17,.72); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; min-height: 0; box-shadow: none; }
.fipo-app .fipo-card__del:hover { background: #000; color: #fff; }
.fipo-app .fipo-card__progress { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 12px; }
.fipo-app .fipo-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); overflow: hidden; margin-bottom: 4px; }
.fipo-app .fipo-bar i { display: block; height: 100%; background: #fff; transition: width .2s linear; }
.fipo-app .fipo-card__err { position: absolute; inset: 0; background: rgba(255,255,255,.93); display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; padding: 10px; text-align: center; font-size: 13px; color: var(--fipo-red); }
.fipo-app .fipo-card__meta { padding: 6px 2px 0; font-size: 13px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fipo-app .fipo-card__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Izrez */
.fipo-app .fipo-crop { position: relative; width: 100%; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--fipo-line), 0 2px 8px rgba(0,0,0,.08); }
.fipo-app .fipo-crop img { position: absolute; display: block; max-width: none; max-height: none; user-select: none; -webkit-user-drag: none; pointer-events: none; transform-origin: center; }
.fipo-app .fipo-card__crop { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; aspect-ratio: 1 / 1; padding: 12px; background: var(--fipo-soft); border: 0; border-radius: var(--fipo-radius); cursor: pointer; box-shadow: none; min-height: 0; }
.fipo-app .fipo-card__crop:hover { background: #ececec; }
.fipo-app .fipo-card__crop .fipo-crop,
.fipo-app .fipo-row__thumb .fipo-crop { flex: none; }
.fipo-app .fipo-card__edit { position: absolute; right: 8px; bottom: 8px; background: rgba(17,17,17,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }

.fipo-app .fipo-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fipo-app .fipo-badge i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.fipo-app .fipo-badge--green { color: var(--fipo-green); } .fipo-app .fipo-badge--green i { background: var(--fipo-green); }
.fipo-app .fipo-badge--yellow { color: var(--fipo-yellow); } .fipo-app .fipo-badge--yellow i { background: var(--fipo-yellow); }
.fipo-app .fipo-badge--red { color: var(--fipo-red); } .fipo-app .fipo-badge--red i { background: var(--fipo-red); }

/* Korak 2 */
.fipo-app .fipo-select,
.fipo-app .fipo-input {
	height: 42px; border: 1.5px solid var(--fipo-line); border-radius: 10px; background: #fff; color: var(--fipo-ink); font: inherit; font-size: 15px; padding: 0 10px; min-width: 0; max-width: 100%; box-shadow: none; margin: 0; width: auto;
}
.fipo-app .fipo-input--qty { width: 76px; }
.fipo-app .fipo-check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 15px; margin: 0; }
.fipo-app .fipo-check input,
.fipo-app .fipo-row__pick input { width: 20px; height: 20px; margin: 0; accent-color: var(--fipo-ink); flex: none; }
.fipo-app .fipo-bulk { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--fipo-soft); border-radius: var(--fipo-radius); margin-bottom: 14px; position: sticky; top: 0; z-index: 5; }
.fipo-app .fipo-bulk__fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fipo-app .fipo-rows { display: flex; flex-direction: column; gap: 10px; }
.fipo-app .fipo-row { display: flex; gap: 12px; padding: 10px; border: 1.5px solid var(--fipo-line); border-radius: var(--fipo-radius); transition: border-color .15s; }
.fipo-app .fipo-row.is-selected { border-color: var(--fipo-ink); }
.fipo-app .fipo-row__pick { display: flex; gap: 10px; align-items: center; cursor: pointer; flex: none; margin: 0; }
.fipo-app .fipo-row__thumb { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; background: var(--fipo-soft); border-radius: 8px; padding: 5px; }
.fipo-app .fipo-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fipo-app .fipo-row__name { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; min-width: 0; }
.fipo-app .fipo-row__name > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fipo-app .fipo-row__fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fipo-app .fipo-row__actions { display: flex; gap: 16px; }
.fipo-app .fipo-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--fipo-line); border-radius: 10px; height: 42px; overflow: hidden; background: #fff; }
.fipo-app .fipo-qty button { width: 40px; height: 100%; border: 0; background: none; color: var(--fipo-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 0; box-shadow: none; min-height: 0; }
.fipo-app .fipo-qty button:hover { background: var(--fipo-soft); color: var(--fipo-ink); }
.fipo-app .fipo-qty button:disabled { opacity: .3; }
.fipo-app .fipo-qty input { width: 46px; height: 100%; border: 0; text-align: center; font: inherit; font-weight: 600; padding: 0; background: none; color: var(--fipo-ink); -moz-appearance: textfield; appearance: textfield; box-shadow: none; margin: 0; border-radius: 0; }
.fipo-app .fipo-qty input::-webkit-outer-spin-button,
.fipo-app .fipo-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Korak 4 */
.fipo-app .fipo-table { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 15px; border: 0; background: none; }
.fipo-app .fipo-table th,
.fipo-app .fipo-table td { padding: 10px 6px; border: 0; border-bottom: 1px solid var(--fipo-line); background: none; vertical-align: top; text-align: left; }
.fipo-app .fipo-table th.fipo-num, .fipo-app .fipo-table td.fipo-num { text-align: right; }
.fipo-app .fipo-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--fipo-muted); font-weight: 600; }
.fipo-app .fipo-table tfoot td { border-bottom: 0; }
.fipo-app .fipo-total td { font-size: 19px; font-weight: 700; border-top: 2px solid var(--fipo-ink); }

/* Donja traka */
.fipo-app .fipo-footer { position: sticky; bottom: 0; z-index: 6; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--fipo-line); }
.fipo-app .fipo-footer__sum { display: flex; flex-direction: column; min-width: 0; }
.fipo-app .fipo-footer__nav { display: flex; gap: 8px; flex: none; }

/* Editor */
.fipo-app .fipo-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; animation: fipo-fade .15s ease both; }
@keyframes fipo-fade { from { opacity: 0; } to { opacity: 1; } }
.fipo-app .fipo-modal__box { background: #fff; width: min(680px, 100%); max-height: 100%; overflow: auto; border-radius: 20px; padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.fipo-app .fipo-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; min-width: 0; }
.fipo-app .fipo-modal__head > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fipo-app .fipo-stage { background: #e9e9e9; border-radius: var(--fipo-radius); padding: 18px; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.fipo-app .fipo-stage__paper { width: 100%; touch-action: none; }
.fipo-app .fipo-stage__paper.is-draggable { cursor: grab; }
.fipo-app .fipo-stage__paper.is-draggable:active { cursor: grabbing; }
.fipo-app .fipo-stage .fipo-crop { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.fipo-app .fipo-editor__info { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; }
.fipo-app .fipo-editor__zoom { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.fipo-app .fipo-editor__zoom input { flex: 1; accent-color: var(--fipo-ink); min-width: 0; margin: 0; padding: 0; height: 28px; }
.fipo-app .fipo-tools { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.fipo-app .fipo-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border: 1.5px solid var(--fipo-line); background: #fff; color: var(--fipo-ink); border-radius: 12px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 2px; box-shadow: none; text-transform: none; letter-spacing: 0; }
.fipo-app .fipo-tool:hover { background: var(--fipo-soft); color: var(--fipo-ink); }
.fipo-app .fipo-tool.is-active { background: var(--fipo-ink); color: #fff; border-color: var(--fipo-ink); }
.fipo-app .fipo-modal__foot { display: flex; justify-content: space-between; gap: 8px; }

@media (max-width: 640px) {
	.fipo-app .fipo-steps__label { display: none; }
	.fipo-app .fipo-steps__item.is-current { flex: 4 1 0; }
	.fipo-app .fipo-steps__item.is-current .fipo-steps__label { display: inline; }
	.fipo-app .fipo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.fipo-app .fipo-grid--crop { grid-template-columns: repeat(2, 1fr); }
	.fipo-app .fipo-drop { padding: 26px 14px; }
	.fipo-app .fipo-bulk { position: static; }
	.fipo-app .fipo-bulk__fields { width: 100%; }
	.fipo-app .fipo-bulk__fields .fipo-select { flex: 1 1 40%; }
	.fipo-app .fipo-row__fields .fipo-select { flex: 1 1 120px; }
	.fipo-app .fipo-footer { flex-direction: column; align-items: stretch; gap: 8px; }
	.fipo-app .fipo-footer__nav .fipo-btn--primary { flex: 1; padding: 0 12px; }
	.fipo-app .fipo-modal { align-items: stretch; }
	.fipo-app .fipo-modal__box { border-radius: 0; width: 100%; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
	.fipo-app .fipo-stage { padding: 12px; flex: 1; }
	.fipo-app .fipo-tools { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.fipo-app .fipo-anim, .fipo-app .fipo-modal, .fipo-app .fipo-btn { animation: none; transition: none; }
}

/* Cjenik i status (shortcodeovi) */
.fipo-prices table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.fipo-prices th, .fipo-prices td { padding: 10px 8px; border-bottom: 1px solid var(--fipo-line); text-align: left; }
.fipo-prices th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--fipo-muted); }
.fipo-prices td:last-child, .fipo-prices th:last-child { text-align: right; white-space: nowrap; }
.fipo-prices del { color: var(--fipo-muted); margin-right: 6px; }
.fipo-status { max-width: 460px; }
.fipo-status__form { display: flex; flex-direction: column; gap: 10px; }
.fipo-status__form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.fipo-status__form input { height: 44px; border: 1.5px solid var(--fipo-line); border-radius: 10px; padding: 0 12px; font: inherit; }
.fipo-status__form button { height: 46px; border-radius: 999px; border: 0; background: var(--fipo-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.fipo-status__result { margin-top: 12px; min-height: 1.5em; }
.fipo-status__result.is-error { color: var(--fipo-red); }
