/* BS Tickets — frontend */

/* Atribut hidden mora nadjačati naše display:grid/flex deklaracije,
   inače skrivanje polja uopće ne radi. */
.bstk-form-wrap [hidden],
.bstk-portal [hidden],
#bstk-app [hidden] { display: none !important; }

.bstk-form-wrap {
	--bstk-accent: #1f2b3d;
	--bstk-line: #dfe3e8;
	--bstk-muted: #6b7280;
	max-width: 900px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.55;
}

.bstk-h { margin: 0 0 14px; font-size: 20px; }
.bstk-small { font-size: 13px; color: var(--bstk-muted); }
.bstk-muted { color: var(--bstk-muted); }
.bstk-req { color: #c0392b; }

/* kartice */
.bstk-cards { display: grid; gap: 12px; }
@media (min-width: 720px) { .bstk-cards { grid-template-columns: repeat(3, 1fr); } }

.bstk-card {
	display: block;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 2px solid var(--bstk-line);
	border-radius: 8px;
	padding: 18px;
	cursor: pointer;
	transition: border-color .15s, transform .15s;
}
.bstk-card:hover { border-color: var(--bstk-accent); transform: translateY(-2px); }
.bstk-card-t { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.bstk-card-d { display: block; font-size: 13px; color: var(--bstk-muted); }

/* obavijesti */
.bstk-notice {
	background: #f4f7fb;
	border: 1px solid var(--bstk-line);
	border-left: 4px solid var(--bstk-accent);
	border-radius: 6px;
	padding: 18px 20px;
	margin: 0 0 18px;
}
.bstk-notice-soft { background: #fbfbfc; border-left-color: #9aa5b1; }
.bstk-notice-ok { border-left-color: #2e7d4f; background: #f2f9f5; }

/* polja */
.bstk-row { display: grid; gap: 14px; }
@media (min-width: 720px) { .bstk-row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

.bstk-field { margin: 0 0 14px; }
.bstk-field > label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }

.bstk-field input[type="text"],
.bstk-field input[type="email"],
.bstk-field input[type="tel"],
.bstk-field select,
.bstk-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--bstk-line);
	border-radius: 5px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	box-sizing: border-box;
}
.bstk-field input:focus,
.bstk-field select:focus,
.bstk-field textarea:focus {
	outline: none;
	border-color: var(--bstk-accent);
	box-shadow: 0 0 0 3px rgba(31, 43, 61, .1);
}
.bstk-field input[type="file"] { font-size: 14px; }

.bstk-field input.bstk-readonly {
	background: #f4f5f7;
	color: #4b5563;
	cursor: default;
}

.bstk-hint { display: block; font-size: 12.5px; color: var(--bstk-muted); margin-top: 4px; }
.bstk-hint-ok { color: #2e7d4f; }
.bstk-hint-warn { color: #b26a00; }

/* artikli narudžbe */
.bstk-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	border: 1px solid var(--bstk-line);
	border-radius: 5px;
	margin-bottom: 7px;
	cursor: pointer;
}
.bstk-item:hover { border-color: var(--bstk-accent); }
.bstk-item input { margin-top: 3px; }
.bstk-sku { display: block; font-size: 12.5px; color: var(--bstk-muted); }

/* uploadi */
.bstk-uploads { border-top: 1px solid var(--bstk-line); padding-top: 16px; margin-top: 6px; }
.bstk-uploads-h { font-weight: 600; margin: 0 0 12px; }

/* privole */
.bstk-consents { margin: 18px 0; }
.bstk-consents label {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 13.5px;
	margin-bottom: 9px;
	cursor: pointer;
}
.bstk-consents input { margin-top: 3px; flex: 0 0 auto; }

/* gumbi */
.bstk-btn {
	display: inline-block;
	background: var(--bstk-accent);
	color: #fff;
	border: 1px solid var(--bstk-accent);
	border-radius: 5px;
	padding: 11px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
}
.bstk-btn:hover { opacity: .9; color: #fff; }
.bstk-btn:disabled { opacity: .55; cursor: default; }
.bstk-btn-lg { padding: 13px 30px; font-size: 16px; }
.bstk-btn-sm { padding: 7px 14px; font-size: 13.5px; }
.bstk-btn-ghost { background: transparent; color: var(--bstk-accent); }
.bstk-btn-ghost:hover { background: #eef1f5; color: var(--bstk-accent); }

.bstk-back {
	background: none;
	border: 0;
	color: var(--bstk-muted);
	cursor: pointer;
	padding: 0 0 14px;
	font-size: 14px;
	font-family: inherit;
}
.bstk-back:hover { color: var(--bstk-accent); }

/* greške */
.bstk-error {
	background: #fdf2f2;
	border: 1px solid #f0c2c2;
	border-radius: 5px;
	color: #a02020;
	padding: 12px 15px;
	margin-bottom: 14px;
	font-size: 14px;
}

/* honeypot */
.bstk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------- portal */

.bstk-portal { max-width: 820px; margin: 0 auto; font-size: 15px; line-height: 1.55; }
.bstk-portal-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--bstk-line, #dfe3e8);
	padding-bottom: 12px;
	margin-bottom: 18px;
}
.bstk-badge {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	padding: 4px 11px;
	border-radius: 999px;
	background: #eef1f5;
	color: #33404f;
}
.bstk-badge-open { background: #e6f2ea; color: #226644; }
.bstk-badge-closed { background: #eceff3; color: #5b6674; }

.bstk-thread { margin: 0 0 22px; }
.bstk-msg {
	border: 1px solid #dfe3e8;
	border-radius: 7px;
	padding: 14px 16px;
	margin-bottom: 12px;
	background: #fff;
}
.bstk-msg-agent { background: #f4f7fb; border-color: #d6e0ec; }
.bstk-msg-head {
	font-size: 12.5px;
	color: #6b7280;
	margin-bottom: 7px;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}
.bstk-msg-body p:last-child { margin-bottom: 0; }

.bstk-files { margin-top: 10px; font-size: 13px; }
.bstk-files a { display: inline-block; margin: 0 10px 5px 0; }

.bstk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bstk-table th, .bstk-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #e6e9ed; }
.bstk-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; }
