/*
www.devsaran.com
*/

/* =Reset
-------------------------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  border: 0;
  font-family: inherit;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
  margin: 0;
  outline: 0;
  padding: 0;
  /* vertical-align: baseline;*/
}

/* remember to define focus styles! */
:focus {
  outline: 0;
}
body {
  background: #fff;
  line-height: 1;
}
ol, ul {
  list-style: none;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
  border-collapse: separate;
  border-spacing: 0;
}
caption, th, td {
  font-weight: normal;
  text-align: left;
}

blockquote, q {
  quotes:none;
  border: 1px solid #bbbbbb;
  background: #d8d8d8 url(images/quote.png) no-repeat;
  padding: 10px 5px 5px 47px;
  text-shadow: 1px 1px #fff;
  margin: 5px 0;
  border-radius: 7px;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content:'';
  content:none;
}
code {
  background: #d8d8d8;
  text-shadow: 1px 1px #fff;
  border: 1px solid #bbbbbb;
  display: block;
  padding: 7px;
  margin: 5px 0;
  border-radius: 7px;
}
a img {
  border: 0;
}

/* Block elements */
header, hgroup, footer, section, article, aside {
  display: block;
}

/* Body, Common Classes & Wrap */

body {
  background: #fff;
  font-size: 13px;
  line-height: 1.7em;
  color: #555;
  font-family: Helvetica Neue, Arial, Helvetica, sans-serif;
}
a {
  text-decoration: none;
  color: #47c0c0;
}
a:hover {
  text-decoration: none;
  color: #2e8484;
}
p { margin: 0 0 1em }
strong { font-weight: 700 }
em { font-style: italic }
pre{
  margin: 20px 0;
  background: #eee;
  border: 1px solid #ddd;
  padding: 10px;
  white-space: pre-wrap;  /* css-3 */
  white-space: -moz-pre-wrap;  /* Mozilla */
  white-space: -pre-wrap;  /* Opera 4-6 */
  white-space: -o-pre-wrap;  /* Opera 7 */
  word-wrap: break-word;  /* Internet Explorer 5.5+ */
}

.clear { clear: both }
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
  font-size: 0;
}
* html .clearfix{ zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */
.remove-margin { margin-right: 0 !important }


/*  Structure  */

#wrap {
  background: #fff;
  margin: 0 auto;
  max-width: 1600px; /* Palielini šo skaitli pēc patikas */
  width: 95%;        /* Atstāj nelielu atkāpi no malām */
  padding: 0 30px;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
}

@media only screen and (min-width: 992px) {
  body {
    background: #f1f4f6;
  }
  #wrap {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  }
  #header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0 24px;
    border-bottom: 1px solid #e7eaed;
  }
  #logoimg {
    padding-right: 0;
    max-width: 520px;
  }
  #logo #sitename a {
    font-size: 2rem;
    letter-spacing: 0.08em;
  }
  #navigation {
    position: static;
    margin: 0;
    top: auto;
    right: auto;
    float: none;
  }
  #main {
    margin: 40px 0 0;
  }
  body.sidebar-first #content {
    width: calc(100% - 360px);
    float: left;
    background: #ffffff;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.05);
  }
  #sidebar {
    width: 320px;
    float: right;
    padding-left: 30px;
  }
  #sidebar .block,
  #sidebar .block > .content {
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0,0,0,0.04);
    border: 1px solid #f0f3f6;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 24px;
  }
  #sidebar .block > h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1rem;
    color: #163d3d;
  }
  #sidebar .block a {
    color: #0f6d72;
  }
  table {
    border-collapse: collapse;
    box-shadow: 0 16px 40px rgba(0,0,0,0.04);
  }
  th {
    padding: 14px 18px;
    background: #0f4d53;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  td {
    padding: 14px 18px;
    border-top: 1px solid #ecf0f3;
    border-right: none;
  }
  tr:nth-child(even) {
    background: #fbfdfe;
  }
  tr:hover {
    background: #eef8f8;
  }
  #sidebar .button,
  #sidebar .button--primary,
  #sidebar .form-submit,
  button,
  input[type="submit"],
  input[type="button"] {
    border-radius: 12px;
    padding: 12px 18px;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  }
  #sidebar .button:hover,
  #sidebar .button--primary:hover,
  #sidebar .form-submit:hover,
  button:hover,
  input[type="submit"]:hover,
  input[type="button"]:hover {
    transform: translateY(-1px);
    background-color: #319494;
  }
  .region-header .block,
  .region-content-top .block {
    padding: 24px;
  }
}

#main{
  margin: 25px 0;
}

/* Headings */
h1,
h2,
h3,
h4 {
  color: #000;
  line-height: 1.5em;
  font-weight: normal;
  word-spacing: 2px;
}
h1 {
  font-size: 24px;
  margin-bottom: 20px;
  line-height: 1.2em;
}
h2 { font-size: 18px }
h3 { font-size: 16px }
h4 { font-size: 14px; }
h2,
h3,
h4 {
  margin-top: 30px;
  margin-bottom: 20px;
}
h1 a,
h2 a,
h3 a,
h4 a { color: #000; }
h2 a:hover,
h3 a:hover,
h4 a:hover { color: #999; text-decoration: none; }

/* Text elements */

ul, ol {
  margin: 0 0 1.5em 2em;
}
ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}
ul ul, ol ol, ul ol, ol ul {
  margin-bottom: 0;
  margin-left: 1em;
}
dt {
  font-weight: bold;
}
dd {
  margin: 0 1.5em 1.5em;
}

dfn, cite, i {
  font-style: italic;
}
address {
  margin: 0 0 1.5em;
}

abbr, acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}
mark, ins {
  background: #fff9c0;
  text-decoration: none;
}
sup,
sub {
  font-size: 75%;
  height: 0;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  bottom: 1ex;
}
sub {
  top: .5ex;
}
small {
  font-size: 75%;
}
big {
  font-size: 125%;
}
figure {
  margin: 0;
}
table {
  margin: 0 0 1.5em;
  width: 100%;
  border:1px solid #ddd;
  /*  border-right:none;  nesaprotams */
  background:#fff;
}

th {
  font-weight: bold;
/*  padding:10px 10px;*/
  background:#555;
  color:#fff;
}

tr{
  padding:5px 5px;
}

td{
  padding:5px;
  border-top:1px solid #ddd;
  border-right:1px solid #ddd;
}

#header {
  position: relative;
  padding: 30px 0;
  border-bottom: 5px solid #444;
}

#logo{
  float:left;
  width: 100%;
}

#logoimg {
  float: left;
  padding-right: 10px;
}

#logo {
  padding-top: 5px;
}

#sitename{
  padding-top: 15px;
}

#sitename{
  width: 640px;
}

#logo #sitename a{
  font-size: 32px;
  font-weight: 700;
  color: #000;
  padding: 0px;
  margin: 0px;
  text-decoration: none;
}

#logo #sitename a:hover {
  color: #666;
}

#navigation {
  position: absolute;
  right: -10px;
  top: 50%;
  margin-top: -20px;
  height: 40px;
  font-size: 11px;
}

/*** ESSENTIAL Navigation Style ***/
#main-menu ul,
#main-menu ul * {
  margin: 0;
  padding: 0;
  list-style: none;
}
#main-menu ul { line-height: 1.0 }
#main-menu ul ul {
  position: absolute;
  top: -999em;
  width: 180px; /* left offset of submenus need to match (see below) */
}
#main-menu ul ul li { width: 100% }
#main-menu ul li:hover {
  visibility: inherit; /* fixes IE7 'sticky bug' */
}
#main-menu ul li {
  float: left;
  position: relative;
}
#main-menu ul a {
  display: block;
  position: relative;
}
#main-menu ul li:hover ul,
#main-menu ul li.sfHover ul {
  left: 10px;
  top: 40px; /* match top ul list item height */
  z-index: 99;
}
#main-menu ul li:hover li ul,
#main-menu ul li.sfHover li ul { top: -999em }
#main-menu ul li li:hover ul,
#main-menu ul li li.sfHover ul {
  left: 180px; /* match ul width */
  top: 0;
}
/*** Navigation skin ***/
#main-menu ul {
  float: left;
}
#main-menu ul a {
  height: 40px;
  line-height: 40px;
  display: block;
  float: left;
  font-weight: normal;
  font-size: 14px;
  color: #999;
  padding: 0 10px;
  text-decoration: none;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
#main-menu ul > li > a:focus,
#main-menu ul > li > a:hover,
#main-menu ul > li > a:active,
#main-menu ul > li.sfHover > a,
#main-menu ul a.active {
  color: #000;
}
/*Subs*/
#main-menu ul ul{
  padding: 0;
  font-size: 12px;
  background: #fff;
  border: 1px solid #ddd;
}
#main-menu ul ul a{
  margin: 0;
  line-height: normal;
  height: auto;
  padding: 10px;
  display: block;
  float: none;
  color: #999;
  font-weight: normal;
  text-transform: none;
}
#main-menu ul ul a:focus,
#main-menu ul ul a:hover,
#main-menu ul ul a:active {
  color: #000;
  background: #f9f9f9;
}
#main-menu ul ul a.active{
  color: #000;
}
#main-menu ul ul li{
  border-bottom: 1px solid #ddd;
}
#main-menu ul ul li:last-child{
  border-bottom: 0px;
}
#main-menu ul ul .sf-sub-indicator:last-child {
  display: none;
}

/* FlexSlider necessary styles */
.flexslider {width: 100%; margin: 0; padding: 0;}
.flexslider .slides{ margin: 0; list-style: none; }
.flexslider .slides > li {display: none;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {
  max-width: 100%;
  display: block;
  -moz-box-shadow: 0 0 10px rgba(153,153,153,0.3);
  -webkit-box-shadow: 0 0 10px rgba(153,153,153,0.3);
  box-shadow:  0 0 10px rgba(153,153,153,0.3);
}
.flex-pauseplay span {text-transform: capitalize;}

.slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;} 
html[xmlns] .slides {display: block;} 
* html .slides {height: 1%;}

.no-js .slides > li:first-child {display: block;}


/*slider wrap */
#slider-wrap{
  width: 100%;
  position: relative;
  margin-bottom: 30px;
}

@media only screen and (min-width: 992px) {
  #slider-wrap {
    margin-bottom: 42px;
  }
  .flexslider {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: 420px;
  }
  .full-slides img {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: cover;
  }
  .full-slides .caption {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: calc(100% - 96px);
    max-width: 860px;
    background: rgba(2, 18, 24, 0.72);
    color: #fff;
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.68;
    padding: 26px 32px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    text-align: left;
  }
  .slides .caption p {
    padding: 0;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.75;
  }
  .flex-direction-nav li a.next,
  .flex-direction-nav li a.prev {
    width: 64px;
    height: 64px;
    line-height: 64px;
    font-size: 28px;
    color: #fff;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    top: 50%;
    margin-top: -32px;
    opacity: 1;
    transition: background-color .25s ease, transform .25s ease;
  }
  .flex-direction-nav li a.prev { left: 18px; }
  .flex-direction-nav li a.next { right: 18px; }
  .flex-direction-nav li a.prev:hover,
  .flex-direction-nav li a.next:hover {
    background: rgba(0,0,0,0.65);
    transform: translateY(-1px);
  }
  .flex-control-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 18px;
    padding: 0;
  }
  .flex-control-nav li {
    display: inline-block;
  }
  .flex-control-nav li a {
    display: block;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.55);
    border-radius: 50%;
    text-indent: -9999px;
    transition: transform .25s ease, background-color .25s ease;
  }
  .flex-control-nav li a:hover,
  .flex-control-nav li a.active {
    background: #ffffff;
    transform: scale(1.2);
  }
  .flexslider::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10,28,36,0.05), rgba(10,28,36,0.18) 32%, rgba(10,28,36,0.4));
  }
  .full-slides .caption a,
  .hero .hero-links a,
  .hero .hero-buttons a,
  .front-page-hero .hero-links a,
  .front-page-hero .hero-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
    text-decoration: none;
  }
  .full-slides .caption a.button--primary,
  .hero .hero-links a.button--primary,
  .hero .hero-buttons a.button--primary,
  .front-page-hero .hero-links a.button--primary,
  .front-page-hero .hero-buttons a.button--primary {
    background: linear-gradient(135deg, #47C0C0 0%, #24969a 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
  }
  .full-slides .caption a:not(.button--primary),
  .hero .hero-links a:not(.button--primary),
  .hero .hero-buttons a:not(.button--primary),
  .front-page-hero .hero-links a:not(.button--primary),
  .front-page-hero .hero-buttons a:not(.button--primary) {
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.24);
  }
  .full-slides .caption a:hover,
  .hero .hero-links a:hover,
  .hero .hero-buttons a:hover,
  .front-page-hero .hero-links a:hover,
  .front-page-hero .hero-buttons a:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.2);
  }
}

/*homepage specific*/
.full-slides img{
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}
.full-slides .slides_container {
  width: 100%;
  display: none;
}
.full-slides .slides_container .slide{
  display: block;
  width: 100%;
}
.full-slides .caption{
  position: absolute;
  width: 100%;
  bottom: 19px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  -moz-opacity: 0.8;
  -khtml-opacity: 0.8;
  opacity: 0.8;
  text-align: center;
}
.slides .caption p{
  padding: 15px;
  margin: 0;
}

/*control nav & arrows*/
.flex-control-nav{
  display: none;
}
ul.flex-direction-nav {
  list-style: none;
}
.flex-direction-nav li a.next,
.flex-direction-nav li a.prev {
  position: absolute;
  display: block;
  z-index: 101;
  font-size: 21px;
  height: 80px;
  width: 50px; 
  line-height: 80px;
  color: #fff;
  background: #000;
  display: block;
  position: absolute;
  top: 50%;
  margin-top: -40px;
  cursor: pointer;
  text-align: center;
  -moz-opacity: 0.4;
  -khtml-opacity: 0.4;
  opacity: 0.4;
}
.flex-direction-nav li a.next {
  right: 0;
}
.flex-direction-nav li a.prev {
  left: 0;
}
.flex-direction-nav li a.prev:hover,
.flex-direction-nav li a.next:hover {
  text-decoration: none;
  background: #47C0C0;
  -moz-opacity: 1;
  -khtml-opacity: 1;
  opacity: 1;
}

#breadcrumbs {
  border-bottom: 1px solid #EEEEEE;
  font-size: 11px;
  margin-bottom: 20px;
  padding-bottom: 5px;
}

#preface-wrap{
  margin-top: 45px;
  margin-bottom: 10px;
  margin-right: -20px;
}
.preface-block{
  float: left;
  width: 310px;
  margin-right: 20px;
}

#content {
  display: inline;
  margin: 0;
}

body.sidebar-first #content {
  float: left;
  width: 70%;
  overflow: hidden;
}

.node-teaser {
  border-bottom: 1px solid #EEEEEE;
  margin-bottom: 25px;
  padding-bottom: 25px;
}

.node .content{
  line-height:160%;
}

.node h2.title {
  font-size: 18px;
  margin: -5px 0 0;
}

#preface-wrap .block,
.region-header .block,
.region-footer .block, 
.region-content-top .block{
  margin: 0px 0px 25px 0px;
}

#preface-wrap .block > h2,
.region-header .block > h2,
.region-footer .block > h2, 
.region-content-top .block > h2{
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 0 !important;
  text-transform: uppercase;
}

#sidebar{
  width: 25%;
  float: right;
}

#sidebar .block {
  margin-bottom: 30px;
}

#sidebar .block > h2 {
  margin-top: 0px !important;
  margin-bottom: 10px;
  padding-bottom: 10px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

#footer-wrap{
  background: #222;
  margin: 0 -30px;
  padding: 0 30px;
  color: #7f7f7f;
  font-size: 12px;
}

#footer{
}

#footer a{
  color: #ccc;
  text-decoration: none;
}
#footer a:hover{
  color: #3fb7b7;
}

/*footer block*/
#footer-block-wrap{ }
#footer-one,
#footer-two,
#footer-three,
#footer-four{
  float: left;
  width: 230px;
  margin-right: 20px;
}
#footer-four{
  margin: 0;
}

#footer-block-wrap .block {
  color: #7f7f7f;
  margin: 25px 0;
}

#footer-block-wrap .block > h2{
  color: #fff;
  font-size: 13px;
  padding: 0 0 10px;
  margin: 0 0 15px;
  border-bottom: 1px solid #444;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}


#footer-bottom{
  padding: 10px 0;
  border-top: 1px solid #333;
}

#copyright {
  float: left;
  width: 70%;
  font-size: 10px;
  color:#666;
}

#back-to-top{
  width: 20%;
  float: right;
  font-size: 10px;
  text-align: right;
}

/* -------------- Form Elements  ------------- */

fieldset { background: #ffffff; border: 1px solid #cccccc; margin-top: 10px; margin-bottom: 32px;
padding: 0 0 10px; position: relative; top: 12px; /* Offsets the negative margin of legends */
-khtml-border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }

.fieldset-wrapper { margin-top: 25px; }

.node-form .vertical-tabs .fieldset-wrapper { margin-top: 0; }

.filter-wrapper { top: 0; padding: 1em 0 0.2em;
-khtml-border-radius-topright: 0; -khtml-border-radius-topleft: 0; -moz-border-radius-topright: 0; -moz-border-radius-topleft: 0;
-webkit-border-top-left-radius: 0; -webkit-border-top-right-radius: 0; border-top-left-radius: 0; border-top-right-radius: 0; }

.filter-help a { font-size: 0.857em; padding: 2px 20px 0; }

.filter-wrapper .form-item label { margin-right: 10px; }

.filter-wrapper .form-item { padding: 0 0 0.5em 0.5em; }

.filter-guidelines { padding: 0 1.5em 0 0.5em; }

fieldset.collapsed { background: transparent; -khtml-border-radius: 0; -moz-border-radius: 0;  -webkit-border-radius: 0; border-radius: 0; }

fieldset legend { background: #dbdbdb; border: 1px solid #ccc; border-bottom: none; display: block; height: 2em;
left: -1px; line-height: 2; padding: 0; position: absolute; text-indent: 10px; text-shadow: 0 1px 0 #fff; top: -12px; width: 100%;
-khtml-border-radius-topleft: 4px; -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; 
-khtml-border-radius-topright: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }

fieldset.collapsed legend { -khtml-border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }

fieldset .fieldset-wrapper { padding: 0 10px; }

fieldset .fieldset-description { margin-top: 5px; margin-bottom: 1em; line-height: 1.4; font-style: italic; }

input { margin: 2px 0; padding: 4px; }

input, textarea {  font-size: 0.929em; }

textarea { line-height: 1.5; }

textarea.form-textarea, select.form-select { padding: 4px; }

input.form-text, textarea.form-textarea, select.form-select { border: 1px solid #ccc; }

.password-suggestions ul li { margin-left: 1.2em; }

.form-item { margin-bottom: 1em; margin-top: 2px; }

.form-item label { font-size: 0.929em; }

.form-type-radio label, .form-type-checkbox label { margin-left: 4px; }

.form-type-radio .description, .form-type-checkbox .description { margin-left: 2px; }

.form-actions { padding-top: 3px; }

/* Contact Form */

.contact-form #edit-name { width: 100%;
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
-khtml-border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }

.contact-form #edit-mail { width: 100%;
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
-khtml-border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }

.contact-form #edit-subject { width: 100%;
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
-khtml-border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }

.contact-form #edit-message { width: 100%;
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
-khtml-border-top-left-radius: 4px; -khtml-border-top-right-radius: 4px; -moz-border-radius-topleft: 4px;
-moz-border-radius-topright: 4px; -webkit-border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px;
border-top-left-radius: 4px; border-top-right-radius: 4px; }

.contact-form .resizable-textarea .grippie {  width: 100%;
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
-khtml-border-bottom-left-radius: 4px; -khtml-border-bottom-right-radius: 4px; -moz-border-radius-bottomleft: 4px;
-moz-border-radius-bottomright: 4px; -webkit-border-bottom-left-radius: 4px; -webkit-border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }

/* Comment form */

.comment-form label { float: left; font-size: 0.929em; }

.comment-form input, .comment-form .form-select { margin: 0; 
-khtml-border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }

.comment-form .form-type-textarea label { float: none; }

.comment-form .form-item,
.comment-form .form-radios,
.comment-form .form-type-checkbox,
.comment-form .form-select { margin-bottom: 10px; overflow: hidden; }

.comment-form .form-type-checkbox,
.comment-form .form-radios { margin-left: 120px; }

.comment-form .form-type-checkbox label,
.comment-form .form-radios label { float: none; margin-top: 0; }

.comment-form input.form-file { width: auto; }

.comment-form .form-text { display: block; margin: 0; width: 100%;
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }

.comment-form .form-item .description { font-size: 0.786em; line-height: 1.2; margin-left: 120px; }

#content h2.comment-form { margin-bottom: 0.5em; }

.comment-form .form-textarea { -khtml-border-radius-topleft: 4px; -khtml-border-radius-topright: 4px;
-moz-border-radius-topleft: 4px; -moz-border-radius-topright: 4px;
-webkit-border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px;
border-top-left-radius: 4px; border-top-right-radius: 4px; }

.comment-form fieldset.filter-wrapper .fieldset-wrapper,
.comment-form .text-format-wrapper .form-item { margin-top: 0; margin-bottom: 0; }

.filter-wrapper label { width: auto; float: none; }

.filter-wrapper .form-select { min-width: 120px; }

.comment-form fieldset.filter-wrapper .tips { font-size: 0.786em; }

#comment-body-add-more-wrapper .form-type-textarea label { margin-bottom: 0.4em; }

#edit-actions input { margin-right: 0.6em; }

/* Other Overrides */

div.password-suggestions { border: 0; }

.ui-widget-overlay { background: #222222; opacity: 0.7; }

div.vertical-tabs .vertical-tabs-panes fieldset.vertical-tabs-pane { padding: 1em; }

#forum .name { font-size: 1.083em; }

#forum .description { font-size: 1em; }



/* Form Buttons */

button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
background-image: none;
filter: none;
background-color: #47c0c0;
border: 1px solid #3aabab;
-moz-border-radius: 6px; -webkit-border-radius: 6px; -o-border-radius: 6px; -ms-border-radius: 6px; -khtml-border-radius: 6px; border-radius: 6px;
-moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2); -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2);
color: #ffffff; text-shadow: 0 1px 0 rgba(0,0,0,0.15); position: relative; font-weight:bold; padding: 4px .8em 5px .8em; font-size: 13px; cursor: pointer; }

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
background-image: none;
filter: none;
background-color: #2e8484;
border-color: #267070;
-moz-border-radius: 6px; -webkit-border-radius: 6px; -o-border-radius: 6px; -ms-border-radius: 6px; -khtml-border-radius: 6px; border-radius: 6px;
-moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2);
-webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2);
box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2);
color: #ffffff;
cursor: pointer; }

button.full-width,
input[type="submit"].full-width,
input[type="reset"].full-width,
input[type="button"].full-width { 
width: 100%; padding-left: 0 !important; padding-right: 0 !important; text-align: center; }


#block-search-form { padding-bottom: 7px; }

#block-search-form .content { margin-top: 0; }

#search-form input#edit-keys,
#block-search-form .form-item-search-block-form input { float: left; font-size: 1em; height: 1.143em; margin-right: 5px; width: 9em; }

#search-block-form input.form-submit,
#search-form input.form-submit { margin-left: 0; margin-right: 0; height: 25px; width: 34px; padding: 0; cursor: pointer;
text-indent: -9999px; border-color: #e4e4e4 #d2d2d2 #b4b4b4; background: url(images/search-button.png) no-repeat center top; overflow: hidden; }

#search-block-form input.form-submit:hover,
#search-block-form input.form-submit:focus,
#search-form input.form-submit:hover,
#search-form input.form-submit:focus { background-position: center bottom; }

#search-form .form-item-keys label { display: block; }


ol.search-results { padding-left: 0; }

.search-results li { border-bottom: 1px solid #d3d7d9; padding-bottom: 0.4285em; margin-bottom: 0.5em; }

.search-results li:last-child { border-bottom: none; padding-bottom: none; margin-bottom: 1em; }

.search-results .search-snippet-info { padding-left: 0; }

.submitted{
  color: #999;
  font-size: 11px;
  margin: 0 0 10px;
}
.submitted span.icon{
  margin: 0 5px 0 12px;
  font-size: 13px;
  color: #666;
}
.submitted span:first-child{
  margin-left: 0;
}

.links li a {
  background-color: #E7E5E3;
  color: #100100;
  padding: 4px 5px;
  border-radius: 4px;
  text-shadow: 1px 1px #fff;
  font-weight: normal;
}

.links li a:hover {
  background-color: #D7D5D3;
  color: #100101;
}


/* Pirkðanas pogas */

#edit-checkout--2,#edit-continue,#edit-submit {
   border-top: 1px solid #96d1f8;
   background: #47c0c0;
   background: -webkit-gradient(linear, left top, left bottom, from(#47c0c0), to(#47c0c0));
   background: -webkit-linear-gradient(top, #47c0c0, #47c0c0);
   background: -moz-linear-gradient(top, #47c0c0, #47c0c0);
   background: -ms-linear-gradient(top, #47c0c0, #47c0c0);
   background: -o-linear-gradient(top, #47c0c0, #47c0c0);
   padding: 5px 10px;
   -webkit-border-radius: 8px;
   -moz-border-radius: 8px;
   border-radius: 8px;
   -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
   -moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
   box-shadow: rgba(0,0,0,1) 0 1px 0;
   text-shadow: rgba(0,0,0,.4) 0 1px 0;
   color: white;
   font-size: 14px;
   font-family: Georgia, serif;
   text-decoration: none;
   vertical-align: middle;
   border: 0 solid #ffffff;
   }
#edit-checkout--2:hover,#edit-continue:hover,#edit-submit:hover {
   border-top-color: #28597a;
   background: #28597a;
   color: #white;
   border: 0 solid #ffffff;
   }
#edit-checkout--2:active,#edit-continue:active,#edit-submit:active {
   border-top-color: #1b435e;
   background: #1b435e;
   border: 0 solid #ffffff;
   }



/*-------------------------------------------*
/* Fix CKEditor style
/*-------------------------------------------*/
#content table.cke_editor {
  background: transparent;
  border: 0;
}
#content table.cke_editor td {
  background: transparent;
  padding: 0;
  border: 0;
}

/*-------------------------------------------*
/* Poll, Buttons, Form
/*-------------------------------------------*/
.poll .vote-form .choices .title {
  font-size: 14px;
  font-weight: normal;
  line-height: 2;
}

.poll .vote-form .choices {
  margin: 0;
}

.form-item label {
  font-size: 13px;
  font-weight: bold;
}

/*-------------------------------------------*
/* Menus and item lists 
/*-------------------------------------------*/
.item-list ul {
  margin: 0;
  padding: 0 0 0 1.5385em;
}

.item-list ul li {
  margin: 0;
  padding: 0;
}

ul.menu li {
  margin: 0;
  padding: 0;
}

ul.inline {
  clear: both;
}

ul.inline li {
  margin: 0;
  padding: 0;
}

/*-------------------------------------------*
/* Admin Tabs
/*-------------------------------------------*/
.tabs-wrapper {
  border-bottom: 1px solid #b7b7b7;
  margin: 0 0 5px 0;
}

ul.primary {
  border: none;
  margin: 0;
  padding: 0;
}

ul.primary li a {
  background: none;
  border: none;
  display: block;
  float: left;
  line-height: 1.5385em;
  margin: 0;
  padding: 0 1em;
  border-radius: 4px 4px 0 0;
  margin-right: 5px;
}

ul.primary li a:hover, ul.primary li a.active {
  background: #666;
  border: none;
  color: #fff;
}

ul.primary li a:hover {
  background: #888;
  text-decoration: none;
}

ul.secondary {
  background: #666;
  border-bottom: none;
  clear: both;
  margin: 0;
  padding: 0;
}

ul.secondary li {
  border-right: none;
}

ul.secondary li a, ul.secondary li a:link {
  border: none;
  color: #ccc;
  display: block;
  float: left;
  line-height: 1.5385em;
  padding: 0 1em;
}

ul.secondary li a:hover, ul.secondary li a.active {
  background: #888;
  color: #fff;
  text-decoration: none;
}

ul.secondary a.active {
  border-bottom: none;
}

ul.inline, ul.links.inline {
  margin-left: 0;
}

/*-------------------------------------------*
/* Tabs and Tags
/*-------------------------------------------*/
.field-name-field-tags {
  margin: 0 0 10px 0;
}

.field-name-field-tags a{
  -moz-transition: opacity 0.2s ease-in-out 0s;
  background: none repeat scroll 0 0 #3FB7B7;
  color: #FFFFFF !important;
  line-height: 1em !important;
  margin-bottom: 3px;
  margin-right: 3px;
  opacity: 0.9;
  padding: 4px 6px;
}

.field-name-field-tags a:hover{
  opacity: 1;
}

.field-name-field-tags .field-item {
  margin: 0 1em 0 0;
}

.field-name-field-tags div {
  display: inline;
}

#main .field-label{
  color: #000;
}

#main .field-items .field-item{
}

/*-------------------------------------------*
/* Profile
/*-------------------------------------------*/
.profile {
  margin: 1.5385em 0;
}

.profile dd {
  margin-bottom: 1.5385em;
}

.profile h3 {
  border: none;
}

.profile dt {
  margin-bottom: 0;
}

.password-parent {
  width: 36em;
}

/* Comments */

.comment h2.title { margin-bottom: 1em; }

.comment div.user-picture img { margin-left: 0; }

.comment { margin-bottom: 20px; display: table; vertical-align: top; }

.comment .attribution { display: table-cell; padding: 0 35px 0 0; vertical-align: top; overflow: hidden; }

.comment .attribution img { margin: 0; border: 1px solid #d3d7d9; }

.comment .attribution .username { white-space: nowrap; }

.comment .comment-submitted p { margin: 4px 0; font-size: 1.071em; line-height: 1.2; }

.comment .comment-submitted .comment-time { font-size: 0.786em; }

.comment .comment-submitted .comment-permalink { font-size: 0.786em; text-transform: lowercase; }

.comment .content { font-size: 0.929em; line-height: 1.6; }

.comment .comment-arrow { background: url(images/comment-arrow.gif) no-repeat 0 center transparent;
border-left: 1px solid; border-right: 1px solid; height: 40px; margin-left: -36px; margin-top: 15px; position: absolute; width: 20px; }

.comment .comment-text { padding: 0 25px 10px 35px; display: table-cell; vertical-align: top; position: relative; width: 100%; border-left: 1px solid #d3d7d9; }

.comment .indented { margin-left: 40px; }

.comment-unpublished { margin-right: 5px; padding: 5px 2px 5px 5px; }

.comment .comment-text .comment-arrow { border-left: 1px solid #ffffff; border-right: 1px solid #ffffff; }

/*-------------------------------------------*
/* Navigation
/*-------------------------------------------*/
.item-list .pager {
}

.item-list .pager li {
  background: #cfcfcf;
  border-radius: 3px;
  margin-right: 4px;
  text-shadow: 1px 1px #fff;
}

/*-------------------------------------------*
/* Forum
/*-------------------------------------------*/
.field-name-taxonomy-forums div {
  display: inline;
  margin-top: 4px;
}

.field-name-taxonomy-forums .field-items {
}

#forum .title {
  font-size: 16px;
}

#forum .submitted {
  font-size: 12px;
  font-family: Lucida Grande, Verdana, Arial, sans-serif;
  background: transparent;
  padding: 0;
}

#forum .container {
  background: #a1a1a1;
  color: #fff;
}

#forum .container a {
  color: #000;
  font-weight: bold;
}

#forum div.indent {
  margin-left: 2px;
}

.forum-starter-picture {
  float: left;
  padding: 4px;
  border: 1px solid #d9d9d9;
  margin: 5px 7px 5px 0;
}

#forum th {
  background: #434343;
  text-shadow: none;
  color: #fff;
}

#forum th a {
  color: #fff;
}

#forum td.forum .icon, #forum .icon div {
  background: url(images/no-new-posts.png) no-repeat;
  width: 35px;
  height: 35px;
}

#forum .name a{ 
  font-size: 16px;
}


/*-----------------------------------------------------------------------------------*
/* Shortcodes
/*-----------------------------------------------------------------------------------*/

/*columns*/
.one-half{ width:48%; }
.one-third{ width:30.66%; }
.two-third{ width:65.33%; }
.one-fourth{ width:22%; }
.three-fourth{ width:74%; }
.one-fifth{ width:16.8%; }
.one-sixth{ width:13.33%; }
.one-half, .one-third, .two-third, .one-fourth, .three-fourth, .one-fifth, .one-sixth {
  position:relative; margin-right:4%; float:left;
}

.column-last{margin-right: 0px;}
.column-first{margin-left: 0px;}


/*----------------------Papildus dizains   ------------------------------------*/
td.views-field { height: 24px; margin: 3px; padding: 3px;}
.views-field-field-kods { height: 32px; white-space:nowrap; margin-right: 1px; margin-left: 1px; }
.cart-block-summary { border: 1px solid #ddd; }
.views-field-field-prod-noform { width: 24px;}
/*---------------------------------------------------------------------------------------*/
/*--------------------Rçíinu formai uzlabots dizains------------------------------------*/
.page-admin-store-orders-invoice th { border: 1px solid white; }
.page-admin-store-orders-invoice tr { border: 1px solid green; }
.page-admin-store-orders-invoice td { border: 1px solid white; }
.page-admin-store-orders-invoice table { border: 1px solid white; }

.order_style  td { border-top: 1px solid #DDDDDD; }

#edit-panes-billing-select-address { width: 100%; }

/*-------------------------*/

.list-add-to-cart {width:86px;}

/* --- Vecās pogas dizains beidzas -----*/



/* Mēs mērķējam tikai uz tabulu ar mūsu jauno klasi */
.lek-standards-table table {
    border-collapse: collapse !important;
}

/* Galvene - neietekmējot citas Bootstrap tabulas */
.lek-standards-table thead th {
    background-color: #5c5c5c !important;
    color: #33cccc !important;
    border: 1px solid #444 !important;
    text-align: center;
}

/* Paslēpjam visu lieko informāciju tajā vienā šūnā (Rendered Entity) */
/* Bootstrap parasti rāda visu, mēs šeit atstājam TIKAI pogu */
.lek-standards-table .views-field-rendered-entity article > div:not(.field--name-variations) {
    display: none !important;
}

/* Mūsu specifiskā "Ielikt grozā" poga */
/* Tā joprojām būs Bootstrap poga tehniski, bet vizuāli - kā D7 */
.lek-standards-table .button--add-to-cart {
    background: #efefef linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%) !important;
    border: 1px solid #cccccc !important;
    color: #333333 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    text-shadow: none !important;
    font-weight: normal !important;
    padding: 2px 12px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}

/* Ielikt grozā - links kā tirkīza poga */
.views-field-commerce-add-to-cart-link a {
    display: inline-block;
    white-space: nowrap !important;
    background-color: #47c0c0 !important;
    color: #ffffff !important;
    border: 1px solid #3aabab !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    text-shadow: none !important;
    cursor: pointer;
}

.views-field-commerce-add-to-cart-link a:hover {
    background-color: #2e8484 !important;
    border-color: #267070 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.page-cart .messages {
    margin-bottom: 1.25rem;
}
.page-cart .messages.status + .messages.status,
.page-cart .messages.error + .messages.error {
    display: none;
}
.page-cart .views-field-commerce-add-to-cart-link a,
.page-cart input.list-add-to-cart.form-submit {
    white-space: nowrap !important;
}
.page-cart .form-actions,
.page-cart .cart-form .form-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: center !important;
}

.page-cart .cart-form .form-actions:not(:last-of-type) {
    display: none !important;
}

.page-cart .form-actions > * {
    margin-left: 0 !important;
}

.page-cart .form-actions > * + * {
    margin-left: 1rem !important;
}

/* Atstarpe starp kolonnām Layout Builder */
.layout--twocol-section {
    gap: 40px !important;
}

.layout--twocol-section .layout__region--first {
    padding-right: 20px !important;
}

.layout--twocol-section .layout__region--second {
    padding-left: 20px !important;
}

/* Header un logo pilnā platumā */
#logo {
  float: left;
  width: 100% !important;
}

#logoimg {
  float: left;
  width: 100% !important;
  padding-right: 0 !important;
}

header.container,
header .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

#logoimg .region-header,
#logoimg .block-system-branding-block {
  width: 100% !important;
  max-width: 100% !important;
}

#logoimg .navbar-brand,
.navbar-brand {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1rem;
}

.site-logo {
  flex: 0 0 auto;
  margin-bottom: 0;
  display: inline-flex !important;
}

.site-title {
  width: auto !important;
  flex: 1 1 auto !important;
  padding-left: 20px !important;
  margin: 0;
  font-size: 1.8rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 1440px) {
  #logoimg .navbar-brand,
  .navbar-brand {
    flex-wrap: wrap !important;
  }

  .site-title {
    width: 100% !important;
    white-space: normal !important;
    padding-left: 0 !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
}

@media (max-width: 767px) {
  #logoimg .navbar-brand,
  .navbar-brand {
    flex-direction: column !important;
    align-items: center !important;
  }

  .site-title {
    text-align: center !important;
    padding-left: 0 !important;
    margin-top: 0.5rem !important;
  }
}

/* Header vienādā platumā ar main saturu */
header#header.container {
  max-width: 1320px !important;
  width: 100% !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.header-cart-block {
  text-align: right;
  margin-bottom: 0.8rem;
}

@media (max-width: 767px) {
  .header-cart-block { text-align: center; }
}

#logo {
  width: 100% !important;
  float: none !important;
}

/* Layout Builder divas kolonnas blakus */
.layout--twocol-section {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 40px !important;
  width: 100% !important;
}

.layout--twocol-section .layout__region--first {
  flex: 0 0 67% !important;
  max-width: 67% !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.layout--twocol-section .layout__region--second {
  flex: 0 0 calc(33% - 40px) !important;
  max-width: calc(33% - 40px) !important;
  min-width: 0 !important;
  padding: 0 !important;
}
/* Ielikt grozā poga tabulā - tirkīza */
input.list-add-to-cart,
input.list-add-to-cart.form-submit {
  background-image: none !important;
  background-color: #47c0c0 !important;
  border: 1px solid #3aabab !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  text-shadow: none !important;
  font-weight: bold !important;
  padding: 5px 12px !important;
  font-size: 13px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  filter: none !important;
}

input.list-add-to-cart:hover,
input.list-add-to-cart.form-submit:hover {
  background-color: #2e8484 !important;
  border-color: #267070 !important;
  color: #ffffff !important;
}
/* =============================================
   LEKENERGO — UZLABOTIE STILI
   ============================================= */

/* ----- Vispārīgi fonti un body ----- */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

/* ----- HEADER ----- */
#header {
  background: #163d3d;
  padding: 0;
  border-bottom: none;
}

#header .container {
  display: flex;
  align-items: center;
  min-height: 75px;
  padding: 10px 15px;
}

#header #logo {
  float: none;
  width: auto;
  padding: 0;
}

#header #logoimg {
  float: none;
  padding: 0;
}

/* Logo un nosaukums headerī */
#header .site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

#header .site-logo img {
  height: 55px;
  width: auto;
  filter: brightness(0) invert(1);
}

#header .site-name a,
#header .site-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

#header .site-name a:hover {
  color: #47c0c0 !important;
}

/* ----- NAVIGĀCIJA ----- */
#main-nav {
  background: #1f5252;
  border-bottom: 3px solid #47c0c0;
}

#main-nav .container {
  padding: 0 15px;
}

#main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

#main-nav ul li a {
  display: block;
  padding: 12px 18px;
  color: #d4f0f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

#main-nav ul li a:hover,
#main-nav ul li.is-active a {
  background: #47c0c0;
  color: #fff;
}

/* ----- GALVENAIS SATURS ----- */
.main-content {
  padding-top: 20px;
  padding-bottom: 40px;
}

main {
  background: #fff;
  border-radius: 4px;
  padding: 25px 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ----- SĀNU JOSLA ----- */
aside .block {
  background: #fff;
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

aside .block-title,
aside h2 {
  font-size: 15px;
  font-weight: 700;
  color: #163d3d;
  border-bottom: 2px solid #47c0c0;
  padding-bottom: 8px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ----- PRECES LAPA ----- */
.product-page-card {
  max-width: 750px;
}

.product-page-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.product-lek-code {
  display: inline-block;
  background: #163d3d;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.product-price {
  font-size: 26px;
  font-weight: 700;
  color: #1f5252;
}

.product-price .field__item {
  display: inline;
}

.product-title {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  margin-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 14px;
}

.product-description {
  background: #f0fafa;
  border-left: 4px solid #47c0c0;
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  color: #444;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.product-standard-file {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 10px 14px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.product-label {
  font-weight: 600;
  color: #555;
  font-size: 13px;
  text-transform: uppercase;
}

.product-standard-file .file a {
  color: #47c0c0;
  font-weight: 500;
  text-decoration: none;
}

.product-standard-file .file a:hover {
  text-decoration: underline;
  color: #163d3d;
}

.product-buy-section {
  margin-top: 10px;
}

/* Slēpt "Variations" lauka nosaukumu */
.product-buy-section .field__label,
.product-buy-section > .field--name-variations > .field__label {
  display: none;
}

/* Pirkšanas poga */
.product-buy-section .button--add-to-cart,
.product-buy-section .btn-primary {
  background: #47c0c0;
  border: none;
  border-radius: 4px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-buy-section .button--add-to-cart:hover {
  background: #319494;
  transform: translateY(-1px);
}

/* ----- FOOTER ----- */
#footer {
  background: #163d3d;
  color: #aacece;
  padding: 30px 0;
  margin-top: 40px;
  font-size: 14px;
}

#footer a {
  color: #47c0c0;
  text-decoration: none;
}

#footer a:hover {
  color: #fff;
}


/* ---- Header teksta krāsas labojums ---- */
#header .site-title,
#header .site-title a,
#header .navbar-brand .site-title {
  color: #fff !important;
}

#header .site-title a:hover {
  color: #47c0c0 !important;
}

/* ---- Preces lapas lauku labelu slēpšana ---- */
.product-price-wrap .field__label,
.product-description .field__label,
.product-standard-file .field__label,
.product-buy-section .field__label {
  display: none !important;
}

/* Cena bez uzraksta "Cena" */
.product-price-wrap {
  font-size: 26px;
  font-weight: 700;
  color: #1f5252;
}

.product-price-wrap .field__item {
  display: inline;
}

/* Apraksts bez lauku iesaiņojuma stiliem */
.product-description .field__item {
  display: block;
}

/* =============================================
   PRECES LAPAS STILI (izmantojot Drupal klases)
   ============================================= */

/* Iesaiņojums */
article.product {
  max-width: 760px;
}

/* Slēpt visus lauku nosaukumus preces lapā pēc noklusējuma */
article.product .field__label {
  display: none;
}

/* CENA — liela un zaļa */
.product--variation-field--variation_price__default,
[class*="product--variation-field--variation_price"] {
  order: 1;
  margin-bottom: 20px;
}

[class*="product--variation-field--variation_price"] .field__item {
  font-size: 30px;
  font-weight: 700;
  color: #1f5252;
  display: block;
  margin-bottom: 4px;
}

/* NOSAUKUMS (garais) — h1 stils */
[class*="product--variation-field--variation_title"] .field__item {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  display: block;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

/* VIRSRAKSTS (LEK kods) — badge */
.field--name-field-virsraksts .field__item {
  display: inline-block;
  background: #163d3d;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}

/* SKU/KODS — pelēks mazs teksts */
[class*="product--variation-field--variation_sku"] .field__item {
  font-size: 13px;
  color: #777;
  font-family: monospace;
}

/* APRAKSTS */
.field--name-body {
  background: #f0fafa;
  border-left: 4px solid #47c0c0;
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  color: #444;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* STANDARTS — faila rinda */
.field--name-field-standarts {
  padding: 10px 14px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.field--name-field-standarts::before {
  content: "Standarts:";
  font-weight: 600;
  color: #555;
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
}

.field--name-field-standarts .file a {
  color: #47c0c0;
  font-weight: 500;
  text-decoration: none;
}

.field--name-field-standarts .file a:hover {
  text-decoration: underline;
  color: #163d3d;
}

/* VARIATIONS — slēpt nosaukumu, rādīt tikai formu */
.field--name-variations > .field__label {
  display: none !important;
}

/* PIRKŠANAS POGA */
.button--add-to-cart,
.field--name-variations .btn-primary {
  background: #47c0c0 !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 12px 34px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #fff !important;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button--add-to-cart:hover {
  background: #319494 !important;
  transform: translateY(-1px);
}


/* =============================================
   PRECES LAPU LAUKU SECĪBA UN LAUKU LABELI
   ============================================= */

/* Flex kolonnas izkārtojums preces lapā */
article.product {
  display: flex !important;
  flex-direction: column !important;
  max-width: 760px;
}

/* Slēpt lauku nosaukumus */
article.product .field__label {
  display: none !important;
}

/* 1. Nosaukums */
[class*="product--variation-field--variation_title"] { order: 1; }

/* 2. Virsraksts (LEK badge) */
.field--name-field-virsraksts { order: 2; }

/* 3. Kods (SKU) */
[class*="product--variation-field--variation_sku"] { order: 3; }

/* 4. Cena */
[class*="product--variation-field--variation_price"] { order: 4; }

/* 5. Apraksts */
.field--name-body { order: 5; }

/* 6. Standarts */
.field--name-field-standarts { order: 6; }

/* 7. Ielikt grozā */
.field--name-variations { order: 7; }

/* Nosaukuma stils — h1 */
[class*="product--variation-field--variation_title"] .field__item {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  display: block;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

/* Cena — uzraksts "Cena bez PVN" pirms vērtības */
[class*="product--variation-field--variation_price"]::before {
  content: "Cena bez PVN:";
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

/* Kods — pelēks mazāks teksts */
[class*="product--variation-field--variation_sku"]::before {
  content: "Kods:";
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

[class*="product--variation-field--variation_sku"] .field__item {
  font-size: 14px;
  color: #555;
  margin-bottom: 14px;
}


/* =============================================
   LABOJUMI: logo + dubultie lauku nosaukumi
   ============================================= */

/* Logo — noņem filtru, balts fons lai redzams uz tumša header */
#header .site-logo img {
  filter: none !important;
  background: #fff;
  padding: 4px;
  border-radius: 3px;
  height: 58px;
  width: auto;
}

/* Lauku nosaukumu slēpšana preces lapā (pareizais selektors) */
.path-product .field__label {
  display: none !important;
}

/* Noņemt dubultos ::before uzrakstus */
[class*="product--variation-field--variation_price"]::before,
[class*="product--variation-field--variation_sku"]::before,
.field--name-field-standarts::before {
  content: none !important;
  display: none !important;
}

/* Standarts — vienkāršs PDF ikona + links (bez dubulta uzraksta) */
.field--name-field-standarts {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 24px;
}


/* =============================================
   PRECES LAPU FLEX SECĪBA (labots selektors)
   ============================================= */

.path-product article {
  display: flex !important;
  flex-direction: column !important;
  max-width: 760px;
}

/* 1. Nosaukums */
.path-product [class*="variation_title"] { order: 1 !important; }

/* 2. Virsraksts (LEK badge) */
.path-product .field--name-field-virsraksts { order: 2 !important; }

/* 3. Kods */
.path-product [class*="variation_sku"] { order: 3 !important; }

/* 4. Cena */
.path-product [class*="variation_price"] { order: 4 !important; }

/* 5. Apraksts */
.path-product .field--name-body { order: 5 !important; }

/* 6. Standarts */
.path-product .field--name-field-standarts { order: 6 !important; }

/* 7. Ielikt grozā */
.path-product .field--name-variations { order: 7 !important; }


/* ===== SĪKDATŅU PAZIŅOJUMS — pogas ===== */

/* Privātuma iestatījumi tab — stabila pozīcija */
.eu-cookie-withdraw-tab {
  background: #2d2d2d !important;
  color: #fff !important;
  border-color: #555 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.eu-cookie-withdraw-tab:hover {
  background: #47c0c0 !important;
}

.eu-cookie-compliance-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* Piekrītu — tirkīza */
.agree-button,
button.eu-cookie-compliance-secondary-button {
  background-color: #47c0c0 !important;
  color: #fff !important;
  border: 2px solid #47c0c0 !important;
  border-radius: 5px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: filter 0.2s ease, transform 0.1s ease !important;
}

.agree-button:hover,
button.eu-cookie-compliance-secondary-button:hover {
  filter: brightness(1.2) !important;
  transform: translateY(-1px) !important;
}

/* Nepiekrītu — tumšs ar apmali */
.decline-button,
button.eu-cookie-compliance-default-button {
  background-color: transparent !important;
  color: #fff !important;
  border: 2px solid #888 !important;
  border-radius: 5px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: filter 0.2s ease, border-color 0.2s ease, transform 0.1s ease !important;
}

.decline-button:hover,
button.eu-cookie-compliance-default-button:hover {
  border-color: #fff !important;
  filter: brightness(1.3) !important;
  transform: translateY(-1px) !important;
}

/* AT_LEK bloks — slēpt virsrakstu, izcelt linku */
.field--name-field-at-lek .field__label {
  display: none !important;
}

.field--name-field-at-lek .field__item a {
  display: inline-block;
  margin-top: 12px;
  background-color: #47c0c0;
  color: #fff !important;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none !important;
  transition: filter 0.2s ease, transform 0.1s ease;
  font-size: 0.95em;
}

.field--name-field-at-lek .field__item a:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* Pasūtījuma numurs checkout lapā */
.checkout-complete .order-number {
  font-size: 1.4em;
  font-weight: 700;
  color: #163d3d;
  background: #e8f8f8;
  border: 1px solid #47c0c0;
  border-radius: 4px;
  padding: 2px 10px;
  display: inline-block;
  margin: 0 2px;
}

/* Vidējie ekrāni (planšete 768–1199px) — preču saraksts divās rindās */
@media (min-width: 768px) and (max-width: 1199px) {

  body:not(.path-cart) .views-view-table thead {
    display: none;
  }

  body:not(.path-cart) .views-view-table,
  body:not(.path-cart) .views-view-table tbody {
    display: block;
    width: 100%;
  }

  /* Katra prece — grid 2 rindas */
  body:not(.path-cart) .views-view-table tr {
    display: grid !important;
    grid-template-columns: 110px 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 10px 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    box-sizing: border-box;
  }

  body:not(.path-cart) .views-view-table td {
    display: block !important;
    border: none !important;
    padding: 2px 0 !important;
    height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  /* 1. rinda: Numurs | Nosaukums | Cena */
  .views-field-field-virsraksts  { grid-column: 1; grid-row: 1; font-weight: 700; color: #163d3d; }
  .views-field-product-id        { grid-column: 2; grid-row: 1; }
  .views-field-price__number     { grid-column: 3; grid-row: 1; font-weight: 700; color: #1f5252; white-space: nowrap; }

  /* 2. rinda: Standarts (plats) | Poga */
  .views-field-field-standarts            { grid-column: 1 / 3; grid-row: 2; }
  .views-field-commerce-add-to-cart-link  { grid-column: 3;     grid-row: 2; }

  .views-field-commerce-add-to-cart-link a {
    white-space: nowrap;
  }

  /* ---- GROZS — planšetes izkārtojums ---- */
  .path-cart .views-view-table thead {
    display: none;
  }

  .path-cart .views-view-table,
  .path-cart .views-view-table tbody {
    display: block;
    width: 100%;
  }

  /* Katrs groza elements — kartīte ar nosaukumu augšā */
  .path-cart .views-view-table tr {
    display: grid !important;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 12px 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    box-sizing: border-box;
    width: 100%;
  }

  .path-cart .views-view-table td {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  /* Nosaukums — pilna platuma augšējā rinda */
  .path-cart .views-field-purchased-entity {
    grid-column: 1 / 4;
    grid-row: 1;
    font-weight: 600;
    font-size: 15px;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f0f0f0;
  }

  /* Apakšējā rinda: Vienības cena | Daudzums | Kopā */
  .path-cart .views-field-unit-price--number  { grid-column: 1; grid-row: 2; color: #1f5252; font-weight: 600; }
  .path-cart .views-field-edit-quantity       { grid-column: 2; grid-row: 2; }
  .path-cart .views-field-total-price--number { grid-column: 3; grid-row: 2; font-weight: 700; color: #163d3d; }
  .path-cart .views-field-remove-button       { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
}

/* =============================================
   MOBILAIS SKATS — preču saraksts kā kartītes
   ============================================= */

@media (max-width: 767px) {

  /* Header mobilajā skatā */
  #header .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 15px;
    min-height: auto;
  }

  #header .site-name,
  #header .site-title {
    font-size: 14px !important;
    white-space: normal !important;
  }

  /* Galvenais saturs — pilns platums */
  main, aside {
    padding: 15px !important;
  }

  /* Tabulas pārveidošana kartītēs */
  .views-view-table thead {
    display: none;
  }

  .views-view-table,
  .views-view-table tbody,
  .views-view-table tr {
    display: block !important;
    width: 100% !important;
  }

  .views-view-table tr {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }

  .views-view-table tr:hover {
    background: #f8fefe;
    border-color: #47c0c0;
  }

  /* Katra šūna — pilna platuma bloks, viens zem otra */
  .views-view-table td,
  td.views-field {
    display: block !important;
    width: 100% !important;
    float: none !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    padding: 5px 0 !important;
    border: none !important;
    font-size: 14px;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    box-sizing: border-box;
  }

  /* Bez lauku nosaukumiem mobilajā skatā */
  .views-view-table td::before {
    display: none;
  }

  /* Numurs — prominents */
  .views-field-field-virsraksts {
    font-weight: 700;
    font-size: 15px;
    color: #163d3d;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
    margin-bottom: 4px;
  }

  /* Nosaukums — saite */
  .views-field-product-id a {
    color: #47c0c0;
    text-decoration: none;
    line-height: 1.4;
  }

  /* Cena — zaļa */
  .views-field-price__number {
    font-weight: 700;
    color: #1f5252;
    font-size: 15px;
  }

  /* Pirkšanas poga — pilns platums */
  .views-field-commerce-add-to-cart-link {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
  }

  .views-field-commerce-add-to-cart-link a {
    display: block;
    width: 100%;
    text-align: center;
    background: #47c0c0;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  /* Groza pogas mobilajā skatā */
  .path-cart .form-actions,
  .page-cart .form-actions,
  .path-cart .cart-form .form-actions,
  .page-cart .cart-form .form-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .path-cart .form-actions > *,
  .page-cart .form-actions > *,
  .path-cart .form-actions > * + *,
  .page-cart .form-actions > * + * {
    margin-left: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

}

