/* Attribute info helpers — coverage + finishes (product page) */

html.zmm-attr-info-open {
  overflow: hidden;
}

.zmm-attr-info-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin: 0 10px 0 0;
  padding: 0;
  border: 1px solid #bbb;
  border-radius: 50%;
  background: #fff;
  color: #444;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  overflow: visible;
  flex-shrink: 0;
  vertical-align: middle;
}

.zmm-attr-info-btn:hover,
.zmm-attr-info-btn:focus-visible {
  border-color: #222;
  color: #111;
  outline: none;
}

.zmm-attr-info-btn-icon {
  display: block;
  transform: translateY(-0.5px);
}

/* Tip chrome lives in zmm-tooltips.css */

.variations td.label,
.variations th.label,
.variations .label {
  overflow: visible !important;
  text-align: left !important;
}

/*
 * Label + info-icoon als één cluster:
 * - geen absolute positioning (dat duwde het icoon ver weg / uit lijn op mobiel)
 * - nowrap voorkomt een alleenstaand icoon op de volgende regel
 * - altijd links uitlijnen (thema’s centreren labels soms)
 */
.variations td.label label,
.variations th.label label,
.variations .label label {
  text-align: left;
}

.variations td.label label:has(.zmm-attr-info-btn),
.variations th.label label:has(.zmm-attr-info-btn),
.variations .label label:has(.zmm-attr-info-btn),
label:has(> .zmm-attr-info-btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
  padding-right: 0;
  box-sizing: border-box;
  white-space: nowrap;
  vertical-align: middle;
  text-align: left;
}

@media (max-width: 640px) {
  .variations td.label label:has(.zmm-attr-info-btn),
  .variations th.label label:has(.zmm-attr-info-btn),
  .variations .label label:has(.zmm-attr-info-btn),
  label:has(> .zmm-attr-info-btn) {
    gap: 8px;
  }

  .zmm-attr-info-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

.zmm-attr-info-modal[hidden] {
  display: none !important;
}

.zmm-attr-info-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.zmm-attr-info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.zmm-attr-info-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  padding: 22px 22px 20px;
  box-sizing: border-box;
}

.zmm-attr-info-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #000;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-shadow: none;
  text-decoration: none;
  opacity: 1;
  transform: none;
  transition: none;
  appearance: none;
  -webkit-appearance: none;
}

.zmm-attr-info-modal-close:hover,
.zmm-attr-info-modal-close:focus,
.zmm-attr-info-modal-close:focus-visible,
.zmm-attr-info-modal-close:active {
  color: #000;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  opacity: 1;
  transform: none;
  outline: none;
}

.zmm-attr-info-modal-title {
  margin: 0 36px 14px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}

.zmm-attr-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.zmm-attr-info-area-field {
  margin-bottom: 4px;
}

.zmm-attr-info-input-wrap {
  position: relative;
  display: block;
}

.zmm-attr-info-input-wrap input {
  width: 100%;
  padding-right: 40px;
}

.zmm-attr-info-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #666;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.zmm-attr-info-clear:hover,
.zmm-attr-info-clear:focus-visible {
  color: #111;
  background: #f0f0f0;
  outline: none;
}

.zmm-attr-info-clear[hidden] {
  display: none !important;
}

.zmm-attr-info-area-field input[readonly] {
  background: #f5f5f5;
  color: #333;
}

.zmm-attr-info-advanced-toggle-wrap {
  margin: 0 0 14px;
}

.zmm-attr-info-advanced-toggle {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.zmm-attr-info-advanced-toggle:hover,
.zmm-attr-info-advanced-toggle:focus-visible {
  color: #000;
  outline: none;
}

.zmm-attr-info-walls {
  margin: 0 0 16px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.zmm-attr-info-walls[hidden] {
  display: none !important;
}

.zmm-attr-info-walls-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

.zmm-attr-info-wall {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 36px 12px 12px;
  border: none;
  border-radius: 10px;
  background: #f0f0f0;
}

.zmm-attr-info-wall input {
  background: #fff;
}

.zmm-attr-info-wall-name {
  margin-bottom: 10px;
}

.zmm-attr-info-wall-name input.zmm-attr-wall-name {
  font-weight: 700;
}

.zmm-attr-info-wall .zmm-attr-info-grid {
  margin-bottom: 0;
}

.zmm-attr-info-wall-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #666;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.zmm-attr-info-wall-remove:hover,
.zmm-attr-info-wall-remove:focus-visible {
  color: #111;
  background: #e4e4e4;
  outline: none;
}

.zmm-attr-info-add-wall {
  margin: 0 0 10px !important;
}

.zmm-attr-info-walls-total {
  margin: 0;
  font-size: 14px;
}

.zmm-attr-info-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.zmm-attr-info-field input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
}

.zmm-attr-info-field input:focus,
.zmm-attr-info-field input:focus-visible {
  /* Single stroke only — no outline/ring on top of the border */
  border: 1px solid #999;
  outline: none;
  box-shadow: none;
}

.zmm-attr-info-area-field .zmm-attr-info-input-wrap input {
  appearance: textfield;
  -moz-appearance: textfield;
}

.zmm-attr-info-area-field .zmm-attr-info-input-wrap input::-webkit-outer-spin-button,
.zmm-attr-info-area-field .zmm-attr-info-input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.zmm-attr-info-area {
  margin: 0 0 14px;
  font-size: 15px;
}

.zmm-attr-info-multi {
  margin: 0 0 10px !important;
  font-size: 14px;
  line-height: 1.45;
  color: #444;
}

.zmm-attr-info-advice {
  margin: 0 0 14px;
  padding: 14px;
  background: #f5f5f5;
  border-radius: 12px;
  box-sizing: border-box;
}

.zmm-attr-info-advice:not(.has-advice) {
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
}

.zmm-attr-info-advice p {
  margin: 0 0 8px;
}

.zmm-attr-info-advice p:last-child {
  margin-bottom: 0;
}

.zmm-attr-info-advice-need {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.4;
  color: #222;
  font-weight: 500;
}

.zmm-attr-info-advice-coats {
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.4;
  color: #666;
  font-weight: 400;
}

.zmm-attr-info-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #777;
}

.zmm-attr-info-intro {
  margin: 0 0 14px;
  font-size: 14px;
  color: #444;
  line-height: 1.45;
}

.zmm-attr-info-finish-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.zmm-attr-info-finish-item {
  padding: 12px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
}

.zmm-attr-info-finish-item.is-current {
  border-color: #222;
  background: #fff;
}

.zmm-attr-info-finish-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.zmm-attr-info-finish-item p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
}

.zmm-attr-info-finish-item .button {
  margin: 0;
}

.zmm-attr-info-finish-unavailable {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #888;
  font-style: italic;
}

.zmm-attr-info-yield {
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid #eee;
}

.zmm-attr-info-yield p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #444;
  line-height: 1.45;
}

.zmm-attr-info-yield ul {
  margin: 0 0 10px;
  padding-left: 1.2em;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .zmm-attr-info-grid {
    grid-template-columns: 1fr;
  }

  .zmm-attr-info-modal-dialog {
    padding: 18px 16px 16px;
  }
}
