/* MATU PRINT v111.39.9.18 – fotoobrazy: spolehlivá aktivace, doporučené rozměry a moderní množství */
.calculator-shell[data-matu-canvas-ui="true"] .matu-canvas-editor-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 14px 16px;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(120deg, #0b1737, #122b52);
  border: 1px solid #263b60;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(11, 23, 55, .13);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-canvas-editor-link:hover,
.calculator-shell[data-matu-canvas-ui="true"] .matu-canvas-editor-link:focus-visible {
  border-color: #00aeef;
  box-shadow: 0 13px 28px rgba(11, 23, 55, .18);
  transform: translateY(-1px);
  outline: none;
}

.matu-canvas-editor-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #00aeef, #236ad4);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
}

.matu-canvas-editor-copy {
  display: block;
  min-width: 0;
}

.matu-canvas-editor-copy small,
.matu-canvas-editor-copy strong,
.matu-canvas-editor-copy em {
  display: block;
}

.matu-canvas-editor-copy small {
  margin-bottom: 2px;
  color: #6fd9ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.matu-canvas-editor-copy strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.3;
}

.matu-canvas-editor-copy em {
  margin-top: 3px;
  overflow: hidden;
  color: #bec9d8;
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matu-canvas-editor-arrow {
  color: #00aeef;
  font-size: 23px;
  line-height: 1;
}

.matu-canvas-size-panel {
  margin: 0 0 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #dde6ed;
  border-radius: 14px;
}

.matu-canvas-size-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.matu-canvas-size-heading span,
.matu-canvas-size-heading small,
.matu-canvas-size-heading strong {
  display: block;
}

.matu-canvas-size-heading small {
  margin-bottom: 2px;
  color: #007ead;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.matu-canvas-size-heading strong {
  color: #0b1737;
  font-size: 16px;
}

.matu-canvas-size-heading em {
  color: #748095;
  font-size: 10px;
  font-style: normal;
  text-align: right;
}

.matu-canvas-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.matu-canvas-preset {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 8px 5px;
  color: #34415c;
  font: inherit;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #d5dfe7;
  border-radius: 9px;
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.matu-canvas-preset strong {
  font-size: 12px;
  white-space: nowrap;
}

.matu-canvas-preset small {
  color: #8792a3;
  font-size: 9px;
}

.matu-canvas-preset:hover,
.matu-canvas-preset:focus-visible {
  color: #007ead;
  background: #f1fbff;
  border-color: #63c8ec;
  outline: none;
}

.matu-canvas-preset.is-active {
  color: #ffffff;
  background: #0b1737;
  border-color: #0b1737;
  box-shadow: inset 0 -3px 0 #00aeef, 0 6px 14px rgba(11, 23, 55, .13);
}

.matu-canvas-preset.is-active small {
  color: #9ae6ff;
}

.matu-canvas-exact-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #dce5ec;
}

.matu-canvas-exact-label strong {
  color: #0b1737;
  font-size: 13px;
}

.matu-canvas-exact-label span {
  color: #748095;
  font-size: 10px;
  text-align: right;
}

.calculator-shell[data-matu-canvas-ui="true"] .fields-grid[data-matu-canvas-fields="true"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "width height"
    "quantity quantity";
  gap: 11px 14px;
  align-items: stretch;
}

.calculator-shell[data-matu-canvas-ui="true"] .fields-grid[data-matu-canvas-fields="true"] > .matu-dimension-width {
  grid-area: width;
}

.calculator-shell[data-matu-canvas-ui="true"] .fields-grid[data-matu-canvas-fields="true"] > .matu-dimension-height {
  grid-area: height;
}

.calculator-shell[data-matu-canvas-ui="true"] .fields-grid[data-matu-canvas-fields="true"] > .matu-quantity-field {
  grid-area: quantity;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-dimension-field {
  position: relative;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-dimension-field > span {
  display: block;
  margin: 0 0 6px 2px;
  color: #445067;
  font-size: 11px;
  font-weight: 800;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-dimension-field > span::before {
  display: none;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-dimension-field input[type="number"] {
  width: 100%;
  min-height: 50px;
  padding: 10px 38px 10px 12px;
  color: #0b1737;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  background: #ffffff;
  border: 1px solid #c6d2dc;
  border-radius: 9px;
  box-shadow: 0 3px 10px rgba(11, 23, 55, .035);
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-dimension-field:has(input)::before {
  content: "cm";
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 18px;
  color: #8290a2;
  font-size: 10px;
  pointer-events: none;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-dimension-width::after {
  content: "×";
  position: absolute;
  z-index: 3;
  top: auto;
  right: -12px;
  bottom: 15px;
  display: grid;
  width: 10px;
  height: 20px;
  place-items: center;
  color: #7a8798;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  font-size: 14px;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field {
  margin-top: 3px;
  padding-top: 13px;
  border-top: 1px solid #e2e8ee;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field > span {
  margin-bottom: 6px;
  color: #445067;
  font-size: 11px;
  font-weight: 800;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-mobile-qty-control {
  grid-template-columns: 48px minmax(84px, 1fr) 48px;
  gap: 0;
  width: min(100%, 330px);
  padding: 3px;
  background: #eef3f6;
  border: 1px solid #d8e1e7;
  border-radius: 12px;
  box-shadow: none;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-mobile-qty-control input[type="number"] {
  min-height: 45px;
  padding: 0 8px;
  font-size: 17px;
  border-color: #d2dce4;
  border-radius: 9px;
  box-shadow: none;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-qty-stepper {
  width: 48px;
  min-width: 48px;
  height: 45px;
  padding: 0;
  color: #0b1737;
  font-size: 0;
  background: transparent;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-qty-stepper::before,
.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-qty-stepper::after {
  font-size: 21px;
  font-weight: 750;
  line-height: 1;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-qty-less::before {
  content: "−";
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-qty-less::after {
  content: none;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-qty-more {
  color: #ffffff;
  background: #0b1737;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-qty-more::before {
  content: "+";
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-qty-more::after {
  content: none;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-qty-more:hover:not(:disabled) {
  background: #162b50;
  border: 0;
  box-shadow: none;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-qty-less:hover:not(:disabled) {
  color: #007ead;
  background: #dff6fe;
  border: 0;
}

.calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-live-quantity-price {
  width: min(100%, 330px);
}

@media (max-width: 760px) {
  .matu-canvas-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .matu-canvas-size-heading,
  .matu-canvas-exact-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .matu-canvas-size-heading em,
  .matu-canvas-exact-label span {
    text-align: left;
  }

  .calculator-shell[data-matu-canvas-ui="true"] .fields-grid[data-matu-canvas-fields="true"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "width height"
      "quantity quantity";
  }

  .calculator-shell[data-matu-canvas-ui="true"] .matu-dimension-width::after {
    display: grid;
  }

  .calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-mobile-qty-control,
  .calculator-shell[data-matu-canvas-ui="true"] .matu-quantity-field .matu-live-quantity-price {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .matu-canvas-editor-link {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 12px 13px;
  }

  .matu-canvas-editor-icon {
    width: 38px;
    height: 38px;
  }

  .matu-canvas-editor-copy em,
  .matu-canvas-editor-arrow {
    display: none;
  }

  .matu-canvas-size-panel {
    padding: 13px;
  }

  .matu-canvas-preset {
    min-height: 44px;
  }
}
