/*
 * Thank-you page and Môj účet (Integration/MyAccount): the state of the order and the quiet "Zrušiť".
 * Feedback of the owner of 14. 11. 2026: the state in red with an hourglass, "Zrušiť" once and not loud.
 * Colours follow the theme (--red, --ink, --muted) with the brand values as fallback; the theme may restyle it.
 */
.frm-state {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 0 24px;
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--red, #B11719);
  color: #fff;
}
.frm-state__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.frm-state__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.frm-state--work .frm-state__icon svg,
.frm-state--wait .frm-state__icon svg {
  animation: frm-state-turn 3s ease-in-out infinite;
}
.frm-state__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.frm-state__text {
  margin: 4px 0 0;
  opacity: .92;
}
.frm-state--done {
  background: #3E7B3A;
}
.frm-state--off {
  background: #F0EBDF;
  color: var(--ink, #2E2114);
}
.frm-state--off .frm-state__icon {
  background: rgba(46, 33, 20, .08);
}
@keyframes frm-state-turn {
  0%, 70% { transform: rotate(0); }
  85%, 100% { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .frm-state__icon svg { animation: none !important; }
}

.frm-cancel {
  margin: 6px 0 0;
}
.frm-cancel p {
  margin: 0;
  font-size: .9375rem;
  color: var(--muted, #5E4A38);
}
.frm-cancel__link {
  display: inline;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.frm-cancel__link:hover,
.frm-cancel__link:focus-visible {
  background: none;
  color: var(--red, #B11719);
}

/*
 * Thank-you page of the plugin (templates/checkout/thankyou.php, 16. 11. 2026), in the look of the order detail
 * in Môj účet (.odet of the theme): beige boxes, the summary with photos of the products, "Čo ďalej" links.
 */
.frm-ty {
  container-type: inline-size;
}
.frm-ty__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.frm-ty__main > * + * {
  margin-top: 18px;
}
.frm-ty__box,
.frm-ty .frm-order-schedule {
  padding: 22px 26px;
  border-radius: 20px;
  background: #F0EBDF;
}
.frm-ty .frm-order-schedule h2,
.frm-ty .frm-ty__sum h2,
.frm-ty .frm-ty__addr h3 {
  margin: 0 0 8px;
  font-family: var(--serif, Georgia, serif);
  font-weight: 600;
  line-height: 1.2;
}
.frm-ty .frm-order-schedule h2 { font-size: 1.25rem; }
.frm-ty .frm-pickup { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(46, 33, 20, .2); }
.frm-ty .frm-pickup:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.frm-ty .frm-pickup p { margin: 0 0 4px; }

.frm-ty__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
}
.frm-ty__facts dt {
  font-size: .875rem;
  color: var(--muted, #5E4A38);
}
.frm-ty__facts dd {
  margin: 2px 0 0;
  font-size: 1.0625rem;
}
.frm-ty__mail {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(46, 33, 20, .1);
  font-size: .9375rem;
  color: var(--muted, #5E4A38);
}

.frm-ty__addr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px 24px;
}
.frm-ty .frm-ty__addr h3 { font-size: 1.125rem; }
.frm-ty__addr address {
  font-style: normal;
  line-height: 1.55;
}

.frm-ty__acts {
  display: grid;
}
.frm-ty .frm-ty__acts a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(46, 33, 20, .08);
  /* !important: the theme colours every link in .entry red with a selector of higher weight. */
  color: var(--ink, #2E2114) !important;
  font-size: 1.0625rem;
  text-decoration: none;
}
.frm-ty .frm-ty__acts a:last-child { border-bottom: 0; }
.frm-ty .frm-ty__acts a:hover { color: var(--red, #B11719) !important; }
.frm-ty__acts a span { flex: 1; }
.frm-ty__i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.frm-ty .frm-ty__sum h2 { font-size: 1.375rem; }
.frm-ty__line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(46, 33, 20, .08);
}
.frm-ty__thumb {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg, #F3F0E8);
}
.frm-ty__thumb img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.frm-ty .frm-ty__name a {
  font-weight: 600;
  color: var(--ink, #2E2114) !important;
  text-decoration: none;
}
.frm-ty .frm-ty__name a:hover { color: var(--red, #B11719) !important; }
.frm-ty__name small {
  display: block;
  margin-top: 2px;
  font-size: .875rem;
  color: var(--muted, #5E4A38);
}
.frm-ty__q {
  color: var(--muted, #5E4A38);
  white-space: nowrap;
}
.frm-ty__price {
  min-width: 72px;
  text-align: right;
  white-space: nowrap;
}
.frm-ty__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 12px;
  font-size: 1.0625rem;
}
.frm-ty__total b {
  font-weight: 500;
  text-align: right;
}
.frm-ty__total small {
  display: block;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--muted, #5E4A38);
}
.frm-ty__total.is-sum {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(46, 33, 20, .12);
}
.frm-ty__total.is-sum b {
  font-size: 1.5rem;
  font-weight: 700;
}

/* One column: the summary with the photos right after the facts and the day, addresses and links at the end. */
@container (max-width: 860px) {
  .frm-ty__grid { grid-template-columns: 1fr; gap: 18px; }
  .frm-ty__main { display: contents; }
  .frm-ty__main > * { order: 1; margin-top: 0 !important; }
  .frm-ty__sum { order: 2; }
  .frm-ty__main > .frm-ty__addr { order: 3; }
  .frm-ty__main > .frm-ty__acts { order: 4; }
}
@container (max-width: 520px) {
  .frm-ty__box, .frm-ty .frm-order-schedule { padding: 18px; }
  .frm-ty__line { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 14px; }
  .frm-ty__thumb { width: 56px; height: 56px; grid-row: 1 / 3; }
  .frm-ty__thumb img { width: 48px; height: 48px; }
  .frm-ty__q { grid-column: 2; grid-row: 2; }
  .frm-ty__price { grid-column: 3; grid-row: 1 / 3; }
}
