/**
 * MOJA APOTEKA – saglasnost za kolačiće (dizajn „Cookies”).
 */
.ma-ck [hidden] { display: none !important; }
html.ma-ck-lock, html.ma-ck-lock body { overflow: hidden; }
.ma-ck { font-family: var(--ma-font, 'DM Sans', sans-serif); color: #2B2420; }
.ma-ck button { font-family: inherit; cursor: pointer; line-height: 1.2; text-transform: none; letter-spacing: normal; }
.ma-ck button:focus-visible { outline: 2px solid var(--ma-color-orange, #D9620B); outline-offset: 2px; }

/* Traka */
.ma-ck .ma-ck__banner { position: fixed; left: 24px; bottom: 24px; z-index: 99990; width: 460px; max-width: calc(100% - 48px); max-height: calc(100vh - 48px); overflow-y: auto; background: #FFFFFF; border-radius: 24px; padding: 24px; box-sizing: border-box; box-shadow: 0 24px 60px rgba(40,20,5,.28); display: flex; flex-direction: column; gap: 14px; animation: ma-ck-up .3s ease-out; }
@keyframes ma-ck-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.ma-ck .ma-ck__head { display: flex; align-items: center; gap: 12px; }
.ma-ck .ma-ck__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #FBE3CB; display: flex; align-items: center; justify-content: center; }
.ma-ck .ma-ck__head strong { font-size: 19px; letter-spacing: -.3px; color: #241C17; }
.ma-ck .ma-ck__banner p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #4A3F38; }
.ma-ck a.ma-ck__policy { align-self: flex-start; font-size: 13.5px; font-weight: 600; text-decoration: underline; color: #2B2420; }
.ma-ck a.ma-ck__policy:hover { color: #C2560A; }
.ma-ck .ma-ck__two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.ma-ck button.ma-ck__btn { height: 50px; margin: 0; padding: 0 12px; border-radius: 999px; border: 1.5px solid #241C17; background: #FFFFFF; color: #241C17; font-size: 15px; font-weight: 600; }
.ma-ck button.ma-ck__btn:hover, .ma-ck button.ma-ck__btn:focus { background: #F5F0EB; color: #241C17; border-color: #241C17; }
.ma-ck button.ma-ck__btn.is-dark { background: #241C17; color: #FFFFFF; }
.ma-ck button.ma-ck__btn.is-dark:hover, .ma-ck button.ma-ck__btn.is-dark:focus { background: #000000; color: #FFFFFF; }
.ma-ck button.ma-ck__link { height: 44px; margin: 0; padding: 0; border: 0; background: transparent; font-size: 14.5px; font-weight: 600; color: #2B2420; text-decoration: underline; }
.ma-ck button.ma-ck__link:hover, .ma-ck button.ma-ck__link:focus { background: transparent; color: #C2560A; }

/* Prozor postavki */
.ma-ck .ma-ck__modal { position: fixed; inset: 0; z-index: 99995; background: rgba(20,14,10,.5); display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; }
.ma-ck .ma-ck__dialog { width: 640px; max-width: 100%; max-height: 100%; background: #FFFFFF; border-radius: 26px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.ma-ck .ma-ck__mhead { padding: 24px 26px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid #EFE6DD; }
.ma-ck .ma-ck__mhead > div { display: flex; flex-direction: column; gap: 6px; }
.ma-ck .ma-ck__mhead strong { font-size: 22px; letter-spacing: -.3px; color: #241C17; }
.ma-ck .ma-ck__mhead span { font-size: 14px; line-height: 1.55; color: #4A3F38; }
.ma-ck button.ma-ck__x { flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 999px; border: 0; background: #F1ECE7; color: #241C17; font-size: 16px; }
.ma-ck button.ma-ck__x:hover { background: #E8DDD2; color: #241C17; }
.ma-ck .ma-ck__cats { flex: 1; overflow-y: auto; padding: 8px 26px; overscroll-behavior: contain; }
.ma-ck .ma-ck__cat { border-bottom: 1px solid #EFE6DD; padding: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.ma-ck .ma-ck__cat:last-child { border-bottom: 0; }
.ma-ck .ma-ck__row { display: flex; align-items: center; gap: 14px; }
.ma-ck button.ma-ck__toggle { flex: 1; margin: 0; border: 0; background: transparent; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 3px; color: #241C17; min-height: 44px; justify-content: center; }
.ma-ck button.ma-ck__toggle:hover, .ma-ck button.ma-ck__toggle:focus { background: transparent; color: #241C17; }
.ma-ck .ma-ck__ct { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.ma-ck .ma-ck__chev { display: inline-block; transition: transform .2s; color: #6B5D53; }
.ma-ck button[aria-expanded="true"] .ma-ck__chev { transform: rotate(180deg); }
.ma-ck .ma-ck__cd { font-size: 13.5px; line-height: 1.5; color: #4A3F38; font-weight: 400; }
.ma-ck .ma-ck__always, .ma-ck-policy .ma-ck__always { flex: none; font-size: 12.5px; font-weight: 700; color: #1F6F5C; background: #E6F0EC; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.ma-ck .ma-ck__switch { flex: none; position: relative; width: 52px; height: 30px; cursor: pointer; margin: 0; }
.ma-ck .ma-ck__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ma-ck .ma-ck__switch input + span { position: absolute; inset: 0; border-radius: 999px; background: #D9CCBF; transition: background .2s; pointer-events: none; }
.ma-ck .ma-ck__switch input + span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.ma-ck .ma-ck__switch input:checked + span { background: #1F6F5C; }
.ma-ck .ma-ck__switch input:checked + span::after { left: 25px; }
.ma-ck .ma-ck__switch input:focus-visible + span { outline: 2px solid var(--ma-color-orange, #D9620B); outline-offset: 2px; }
.ma-ck .ma-ck__table, .ma-ck-policy .ma-ck__table { border: 1px solid #EFE6DD; border-radius: 14px; overflow: hidden; font-size: 13px; }
.ma-ck .ma-ck__tr, .ma-ck-policy .ma-ck__tr { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 10px; padding: 10px 14px; border-top: 1px solid #EFE6DD; color: #2B2420; }
.ma-ck .ma-ck__tr > span:first-child, .ma-ck-policy .ma-ck__tr > span:first-child { font-weight: 600; word-break: break-all; }
.ma-ck .ma-ck__tr.is-head, .ma-ck-policy .ma-ck__tr.is-head { border-top: 0; background: #FBF7F3; font-weight: 700; color: #4A3F38; }
.ma-ck .ma-ck__foot { padding: 18px 26px 22px; display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid #EFE6DD; background: #FBF7F3; }
.ma-ck .ma-ck__foot button.ma-ck__btn { flex: 1 1 140px; }

/* Poslije izbora */
.ma-ck .ma-ck__done { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 99980; background: #241C17; color: #FFFFFF; border-radius: 16px; padding: 14px 20px; font-size: 14.5px; box-shadow: 0 16px 40px rgba(0,0,0,.25); max-width: calc(100% - 48px); text-align: center; }
.ma-ck button.ma-ck__fab { position: fixed; left: 24px; bottom: 24px; z-index: 99970; width: 52px; height: 52px; margin: 0; padding: 0; border-radius: 999px; border: 0; background: #FFFFFF; box-shadow: 0 8px 24px rgba(40,20,5,.2); display: flex; align-items: center; justify-content: center; }
.ma-ck button.ma-ck__fab:hover { background: #FBE3CB; }

/* Politika kolačića ([ma_cookie_table]) */
.ma-ck-policy { display: flex; flex-direction: column; gap: 20px; font-family: var(--ma-font); }
.ma-ck-policy .ma-ck-policy__cat { display: flex; flex-direction: column; gap: 8px; }
.ma-ck-policy h3 { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; font-weight: 700; color: #241C17; }
.ma-ck-policy p { margin: 0; }
button.ma-ck-open-btn { height: 46px; margin: 0; padding: 0 20px; border-radius: 999px; border: 1.5px solid #241C17; background: transparent; color: #241C17; font-family: var(--ma-font); font-size: 14.5px; font-weight: 600; cursor: pointer; }
button.ma-ck-open-btn:hover, button.ma-ck-open-btn:focus { background: #241C17; color: #FFFFFF; }

@media (max-width: 767px) {
	.ma-ck .ma-ck__banner { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; padding: 20px; border-radius: 22px; }
	.ma-ck .ma-ck__modal { padding: 0; align-items: flex-end; }
	.ma-ck .ma-ck__dialog { border-radius: 22px 22px 0 0; max-height: 92vh; }
	.ma-ck .ma-ck__mhead { padding: 20px 18px 14px; }
	.ma-ck .ma-ck__cats { padding: 4px 18px; }
	.ma-ck .ma-ck__foot { padding: 14px 18px 18px; }
	.ma-ck .ma-ck__tr, .ma-ck-policy .ma-ck__tr { grid-template-columns: 1fr; gap: 2px; }
	.ma-ck .ma-ck__tr.is-head, .ma-ck-policy .ma-ck__tr.is-head { display: none; }
	/* Iznad donje navigacije na mobitelu. */
	.ma-ck button.ma-ck__fab { left: 12px; bottom: 84px; width: 46px; height: 46px; }
	.ma-ck .ma-ck__done { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
	.ma-ck .ma-ck__banner { animation: none; }
	.ma-ck .ma-ck__switch input + span, .ma-ck .ma-ck__switch input + span::after, .ma-ck .ma-ck__chev { transition: none; }
}
@media print { .ma-ck { display: none !important; } }

/* Kad je na mobitelu prikazana fiksna traka za kupovinu, dugme postavki kolačića ide iznad nje (0.39.6) */
@media (max-width: 782px) {
	html.ma-sbar-on .ma-ck button.ma-ck__fab { bottom: var(--ma-sbar-lift, 160px); }
	html.ma-sbar-on .ma-ck .ma-ck__done { bottom: var(--ma-sbar-lift, 160px); }
}
