.deco-marcos[hidden], .deco-marcos__preview-note[hidden] { display: none !important; }
.deco-marcos.deco-marcos--cards .deco-marcos__choices[hidden] { display: none !important; }
.deco-marcos {
  width: min(100%, 840px);
  margin: 16px 0 20px;
}
.deco-marcos__box {
  padding: 16px 18px;
  border: 1px solid #d8dde2;
  border-radius: 4px;
  background: #fff;
}
.deco-marcos__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.deco-marcos h3 {
  margin: 0;
  color: #162133;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}
.deco-marcos__mode {
  padding: 5px 9px;
  border: 1px solid #d8dde2;
  border-radius: 3px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  cursor: pointer;
}
.deco-marcos__mode.is-selected {
  border-color: #18a9aa;
  color: #087c80;
  background: #f1fafa;
}
.deco-marcos__choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
  align-items: stretch;
}
.deco-marcos__choice {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 104px;
  padding: 5px;
  border: 1px solid #d2dce3;
  border-radius: 5px;
  background: #fff;
  color: #162133;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
}
.deco-marcos__corner-preview {
  display: block;
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #fff;
}
.deco-marcos__corner-preview::before,
.deco-marcos__corner-preview::after {
  content: none !important;
  display: none !important;
}
.deco-marcos__swatch-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.deco-marcos__choice-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}
.deco-marcos__choice-copy strong { color: #162133; font-size: 13px; font-weight: 700; }
.deco-marcos__choice-copy small { color: #5e6d7d; font-size: 11px; }
.deco-marcos__choice-price-wrap[hidden] { display: none !important; }
.deco-marcos__choice-check {
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1caeaf;
  color: #fff;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
}
.deco-marcos__choice.is-selected {
  border: 2px solid #17acad;
  padding: 4px;
  background: #f5fbfb;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .07);
}
.deco-marcos__choice.is-selected .deco-marcos__choice-check { display: block; }
.deco-marcos__choice:hover:not(.is-selected) {
  border-color: #9caab2;
}
.deco-marcos__choice:focus-visible, .deco-marcos__mode:focus-visible {
  outline: 2px solid #16adaf;
  outline-offset: 3px;
}
.deco-marcos__payable-components {
  display: block;
  margin-top: 3px;
  color: #647080;
  font-size: 12px;
  font-weight: 400;
}
.deco-marcos__preview-note {
  margin: 7px 0 0;
  color: #647080;
  font-size: 12px;
}
.deco-marcos__preview-holder { position: relative !important; }
.deco-marcos__canvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  pointer-events: none;
}
.deco-marcos-cart-thumb {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 60px !important;
  height: 60px !important;
  border: 1px solid #d2d9df;
  background: #fff;
  vertical-align: middle;
}
.deco-marcos-cart-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center 59%;
}
.woocommerce-mini-cart-item.deco-marcos-cart-parent { margin-bottom: 0 !important; border-bottom: 0 !important; }
.woocommerce-mini-cart-item.deco-marcos-cart-line {
  position: relative;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 12px 16px !important;
  padding: 9px 8px 10px 14px !important;
  border-top: 0 !important;
  border-left: 2px solid #20a9aa !important;
  border-radius: 0 3px 3px 0;
  background: #f5faf9;
}
.woocommerce-mini-cart-item.deco-marcos-cart-line .product-image {
  position: absolute !important;
  top: 7px;
  right: 5px;
  width: 18px !important;
  height: 18px !important;
  float: none !important;
}
.woocommerce-mini-cart-item.deco-marcos-cart-line .deco-marcos-cart-thumb { display: none !important; }
.woocommerce-mini-cart-item.deco-marcos-cart-line .product-details {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 24px 0 0 !important;
  float: none !important;
  font-size: 12px;
  line-height: 1.4;
}
.woocommerce-mini-cart-item.deco-marcos-cart-line .product-details::before {
  content: '↳ Marco añadido al cuadro';
  display: block;
  margin-bottom: 2px;
  color: #697787;
  font-size: 11px;
  line-height: 1.2;
}
.woocommerce-mini-cart-item.deco-marcos-cart-line .product-details .variation { display: none !important; }
.woocommerce-mini-cart-item.deco-marcos-cart-line .product-details .quantity {
  display: block;
  margin-top: 3px;
  color: #172238;
  font-weight: 700;
}
.woocommerce-cart-form tr.deco-marcos-cart-parent td,
.woocommerce-cart-form tr.deco-marcos-cart-line td { background: #f7fbfa; }
.woocommerce-cart-form tr.deco-marcos-cart-parent td { border-bottom: 0 !important; padding-bottom: 8px !important; }
.woocommerce-cart-form tr.deco-marcos-cart-line td { border-top: 0 !important; padding-top: 6px !important; border-bottom: 1px solid #dce9e7; }
.woocommerce-cart-form tr.deco-marcos-cart-parent td:first-child,
.woocommerce-cart-form tr.deco-marcos-cart-line td:first-child { border-left: 3px solid #20a9aa; }
.woocommerce-cart-form tr.deco-marcos-cart-line .product-thumbnail .deco-marcos-cart-thumb,
.woocommerce-cart-form tr.deco-marcos-cart-line .product-thumbnail .remove-product,
.woocommerce-cart-form tr.deco-marcos-cart-line .product-remove .remove-product { display: none !important; }
.woocommerce-cart-form tr.deco-marcos-cart-line .product-name { position: relative; padding-left: 24px !important; font-size: 13px; }
.woocommerce-cart-form tr.deco-marcos-cart-line .product-name::before {
  content: '↳';
  position: absolute;
  left: 8px;
  color: #20a9aa;
}
.woocommerce-cart-form tr.deco-marcos-cart-line .product-name .variation { display: none !important; }
.woocommerce-cart-form tr.deco-marcos-cart-line .product-price,
.woocommerce-cart-form tr.deco-marcos-cart-line .product-quantity,
.woocommerce-cart-form tr.deco-marcos-cart-line .product-subtotal { font-size: 13px; }
.deco-marcos-cart-addon { margin-top: 5px; color: #63737b; font-size: 11px; line-height: 1.4; }
.deco-marcos-cart-addon a { margin-left: 8px; color: #087d82; text-decoration: underline; }
.woocommerce-checkout-review-order-table tr.deco-marcos-cart-parent td,
.woocommerce-checkout-review-order-table tr.deco-marcos-cart-line td { background: #f7fbfa; }
.woocommerce-checkout-review-order-table tr.deco-marcos-cart-parent td { padding-bottom: 4px; border-left: 3px solid #20a9aa; }
.woocommerce-checkout-review-order-table tr.deco-marcos-cart-line td { padding-top: 4px; padding-bottom: 14px; border-left: 3px solid #20a9aa; border-bottom: 1px solid #dce9e7; }
.woocommerce-checkout-review-order-table tr.deco-marcos-cart-line .product-thumbnail { display: none !important; }
.woocommerce-checkout-review-order-table tr.deco-marcos-cart-line .product-content { flex: 1; min-width: 0; margin-left: 75px; }
.woocommerce-checkout-review-order-table tr.deco-marcos-cart-line .product-name { padding: 0 0 0 16px !important; font-size: 13px; }
.woocommerce-checkout-review-order-table tr.deco-marcos-cart-line .product-name::before { content: '↳'; position: absolute; top: 13px; left: 0; color: #20a9aa; }
.woocommerce-checkout-review-order-table tr.deco-marcos-cart-line .product-name .variation,
.woocommerce-checkout-review-order-table tr.deco-marcos-cart-line .product-price .quantity { display: none !important; }
.woocommerce-checkout-review-order-table tr.deco-marcos-cart-line .product-price { justify-content: flex-end; }
.woocommerce-checkout-review-order-table tr.deco-marcos-cart-line .product-total { font-size: 13px; line-height: 1.4; }
.deco-marcos-checkout-addon-label { display: block; color: #63737b; font-size: 11px; font-weight: 400; }
.checkout-order-review .product-name a.deco-marcos-checkout-remove { display: inline-block; position: static !important; width: auto !important; height: auto !important; margin-top: 4px; padding: 0 !important; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; color: #087d82; font-size: 11px; line-height: 1.4; text-decoration: underline; }
.checkout-order-review .product-name a.deco-marcos-checkout-remove::before,
.checkout-order-review .product-name a.deco-marcos-checkout-remove::after { display: none !important; }
@media (max-width: 575px) {
  .woocommerce-checkout-review-order-table tr.deco-marcos-cart-line .product-content { margin-left: 56px; }
  .woocommerce-checkout-review-order-table tr.deco-marcos-cart-line .product-price { flex-direction: row; align-items: center; }
}
.deco-marcos__zoom-dialog {
  width: min(96vw, 1440px);
  max-width: 96vw;
  max-height: 94vh;
  padding: 12px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 15px 55px rgba(0, 0, 0, .3);
}
.deco-marcos__zoom-dialog::backdrop { background: rgba(11, 17, 27, .82); }
.deco-marcos__zoom-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.deco-marcos__zoom-tools button { border: 1px solid #cfd8de; border-radius: 3px; background: #fff; padding: 6px 12px; cursor: pointer; }
.deco-marcos__zoom-scroller { max-height: 84vh; overflow: auto; text-align: center; }
.deco-marcos__zoom-scroller canvas { display: block; width: auto; max-width: 100%; max-height: 82vh; margin: auto; }
.deco-marcos__zoom-dialog.is-zoomed .deco-marcos__zoom-scroller canvas { max-width: none; max-height: none; }
@media (max-width: 700px) {
  .deco-marcos { margin: 15px 0; }
  .deco-marcos__box { padding: 15px 12px; }
  .deco-marcos__choices { grid-template-columns: 1fr; gap: 6px; }
  .deco-marcos__choice { padding: 4px; font-size: 12px; }
  .deco-marcos__corner-preview { width: 82px; height: 82px; flex-basis: 82px; }
  .deco-marcos__choice-copy { gap: 2px; }
  .deco-marcos__choice-copy strong { font-size: 11px; }
  .deco-marcos__choice-copy small { font-size: 10px; }
}
