/*
 * FDigital B2B – stilovi u prodavnici (registracija firme, B2B obaveštenja, oznake).
 * Boje se uzimaju iz promenljivih teme --ag-* ako postoje (Agrooprema), inače podrazumevane.
 */
.ag-vat { font-size: .72em; font-weight: 500; color: var(--ag-muted, #777); }
.ag-b2b-flash { background: var(--ag-primary, #1e73be) !important; }

.ag-b2b {
	container-type: inline-size;
	max-width: 1100px;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.6;
}
.ag-b2b > .ag-b2b__intro,
.ag-b2b > .ag-b2b__form,
.ag-b2b > .ag-b2b__box { margin: 0; }
.ag-b2b {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 32px;
	align-items: start;
	padding-bottom: 20px;
}
.ag-b2b__intro {
	background: linear-gradient(140deg, var(--ag-primary-dark, #155a96), var(--ag-primary, #1e73be));
	color: rgba(255, 255, 255, .9);
	border-radius: 10px;
	padding: 32px;
	border-bottom: 6px solid var(--ag-accent, #81d742);
}
.ag-b2b__intro h1,
.ag-b2b__intro .ag-b2b__title { color: #fff; margin: 0; line-height: 1.25; font-size: 30px; font-weight: 800; padding-bottom: 10px; }
.ag-b2b__intro > p:not(.ag-eyebrow) { font-size: 15px; line-height: 1.7; margin: 0; }
.ag-b2b__steps { list-style: none !important; padding: 0 !important; margin: 22px 0 0 !important; display: grid; gap: 12px; }
.ag-b2b__steps li { display: flex; align-items: center; gap: 12px; padding: 0 !important; font-weight: 600; color: #fff; }
.ag-b2b__steps strong {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	color: var(--ag-primary, #1e73be);
	display: grid;
	place-items: center;
}
.ag-b2b__form,
.ag-b2b__box {
	background: #fff;
	border: 1px solid var(--ag-line, #e5e5e5);
	border-radius: 10px;
	padding: 28px;
}
.ag-b2b__box--ok { border-color: var(--ag-accent, #81d742); box-shadow: inset 4px 0 0 var(--ag-accent, #81d742); }
.ag-b2b__form h2,
.ag-b2b__box h2 { font-size: 18px; font-weight: 700; padding-bottom: 14px; }
.ag-b2b__box p { padding-bottom: 16px; margin: 0; font-size: 15px; }
.ag-b2b__form h2,
.ag-b2b__box h2 { margin: 0; line-height: 1.3; }
.ag-b2b__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 20px; }
.ag-b2b__grid .ag-wide { grid-column: 1 / -1; }
.ag-field { padding: 0 !important; margin: 0 !important; display: grid; gap: 5px; align-content: end; }
.ag-field label { font-size: 13px; line-height: 1.35; font-weight: 600; color: #555; }
.ag-field input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 10px 12px;
	font-size: 14px;
	background: #fff;
	color: var(--ag-ink, #222);
}
.ag-field input:focus { outline: none; border-color: var(--ag-primary, #1e73be); box-shadow: 0 0 0 3px rgba(30, 115, 190, .15); }
.ag-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ag-b2b__form button.ag-btn { border: 0; cursor: pointer; }
.ag-b2b__note { font-size: 13px; color: var(--ag-muted, #777); padding: 14px 0 0 !important; margin: 0 !important; }
.ag-b2b__preview { background: #fff8e1; border: 1px solid #f0d58a; color: #6b4e00; border-radius: 6px; padding: 10px 14px; margin-bottom: 18px; font-size: 13.5px; }
.ag-b2b__form button[disabled] { opacity: .55; cursor: not-allowed; }
.ag-b2b__note a { color: var(--ag-primary, #1e73be); }
.ag-b2b__errors {
	background: #fdf0ed;
	border: 1px solid #f1c2b5;
	color: #8a2208;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 18px;
	font-size: 13.5px;
}
.ag-b2b__errors ul { margin: 6px 0 0 18px !important; padding: 0 !important; }

@media (max-width: 980px) {
	.ag-b2b { grid-template-columns: 1fr; }
}
/* kad je sadržaj stranice uzak (blok teme), kolone idu jedna ispod druge */
@container (max-width: 760px) {
	.ag-b2b__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.ag-b2b__grid { grid-template-columns: 1fr; }
	.ag-b2b__intro, .ag-b2b__form, .ag-b2b__box { padding: 22px 18px; }
}


.ag-b2b .ag-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; margin: 0 0 8px; color: rgba(255, 255, 255, .8); }
.ag-b2b__form button { cursor: pointer; }

/* B2B status u „Moj nalog“ i obaveštenje u prodavnici */
.fdb2b-status { border: 1px solid var(--ag-line, #e5e5e5); border-left: 4px solid var(--ag-primary, #1e73be); border-radius: 6px; padding: 14px 18px; margin: 0 0 20px; background: #fff; }
.fdb2b-status--ok { border-left-color: var(--ag-accent, #81d742); }
.fdb2b-status--wait { border-left-color: #f0b429; }
.fdb2b-status p { margin: 6px 0 0; }
.fdb2b-notice { background: #eef5fc; border: 1px solid #cfe2f5; border-radius: 6px; padding: 10px 14px; margin: 0 0 18px; font-size: 14px; }

.ag-req { color: #c5310d; font-weight: 700; }
.ag-b2b__req-note { font-size: 13px; color: var(--ag-muted, #777); margin: -6px 0 16px !important; padding: 0 !important; }
.ag-field--bad label { color: #a02708; }
.ag-field--bad input { border-color: #c5310d !important; background: #fdf6f4 !important; }
.ag-b2b__form :user-invalid { border-color: #c5310d; }
#fdb2b-forma { scroll-margin-top: 90px; }
