/* DiPrint kalkulator - osvezen izgled (nov 2026). Uklanjanjem <link> reda iz index.php vraca se stari izgled. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');
html, body { background: #fff !important; margin: 0; }
body, body *, .art-PostContent, .art-text, font, .nicefont {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
body { color: #1a1d23; font-size: 15px; padding: 4px 2px; }
#priceCalculationForm { max-width: 100%; }
.printC {
  border: 0 !important;
  border-bottom: 1px solid #e6e8ec !important;
  padding: 16px 0 !important;
}
.printC > b {
  display: block; margin-bottom: 10px;
  font-family: Archivo, Inter, sans-serif !important; font-weight: 800; font-size: 16px; color: #14171c;
}
.printC p { margin: 0; }
table.art-PostContent { border-collapse: separate; border-spacing: 8px; width: 100%; text-align: center !important; }
table.art-PostContent td { vertical-align: top; text-align: center !important; font-size: 13px; color: #4a505a; }
table.art-PostContent td img {
  max-width: 84px; width: 100%; height: auto; display: block; margin: 0 auto 6px;
  border-radius: 10px; padding: 6px; border: 2px solid transparent; transition: border-color .15s;
}
table.art-PostContent td label:hover img { border-color: #e6e8ec; }
input[type=radio] { accent-color: #E30613; width: 18px; height: 18px; cursor: pointer; }
select.art-PostContent, input.art-PostContent[type=text], #amount, #_width, #_height {
  box-sizing: border-box; width: 100%; max-width: 360px;
  padding: 11px 12px !important; border: 1px solid #cfd3d9 !important; border-radius: 10px !important;
  font-size: 15px !important; background: #fff !important; color: #1a1d23 !important; height: auto !important;
}
#_width, #_height { width: 46%; max-width: 170px; margin: 8px 6px 0 0; }
select.art-PostContent:focus, input.art-PostContent:focus { outline: 2px solid #00AEEF; outline-offset: 1px; border-color: #00AEEF !important; }
#priceCalculated { margin-top: 18px; }
#priceCalculated table.art-PostContent { border-spacing: 0 10px; }
#priceCalculated td { text-align: left !important; vertical-align: middle; }
#priceCalculated b { display: block; font-size: 13px; color: #4a505a; margin-bottom: 4px; }
#price, input.art-text {
  box-sizing: border-box; width: 100%; max-width: 240px;
  background: #14171c !important; color: #fff !important; border: 0 !important; border-radius: 10px !important;
  padding: 12px 14px !important; font-family: Archivo, Inter, sans-serif !important; font-weight: 800 !important; font-size: 22px !important;
}
input.coolButton, .coolButton {
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  background: #E30613 !important; color: #fff !important; border: 2px solid #E30613 !important; border-radius: 10px !important;
  padding: 0 22px !important; height: 46px !important; font-weight: 700 !important; font-size: 15px !important;
  cursor: pointer; box-shadow: none !important; white-space: nowrap;
}
input.coolButton:hover, .coolButton:hover { background: #B8050F !important; border-color: #B8050F !important; }
#orderPrint.coolButton { background: #14171c !important; border-color: #14171c !important; }
#orderPrint.coolButton:hover { background: #2b3038 !important; border-color: #2b3038 !important; }
/* ---------- Telefon: sve kolone staju u sirinu ---------- */
@media (max-width: 520px) {
  table.art-PostContent { table-layout: fixed; border-spacing: 3px; }
  table.art-PostContent td { font-size: 10px; line-height: 1.25; letter-spacing: -0.2px; overflow-wrap: break-word; word-break: normal; }
  table.art-PostContent { border-spacing: 1px; }
  table.art-PostContent td img { max-width: 52px; padding: 2px; border-width: 1px; }
  .printC > b { font-size: 15px; }
  #priceCalculated table.art-PostContent, #priceCalculated table.art-PostContent tbody,
  #priceCalculated table.art-PostContent tr, #priceCalculated table.art-PostContent td { display: block; width: 100%; }
  input.coolButton, .coolButton { width: 100%; }
}
/* ---------- Kartice za izbor (dp-ui.js) ---------- */
.dp-opts { display: grid; gap: 10px; margin: 4px 0 2px; }
.dp-opts-printType { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dp-opts-serviceType { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dp-opt {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  padding: 12px 8px 10px; border: 2px solid #e6e8ec; border-radius: 12px; background: #fff;
  cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s;
  min-width: 0; user-select: none;
}
.dp-opt:hover { border-color: #b9bfc8; transform: translateY(-1px); }
.dp-opt input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.dp-opt.is-checked { border-color: #E30613; background: #fff6f6; box-shadow: 0 6px 16px rgba(227, 6, 19, .14); }
.dp-opt.is-checked::after {
  content: ""; position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: #E30613 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.dp-opt:has(input:focus-visible) { outline: 3px solid #00AEEF; outline-offset: 2px; }
.dp-opt.is-disabled { opacity: .4; cursor: not-allowed; transform: none; }
.dp-opt .dp-ikona { display: block; width: 66px; height: 42px; }
.dp-opt .dp-opt-kod { font-family: Archivo, Inter, sans-serif !important; font-weight: 800; font-size: 16px; color: #14171c; line-height: 1; }
.dp-opt .dp-opt-txt { font-size: 12.5px; line-height: 1.3; color: #4a505a; font-weight: 600; }
.dp-opt.is-checked .dp-opt-txt { color: #14171c; }
.dp-opt .dp-opt-img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #f2f3f5; }
.dp-opt .dp-opt-img img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; }

@media (max-width: 640px) {
  .dp-opts { gap: 8px; }
  .dp-opts-printType { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-opts-serviceType { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-opt { flex-direction: row; justify-content: flex-start; text-align: left; padding: 10px; gap: 10px; }
  .dp-opts-printType .dp-opt { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; }
  .dp-opts-printType .dp-ikona { grid-row: 1 / 3; width: 50px; height: 32px; }
  .dp-opts-serviceType .dp-opt-img { width: 44px; flex: none; aspect-ratio: 1; }
  .dp-opt .dp-opt-txt { font-size: 12.5px; }
  .dp-opt.is-checked::after { top: 5px; right: 5px; width: 16px; height: 16px; background-size: 10px; }
}
@media (max-width: 340px) {
  .dp-opts-printType, .dp-opts-serviceType { grid-template-columns: 1fr; }
}
/* Tip stampe - manje slike, prikazane cele */
.dp-opts-serviceType .dp-opt-img { width: 100%; max-width: 120px; aspect-ratio: 1 / 1; background: #fff; border-radius: 8px; }
.dp-opts-serviceType .dp-opt-img img { object-fit: contain !important; }
@media (max-width: 640px) { .dp-opts-serviceType .dp-opt-img { width: 48px; max-width: 48px; } }
/* Tip stampe - nove ikonice */
.dp-opt .dp-ikona-tip { width: 64px; height: 48px; }
.dp-opts-serviceType .dp-opt { justify-content: center; }
@media (max-width: 640px) { .dp-opt .dp-ikona-tip { width: 44px; height: 33px; flex: none; } }