

:root{
  --commerce-document-blue: var(--wp--preset--color--commerce-blue, #265AA6);
  --commerce-document-blue-dark: #173f72;
  --commerce-document-line: var(--wp--preset--color--line, #d9dde1);
  --commerce-document-soft: var(--wp--preset--color--soft, #f4f6f8);
  --commerce-document-text: var(--wp--preset--color--text, #252525);
}

a.commerce-document-link,
a[href$=".pdf" i],
a[href*=".pdf?" i],
a[href*=".pdf#" i]{
  display:inline-flex !important;
  align-items:center !important;
  gap:9px !important;
  width:auto !important;
  max-width:100% !important;
  min-height:40px !important;
  margin:0 !important;
  padding:7px 11px 7px 7px !important;
  border:1px solid #cbd8e8 !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
  color:var(--commerce-document-blue) !important;
  -webkit-text-fill-color:var(--commerce-document-blue) !important;
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:750 !important;
  line-height:1.3 !important;
  letter-spacing:0 !important;
  text-align:left !important;
  text-decoration:none !important;
  text-transform:none !important;
  vertical-align:middle;
  overflow-wrap:anywhere;
  white-space:normal !important;
}

a.commerce-document-link::before,
a[href$=".pdf" i]::before,
a[href*=".pdf?" i]::before,
a[href*=".pdf#" i]::before{
  content:"PDF";
  flex:0 0 auto;
  display:inline-grid;
  place-items:center;
  min-width:36px;
  min-height:26px;
  padding:4px 6px;
  border-radius:0;
  background:var(--commerce-document-blue);
  color:#fff;
  -webkit-text-fill-color:#fff;
  font-size:12px;
  font-weight:850;
  line-height:1;
  letter-spacing:.035em;
}

a.commerce-document-link:hover,
a.commerce-document-link:focus-visible,
a[href$=".pdf" i]:hover,
a[href$=".pdf" i]:focus-visible,
a[href*=".pdf?" i]:hover,
a[href*=".pdf?" i]:focus-visible,
a[href*=".pdf#" i]:hover,
a[href*=".pdf#" i]:focus-visible{
  border-color:var(--commerce-document-blue) !important;
  background:var(--commerce-document-soft) !important;
  color:var(--commerce-document-blue-dark) !important;
  -webkit-text-fill-color:var(--commerce-document-blue-dark) !important;
  text-decoration:none !important;
}

.commerce-document-link__label,
a.commerce-document-link strong,
.commerce-specialist-document strong{
  min-width:0;
  color:inherit !important;
  font:inherit !important;
  overflow-wrap:anywhere;
}

.commerce-specialist-documents,
.commerce-program .commerce-catalogue-documents,
.commerce-program .commerce-catalogue-documents__links,
.commerce-document-list{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:flex-start !important;
  gap:8px !important;
}

.commerce-specialist-documents,
.commerce-program .commerce-catalogue-documents:not(details){
  padding-top:14px !important;
  border-top:1px solid var(--commerce-document-line) !important;
}

.commerce-specialist-documents::before,
.commerce-program .commerce-catalogue-documents:not(details)::before{
  content:"Dokumentacija";
  flex:0 0 100%;
  margin:0 0 2px;
  color:#7b8795;
  font-size:12px;
  font-weight:800;
  line-height:1.25;
  letter-spacing:.06em;
  text-transform:uppercase;
}

details.commerce-catalogue-documents--compact{
  display:block !important;
  margin-top:18px !important;
  padding-top:14px !important;
  border-top:1px solid var(--commerce-document-line) !important;
}

details.commerce-catalogue-documents--compact > summary{
  width:fit-content !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#7b8795 !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.3 !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
  cursor:pointer;
}

details.commerce-catalogue-documents--compact[open] > summary{
  margin-bottom:10px !important;
}

.commerce-specialist-document > span[aria-hidden="true"]:first-child{
  display:none !important;
}

.wp-block-file a[href$=".pdf" i],
.wp-block-file a[href*=".pdf?" i],
.wp-block-file a[href*=".pdf#" i],
.wp-block-button a[href$=".pdf" i],
.wp-block-button a[href*=".pdf?" i],
.wp-block-button a[href*=".pdf#" i]{
  min-height:40px !important;
}

.commerce-quality-policy__pdf-primary .wp-block-button__link[href$=".pdf" i],
.commerce-quality-policy__pdf-primary .wp-block-button__link[href*=".pdf?" i],
.commerce-quality-policy__pdf-primary .wp-block-button__link[href*=".pdf#" i]{
  padding:7px 11px 7px 7px !important;
  background:#fff !important;
  color:var(--commerce-document-blue) !important;
  -webkit-text-fill-color:var(--commerce-document-blue) !important;
  font-size:14px !important;
}

@media (max-width:620px){
  a.commerce-document-link,
  a[href$=".pdf" i],
  a[href*=".pdf?" i],
  a[href*=".pdf#" i]{
    width:100% !important;
  }

  .commerce-specialist-documents,
  .commerce-program .commerce-catalogue-documents__links,
  .commerce-document-list{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
  }
}

html[lang^="en"] .commerce-specialist-documents::before,
html[lang^="en"] .commerce-program .commerce-catalogue-documents:not(details)::before {
  content: "Documentation";
}
