/*
 * Makerique Boutique theme for OpenCart 4
 * Copyright (c) 2026 Heliopsy. All Rights Reserved.
 * https://makerique.com
 * SPDX-License-Identifier: LicenseRef-Proprietary
 * Proprietary and confidential. Unauthorized copying, distribution, or
 * modification of this file, by any means, is strictly prohibited.
 */

/* Express order (capability fast-order) and contact links. Tokens only. */
.mr-fo {
  margin: 1.75rem 0;
  padding: 1.25rem 1.4rem;
  background: var(--mr-surface-2, var(--mr-surface));
  border: 1px solid var(--mr-border);
  border-left: 4px solid var(--mr-primary);
  border-radius: var(--mr-radius);
  box-shadow: var(--mr-shadow);
  scroll-margin-top: 90px;
}
.mr-fo[hidden] { display: none; }
.mr-fo-title { font-size: 1.25rem; margin: 0 0 .35rem; color: var(--mr-heading); }
.mr-fo-title i { color: var(--mr-primary); margin-right: .25rem; }
.mr-fo-intro { margin: 0 0 1rem; color: var(--mr-muted); }
.mr-fo-product { margin: 0 0 .75rem; font-weight: 600; color: var(--mr-heading); }
.mr-fo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .75rem 1rem; }
.mr-fo-field { margin-bottom: .75rem; }
.mr-fo-field .form-label { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.mr-fo-opt { font-weight: 400; color: var(--mr-muted); }
.mr-fo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mr-fo-err { color: var(--mr-error, #b3261e); font-size: .85rem; display: none; margin-top: .2rem; }
.mr-fo-err.d-block, .mr-fo-err--block.d-block { display: block; }
.mr-fo-consent { margin: .25rem 0 1rem; }
.mr-fo-consent .form-check-input { margin-top: .25rem; }
.mr-fo-submit { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.mr-fo-call { margin: 1rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; color: var(--mr-muted); }
.mr-fo-call .mr-ct-tel { font-weight: 700; }

/* Product-surface buttons. */
.mr-fo-open { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--mr-primary); background: transparent; color: var(--mr-primary); border-radius: var(--mr-radius-sm, var(--mr-radius)); padding: .5rem .9rem; font-weight: 600; }
.mr-fo-open:hover, .mr-fo-open:focus-visible { background: var(--mr-primary); color: #fff; }
.mr-fo-open--card { width: 100%; margin-top: .5rem; font-size: .85rem; }
.mr-fo-open { min-width: 0; max-width: 100%; text-align: center; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
/* On a card the button sits in the icon-button row. The card rules
   `.product-thumb .content .button button` (flex: 1 1 0) and
   `.product-thumb .button button` (width: 33.33%) out-rank `.mr-fo-open--card`,
   which squeezed it to icon width and let the label overflow. Own full-width row,
   label wraps, height follows the text. */
.product-thumb .button .mr-fo-open.mr-fo-open--card,
.product-thumb .content .button button.mr-fo-open--card { flex: 1 0 100%; width: 100%; height: auto; margin-top: .45rem; }
.mr-fo-open--page { margin-left: .5rem; }
@media (max-width: 575.98px) { .mr-fo-open--page { margin: .5rem 0 0; width: 100%; } }

/* Product dialog. */
.mr-fo-dialog { border: 0; border-radius: var(--mr-radius); padding: 0; width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); background: var(--mr-surface); color: var(--mr-text); }
.mr-fo-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.mr-fo-dialog .mr-fo { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.mr-fo-dialog-close { position: absolute; top: .4rem; right: .7rem; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--mr-muted); cursor: pointer; z-index: 1; }

/* Cart drawer link. */
.mr-fo-drawer-link { display: block; margin-top: .75rem; text-align: center; font-weight: 600; color: var(--mr-primary); }

/* Contact links. */
.mr-ct-tel { white-space: nowrap; }
.mr-ct-ico { display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #7360f2; color: #fff !important; font-size: .8em; text-decoration: none; vertical-align: middle; }
.mr-ct-ico.mr-ct-wa { background: #25d366; }
.mr-ct-ico:hover, .mr-ct-ico:focus-visible { filter: brightness(.9); }
.mr-ct-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: var(--mr-radius-pill, 999px); background: #7360f2; color: #fff !important; font-weight: 600; font-size: .9rem; text-decoration: none; }
.mr-ct-pill.mr-ct-wa { background: #1a9d4b; }

/* Sticky mobile bar. */
.mr-ct-bar { display: none; }
@media (max-width: 991.98px) {
  .mr-ct-bar { display: flex; position: fixed; left: 0; right: 0; bottom: var(--mr-mobile-nav-height, 0px); z-index: 1030; gap: 1px; background: var(--mr-border); box-shadow: 0 -2px 10px rgba(0, 0, 0, .12); }
  .mr-ct-bar-btn { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem .5rem; min-height: 48px; font-weight: 700; text-decoration: none; color: #fff; background: var(--mr-primary); }
  .mr-ct-bar-viber { background: #7360f2; }
  .mr-ct-bar-wa { background: #1a9d4b; }
  body.mr-has-ct-bar { padding-bottom: calc(52px + var(--mr-mobile-nav-height, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .mr-fo, .mr-fo-open { transition: none; } }
