/* Motexa order page — pistonsoak.eu pattern */
@import url('https://fonts.googleapis.com/css2?family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=Oranienbaum&display=swap');

* { box-sizing: border-box; }

.motexa-order-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
  position: relative;
}

.motexa-city-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #f8fafc;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.motexa-city-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.38) 0%,
    rgba(248, 250, 252, 0.52) 45%,
    rgba(248, 250, 252, 0.68) 100%
  );
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.motexa-city-bg.is-visible {
  opacity: 1;
}

.motexa-order-top,
.motexa-order-wrap {
  position: relative;
  z-index: 1;
}

.motexa-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #0b0b0d, #17181d);
  border-bottom: 2px solid rgba(200, 16, 46, 0.45);
}

.motexa-order-top__left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.motexa-order-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.motexa-order-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.motexa-order-brand__name {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.motexa-order-back {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.motexa-order-back:hover { color: #fff; }

.motexa-order-cart-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
}

.motexa-order-cart-link:hover { color: #fff; }

.motexa-order-top__right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.motexa-order-top .motexa-lang {
  --motexa-lang-pad: 3px;
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-width: 5.6rem;
  padding: var(--motexa-lang-pad);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  user-select: none;
}
.motexa-order-top .motexa-lang__thumb {
  position: absolute;
  top: var(--motexa-lang-pad);
  bottom: var(--motexa-lang-pad);
  left: var(--motexa-lang-pad);
  width: calc(50% - var(--motexa-lang-pad));
  border-radius: 999px;
  background: #f3efe6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
  pointer-events: none;
  z-index: 0;
}
.motexa-order-top .motexa-lang.is-en .motexa-lang__thumb { transform: translateX(100%); }
.motexa-order-top .motexa-lang__opt {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.75rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}
.motexa-order-top .motexa-lang__opt:hover { color: #fff; }
.motexa-order-top .motexa-lang__opt.is-active { color: #2c0453; }

.motexa-order-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.motexa-order-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.motexa-order-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.motexa-order-head p {
  margin: 0;
  color: #64748b;
}

.motexa-order-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
}

.motexa-order-grid > .motexa-order-card,
.motexa-order-grid > .motexa-order-customer-row {
  height: 100%;
  min-width: 0;
}

.motexa-order-side {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  min-height: 100%;
}

.motexa-order-side > .motexa-order-summary {
  margin-top: auto;
}

.motexa-order-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}

.motexa-order-customer-row {
  position: relative;
  display: block;
  min-width: 0;
  height: 100%;
}

.motexa-order-customer-row > .motexa-order-card--customer {
  width: 100%;
  height: 100%;
}

.motexa-office-landmark {
  position: absolute;
  top: 0;
  right: calc(100% + 0.7rem);
  width: 168px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.05rem;
  pointer-events: none;
  z-index: 2;
}

.motexa-office-landmark:not([hidden]) {
  display: flex;
}

.motexa-office-landmark__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.motexa-office-landmark__item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.motexa-office-landmark__img {
  display: block;
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.motexa-office-landmark__caption {
  margin: 0;
  max-width: 11rem;
  font-family: 'Oranienbaum', 'Old Standard TT', 'Times New Roman', Times, serif;
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.05em;
  line-height: 1.25;
  color: #1a1520;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* On wide screens pull the landmark toward the left edge of the window. */
@media (min-width: 1280px) {
  .motexa-order-customer-row.has-office-landmark .motexa-office-landmark {
    right: auto;
    left: calc(-1 * ((100vw - 1100px) / 2) - 0.35rem);
  }
}

.motexa-order-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.motexa-field {
  margin-bottom: 0.85rem;
}

.motexa-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.motexa-field .req { color: #b42318; }

.motexa-field--invalid label {
  color: #b42318;
}

.motexa-field--invalid input,
.motexa-field--invalid .motexa-search-select__input {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.18);
}

.motexa-field input,
.motexa-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: #fff;
}

.motexa-field select:disabled {
  background: #f8fafc;
  color: #94a3b8;
}

.motexa-search-select {
  position: relative;
}

.motexa-search-select__control {
  position: relative;
}

.motexa-search-select__input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.55rem 3.5rem 0.55rem 0.75rem;
  font: inherit;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
}

.motexa-search-select__control .motexa-input-clear__btn {
  right: 2rem;
}

.motexa-search-select__input:disabled {
  background-color: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.motexa-search-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.motexa-search-select__list:not([hidden]) {
  display: block;
}

.motexa-search-select__item {
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font: inherit;
}

.motexa-search-select__item:hover,
.motexa-search-select__item.active {
  background: #fff1f2;
}

.motexa-search-select__item .name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.motexa-search-select__item .sub {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.motexa-search-select__empty {
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.motexa-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.motexa-econt-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff8f8;
  border: 1px solid rgba(200, 16, 46, 0.15);
  border-radius: 10px;
}

.motexa-econt-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.motexa-input-clear {
  position: relative;
}

.motexa-field .motexa-input-clear > input {
  padding-right: 2.35rem;
}

.motexa-input-clear__btn {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.motexa-input-clear__btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.motexa-input-clear__btn:focus-visible {
  outline: 2px solid rgba(200, 16, 46, 0.35);
  outline-offset: 1px;
}

.motexa-econt-note {
  margin: 0 0 0.85rem;
  color: #64748b;
  font-size: 0.88rem;
}

.motexa-courier-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.motexa-courier-pick h3 {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.motexa-courier-pick__option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.motexa-courier-pick__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.motexa-courier-pick__option.is-selected,
.motexa-courier-pick__option:has(input:checked) {
  border-color: rgba(200, 16, 46, 0.55);
  background: #fff8f8;
  box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.12);
}

.motexa-courier-pick__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 32px;
  object-fit: contain;
}

.motexa-courier-pick__logo--pigeon {
  height: 36px;
}

@media (max-width: 520px) {
  .motexa-courier-pick {
    grid-template-columns: 1fr;
  }
}

.motexa-delivery-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.motexa-delivery-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.motexa-delivery-option:has(input:checked) {
  border-color: rgba(200, 16, 46, 0.55);
  background: #fff8f8;
}

.motexa-delivery-option input {
  margin: 0;
}

.motexa-delivery-panel {
  display: none;
}

.motexa-delivery-panel.motexa-delivery-panel--visible {
  display: block;
}

.motexa-cart-empty {
  margin: 0;
  padding: 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-size: 0.92rem;
}

.motexa-cart-empty a {
  color: #c8102e;
  font-weight: 600;
}

.motexa-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.motexa-field-error,
.motexa-order-error {
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
  background: #fff5f5;
  border-left: 3px solid #b42318;
  color: #b42318;
  font-size: 0.9rem;
}

.motexa-cart-items {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.motexa-cart-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.price-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  overflow: hidden;
  isolation: isolate;
}

.price-box.hidden { display: none; }

.price-box.has-city-bg {
  background-image:
    linear-gradient(
      105deg,
      rgba(8, 10, 14, 0.88) 0%,
      rgba(8, 10, 14, 0.72) 42%,
      rgba(8, 10, 14, 0.45) 100%
    ),
    var(--price-box-bg);
  background-size: cover;
  background-position: center 40%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.price-box.has-city-bg .price-left {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.price-left {
  flex: 1;
  min-width: 0;
}

.price-left .label { font-size: 0.78rem; opacity: 0.85; }
.price-left .amount { font-size: 1.6rem; font-weight: 800; margin: 0.15rem 0; }
.price-left .courier { font-size: 0.78rem; opacity: 0.85; }

.motexa-price-loading {
  color: #64748b;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.motexa-totals {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
  margin-bottom: 1rem;
}

.motexa-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.motexa-total-row--grand {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 1.05rem;
  font-weight: 800;
}

.motexa-payment-note {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 0.85rem;
}

.motexa-btn-primary {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: #062226;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.motexa-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.motexa-city-herald {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex: 0 0 auto;
}

.motexa-city-herald:not([hidden]) {
  display: block;
}

.motexa-city-herald.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motexa-city-herald__panel {
  padding: 0.15rem 0.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  min-height: 0;
}

.motexa-city-herald__coat {
  width: min(78%, 200px);
  height: auto;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.28s ease 0.04s, transform 0.28s ease 0.04s;
}

.motexa-city-herald.is-visible .motexa-city-herald__coat {
  opacity: 1;
  transform: scale(1);
}

.motexa-city-herald__motto {
  margin: 0;
  font-family: 'Oranienbaum', 'Old Standard TT', 'Times New Roman', Times, serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.05em;
  color: #1a1520;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  max-width: 16rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(3px);
  transition:
    opacity 0.4s ease 0.14s,
    transform 0.4s ease 0.14s,
    filter 0.4s ease 0.14s,
    letter-spacing 0.5s ease 0.14s;
}

.motexa-city-herald__motto--long {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  max-width: 16rem;
  letter-spacing: 0.03em;
}

.motexa-city-herald.is-visible .motexa-city-herald__motto {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  letter-spacing: 0.12em;
}

.motexa-city-herald.is-visible .motexa-city-herald__motto--long {
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .motexa-order-grid { grid-template-columns: 1fr; }
  .motexa-order-grid > .motexa-order-card,
  .motexa-order-grid > .motexa-order-customer-row { height: auto; }
  .motexa-order-side { height: auto; min-height: 0; }
  .motexa-order-side > .motexa-order-summary { margin-top: 0; }
  .motexa-row2 { grid-template-columns: 1fr; }
  .motexa-delivery-type { grid-template-columns: 1fr; }
  .motexa-order-top__left { gap: 0.65rem; }
  .motexa-order-logo { height: 28px; max-width: 120px; }
  .motexa-city-herald__coat { width: min(70%, 170px); max-height: 160px; }
  .motexa-order-customer-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    height: auto;
  }
  .motexa-order-customer-row > .motexa-order-card--customer { height: auto; width: 100%; }
  .motexa-office-landmark {
    position: static;
    right: auto;
    left: auto;
    width: 132px;
    gap: 0.85rem;
  }
  .motexa-office-landmark__img { width: 132px; height: 132px; }
  .motexa-office-landmark__caption { font-size: 0.95rem; max-width: 10rem; }
}


.motexa-eu-cta{margin:0 0 1rem;padding:.9rem 1rem;background:linear-gradient(135deg,#1a0b2e,#2c0453);color:#fff;border-radius:8px}
.motexa-eu-cta__inner{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;align-items:center;justify-content:space-between}
.motexa-eu-cta__text{flex:1 1 16rem;font-size:.92rem;line-height:1.4}
.motexa-eu-cta__text strong{display:block;font-size:1rem;margin-bottom:.2rem}
.motexa-eu-cta__btn{display:inline-block;padding:.55rem 1rem;background:#f0ede4;color:#2c0453;font-weight:700;text-decoration:none;border-radius:6px}
