/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@font-face {
  font-family: "Panton";
  src: url("/fonts/A101/Panton-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Panton";
  src: url("/fonts/A101/Panton-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Panton";
  src: url("/fonts/A101/Panton-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Panton Black";
  src: url("/fonts/A101/Panton-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Image Editor Animations */
@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-slide-in {
  animation: slide-in 0.3s ease-out forwards;
}

.animate-slide-out {
  animation: slide-out 0.3s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out forwards;
}

/* Image Editor Custom Styles */
.notification-toast {
  animation: slide-in 0.3s ease-out forwards;
}

/* Keyboard hint styling */
kbd {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

[data-controller~="beko-dimension-line-editor"] input[type="number"],
[data-controller~="beko-dimension-line-editor"] input[type="text"] {
  background-color: #ffffff !important;
  color: #111827 !important;
}

.a101-cell-template-editor-form {
  width: 100%;
}

.a101-cell-template-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(520px, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.a101-cell-template-sidebar,
.a101-cell-template-code-panel {
  position: sticky;
  top: 16px;
}

.a101-cell-template-design-panel {
  min-width: 0;
}

.a101-cell-template-stage-wrap {
  overflow: auto;
  background: #e5e7eb;
}

.a101-cell-template-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 700px);
  min-height: 560px;
  padding: 48px;
  border: 8px solid #00abc8;
  border-radius: 8px;
  background: #e8f9fc;
  box-shadow: inset 0 0 0 1px rgba(0, 124, 146, 0.28);
}

.a101-cell-template-stage--preview {
  min-width: 100%;
  min-height: 460px;
  overflow: auto;
}

.a101-cell-template-design-card {
  position: relative;
  flex: 0 0 auto;
  overflow: visible;
  background: transparent;
  color: #111111;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
}

.a101-cell-template-design-card[data-editor="true"] {
  outline: 1px dashed rgba(0, 124, 146, 0.45);
  outline-offset: 0;
}

.a101-cell-template-design-card .a101-product-field {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
  white-space: pre-line;
  line-height: 1;
  letter-spacing: 0;
}

.a101-cell-template-design-card .a101-cell-template-field[data-editor="true"] {
  cursor: move;
  border: 1px dashed rgba(0, 124, 146, 0.72);
  border-radius: 4px;
}

.a101-cell-template-design-card .a101-cell-template-field[data-selected="true"] {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.a101-cell-template-design-card .a101-product-card-resize,
.a101-cell-template-design-card .a101-product-field-resize {
  position: absolute;
  right: -7px;
  bottom: -7px;
  z-index: 30;
  width: 15px;
  height: 15px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #00abc8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
  cursor: nwse-resize;
}

.a101-cell-template-design-card .a101-product-field-resize {
  display: none;
}

.a101-cell-template-design-card .a101-cell-template-field[data-selected="true"] .a101-product-field-resize {
  display: block;
}

.a101-cell-template-design-card .a101-price-raw {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.a101-cell-template-design-card .a101-product-field--title {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: normal;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif !important;
  font-weight: 900;
  line-height: 1.02;
  text-transform: none;
}

.a101-cell-template-design-card .a101-product-field--description {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: normal;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif !important;
  font-weight: 400;
  line-height: 1.08;
}

.a101-cell-template-design-card .a101-product-field--previous_price {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  font-family: "Arial Black", Impact, Arial, Helvetica, sans-serif !important;
  font-weight: 900;
  line-height: 1;
}

.a101-cell-template-design-card .a101-product-field--previous_price::before {
  content: none;
}

.a101-cell-template-design-card .a101-product-field--previous_price::after {
  content: "";
  position: absolute;
  left: 0;
  right: 14%;
  top: 48%;
  z-index: 3;
  height: 3px;
  transform: rotate(-7deg);
  background: currentColor;
}

.a101-cell-template-design-card .a101-previous-price-visual,
.a101-cell-template-design-card .a101-current-price-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  color: currentColor;
  font-size: calc(1em * var(--a101-price-scale, 1));
  line-height: 0.82;
}

.a101-cell-template-design-card .a101-previous-price-main,
.a101-cell-template-design-card .a101-current-price-main {
  font-size: 1em;
  line-height: 0.9;
}

.a101-cell-template-design-card .a101-previous-price-comma,
.a101-cell-template-design-card .a101-current-price-comma {
  align-self: flex-end;
  margin: 0 1px 0.13em 0;
  font-size: 0.44em;
  line-height: 1;
}

.a101-cell-template-design-card .a101-previous-price-tail,
.a101-cell-template-design-card .a101-current-price-tail {
  display: flex;
  align-items: flex-start;
  line-height: 0.8;
  margin-top: 0.02em;
}

.a101-cell-template-design-card .a101-current-price-tail {
  flex-direction: column;
  line-height: 0.75;
  margin-top: 0.04em;
}

.a101-cell-template-design-card .a101-previous-price-cents,
.a101-cell-template-design-card .a101-current-price-cents {
  display: flex;
  align-items: flex-start;
  font-size: 0.42em;
  line-height: 0.8;
}

.a101-cell-template-design-card .a101-current-price-cents {
  font-size: 0.43em;
  line-height: 0.85;
}

.a101-cell-template-design-card .a101-previous-price-currency,
.a101-cell-template-design-card .a101-current-price-currency {
  margin-right: 2px;
  font-size: 0.66em;
  line-height: 0.9;
}

.a101-cell-template-design-card .a101-current-price-unit {
  margin-top: 1px;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 0.24em;
  font-weight: 900;
  line-height: 1;
}

.a101-cell-template-design-card .a101-product-field--current_price {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: visible;
  padding: 14px 8px 7px 12px;
  border-radius: 9px;
  font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif !important;
  font-weight: 900;
  line-height: 0.85;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.a101-cell-template-design-card .a101-current-price-visual {
  left: var(--a101-price-content-x, 0px);
  top: var(--a101-price-content-y, 0px);
  align-items: flex-end;
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
  line-height: 0.78;
}

.a101-cell-template-design-card .a101-product-field--current_price[data-editor="true"] .a101-current-price-visual {
  cursor: move;
}

.a101-cell-template-design-card .a101-current-price-visual[data-price-content-selected="true"] {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.a101-cell-template-design-card .a101-current-price-visual[data-price-content-selected="true"]::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 13px;
  height: 13px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
}

.a101-cell-template-design-card .a101-current-price-main {
  line-height: 0.78;
}

.a101-cell-template-design-card .a101-current-price-comma {
  margin: 0 1px 0.08em 0;
}

.a101-cell-template-design-card .a101-current-price-tail {
  margin-top: 0;
  margin-bottom: 0.05em;
}

.a101-cell-template-design-card .a101-current-price-currency {
  margin-right: 2px;
  margin-bottom: 0.04em;
  font-size: 0.64em;
  line-height: 0.86;
}

.a101-cell-template-design-card .a101-product-field--discount {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 8px;
  font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif !important;
  font-weight: 900;
  line-height: 0.9;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
}

.a101-cell-template-design-card .a101-product-field--discount::before {
  content: none;
}

.a101-cell-template-design-card .a101-discount-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: currentColor;
  font-size: calc(1em * var(--a101-price-scale, 1));
  line-height: 0.85;
}

.a101-cell-template-design-card .a101-discount-percent {
  align-self: flex-start;
  margin-top: 0.08em;
  font-size: 0.58em;
  line-height: 1;
}

.a101-cell-template-design-card .a101-discount-number {
  font-size: 1em;
  line-height: 0.9;
}

.a101-cell-template-design-card .a101-product-field--photo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 2px;
  user-select: none;
}

.a101-template-product-photo {
  position: relative;
  display: flex;
  width: min(100%, 88px);
  height: min(100%, 76px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background: linear-gradient(160deg, #ffffff 0%, #ffffff 46%, #e9fbff 47%, #d7f6fb 100%);
  box-shadow: 0 6px 10px rgba(15, 23, 42, 0.14);
  color: #111111;
  font-family: "Panton", Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.a101-template-product-photo::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 9px;
  right: 9px;
  height: 11px;
  border-radius: 999px;
  background: #e30613;
}

.a101-template-product-photo span {
  position: relative;
  z-index: 1;
  display: block;
}

.a101-template-product-photo span:first-child {
  margin-top: 10px;
  color: #ffffff;
  font-size: 10px;
}

.a101-cell-template-design-card .a101-product-field--separator {
  overflow: visible;
  background-image: repeating-linear-gradient(
    to bottom,
    currentColor 0,
    currentColor 10px,
    transparent 10px,
    transparent 20px
  );
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 2px 20px;
  opacity: 0.75;
}

@media (max-width: 1280px) {
  .a101-cell-template-workspace {
    grid-template-columns: minmax(260px, 320px) minmax(520px, 1fr);
  }

  .a101-cell-template-code-panel {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 900px) {
  .a101-cell-template-workspace {
    grid-template-columns: 1fr;
  }

  .a101-cell-template-sidebar {
    position: static;
  }

  .a101-cell-template-stage {
    min-width: 100%;
    padding: 32px;
  }
}
