﻿/* =========================================
   Admin Toolbar
   ========================================= */
button.toolbar-item,
button.toolbar-icon {
  background: none;
}

/* =========================================
   Layout builder styles
   ========================================= */
.layout--onecol:not(:last-child) .block {
  margin: 24px 0;
}
.layout__region--second {
  padding-left: 12px;
  order: -1;
}

/* =========================================
   System messages
   ========================================= */
.message,
.messages {
  position: relative;
  margin: 1rem 0;
  padding: 0.875rem 1rem 0.875rem 4rem;
  color: #ffffff;
  border-radius: var(--radius-sm);
}
.message a,
.messages a,
.message a:visited,
.messages a:visited{
  color: #ffffff;
  text-decoration: underline;
}
.message p:last-child,
.messages p:last-child  {
  margin: 0;
}
.message em,
.messages em  {
  font-style: italic;
}
.message-status,
.messages--status {
  background: #5a8a20;
}
.message-status::before,
.messages--status::before {
  background: #4a7218;
}
.message-error,
.messages--error {
  background: #b83e18;
}
.message-error::before,
.messages--error::before {
  background-color: #9e3616;
}
.message-warning,
.messages-warning {
  background: #b85010;
}
.message-warning::before,
.messages--warning::before {
  background-color: #9e4510;
}
.message::before,
.messages::before {
  position: absolute;
  content: url("data:image/svg+xml,%3Csvg fill='%23000000' version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='40px' height='40px' viewBox='0 0 45.999 45.999' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M39.264,6.736c-8.982-8.981-23.545-8.982-32.528,0c-8.982,8.982-8.981,23.545,0,32.528c8.982,8.98,23.545,8.981,32.528,0 C48.245,30.281,48.244,15.719,39.264,6.736z M25.999,33c0,1.657-1.343,3-3,3s-3-1.343-3-3V21c0-1.657,1.343-3,3-3s3,1.343,3,3V33z M22.946,15.872c-1.728,0-2.88-1.224-2.844-2.735c-0.036-1.584,1.116-2.771,2.879-2.771c1.764,0,2.88,1.188,2.917,2.771 C25.897,14.648,24.746,15.872,22.946,15.872z' fill='%23FFF'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  margin:  12px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  border-radius: 50%;
  overflow: hidden;
}

/* =========================================
   Admin page tabs
   ========================================= */
ul.page-tabs {
  margin: 0 0 1rem 0;
  padding: 0;
  list-style: none;
  display: flex;
  border-bottom: 2px solid var(--primary);
}
.page-tabs li {
  display: inline-flex;
  padding: 0;
}
.page-tabs li a {
  background-color: var(--nav-bg);
  color: rgba(255,255,255,0.8);
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background-color 0.15s, color 0.15s;
}
.page-tabs li.active-page-tab a,
.page-tabs li a:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* =========================================
   Node submitted details
   ========================================= */
.node-submitted-details {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--color-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

/* =========================================
   Taxonomy terms
   ========================================= */
.node-taxonomy-container, .node-links-container {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 3px;
}
h3.term-title {
  font-size: 1rem;
  color: var(--primary);
}
ul.taxonomy-terms {
  margin: 3px 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
li.taxonomy-term {
  position: relative;
  display: inline-block;
  padding: 0;
  line-height: 1.1em;  
}
li.taxonomy-term:not(:last-child)::after {
  content: ",";
}
.cart table {
  vertical-align: middle;
}
.cart .node-taxonomy-container {
  margin-bottom: 0;
}
.cart table tbody tr:nth-child(2n+1) {
  background-color: #eee;
}
.cart li.taxonomy-term a {
 font-size: 0.9em;
}
.cart input[type="submit"] {
  font-size: 0.8em;
  background-color: #999;
  text-transform: inherit;
  padding: 6px 10px 
}
.cart-block input.delete-order-item[type="submit"] {
  overflow: hidden;
  width: 18px;
  padding: 3px 0px 3px 18px;
  position: relative;
  background-color: transparent;
  box-shadow: 0px 0px 3px #ccc;
}
.cart-block .views-field-remove-button {
  position:relative;
}
.cart-block .views-field-remove-button::before {
  content: "x";
  display: block;
  position: absolute;
  padding: 4px 4px;
} 
/* =========================================
   Field labels
   ========================================= */
.field--label-inline div {
  display: inline;
}
label.term-title,
.field--label-inline .field__label {
  font-weight: bold;
  color: var(--secondary);
}
label.term-title::after,
.field--label-inline .field__label::after {
  content: ":";
}
.field {
  margin-bottom: 3px;
}

/* =========================================
   Node links
   ========================================= */
.node-links-container ul.links {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
}
.node-links-container .links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
ul.inline,
ul.links.inline {
  padding-left: 0;
}
ul.inline li {
  position: relative;
  display: inline-block;
  list-style-type: none;
}
ul.inline li a {
  display: inline-block;
}

/* =========================================
   Pager
   ========================================= */
.pager {
  position: relative;
  grid-column: 1 / -1;
  margin-top: 1rem;
}
.pager ul.pager__items {
  position: relative;
  margin: 0;
  padding: 1rem 0;
  list-style: none;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.pager__items {
  clear: both;
  text-align: center;
}
.pager__item {
  display: inline-block;
  padding: 0;
  margin: 3px;
}
.pager__item a,
.pager__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.93rem;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  background-color: var(--lighter);
}
.pager__item a:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pager__item.is-active a,
.pager__item.is-active span {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}

/* =========================================
   Article teasers (news/blog listing)
   ========================================= */
.node-view-mode-teaser {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.node-view-mode-teaser .node-title a {
  color: var(--color-heading);
  font-size: 1.15rem;
}
.node-view-mode-teaser .node-title a:hover {
  color: var(--primary);
}
.node-view-mode-teaser:last-child {
  border-bottom: none;
}

/* =========================================
   "Read more" / action links
   ========================================= */
.more-link a,
a.read-more {
  display: inline-block;
  padding: 5px 16px;
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.15s, color 0.15s;
}
.more-link a:hover,
a.read-more:hover {
  background-color: var(--primary);
  color: #fff;
}

/* =========================================
   Price badge
   ========================================= */
.price,
.field--name-price,
.commerce-price {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
}
.price-old {
  text-decoration: line-through;
  color: var(--color-muted);
  font-size: 0.8rem;
  margin-right: 4px;
}

/* =========================================
   "Add to cart" button
   ========================================= */
.form-actions input[type="submit"],
.form-submit {
  border-radius: 0 24px 24px 0;
  background-color: #dbd2bf;
  border-left: 2px solid var(--primary);
  color: #000;
  padding: 6px 16px;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.form-actions input[type="submit"]:hover,
.form-submit:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  color: #FFF;
}


/* =========================================
   VVJS styles
   ========================================= */
.vvjs .nav-dots-numbers {
  position: absolute;
  bottom: 0;
}
.vvjs .nav-dots-numbers.dots .dots-numbers-button.active {
  width: 0.625rem !important
}
.vvjs .nav-dots-numbers.dots .dots-numbers-button {
  box-shadow: none;
}