/*
 * 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.
 */

/* =========================================================================
   Makerique Boutique : countdown timers
   Shared by the standalone home-page campaign block and the product-page
   "offer ends in" timer. Styled off the theme tokens; ticked by a small
   inline script (data-mr-countdown).
   ========================================================================= */

.mr-countdown {
  --mr-cd-size: 3rem;
  text-align: center;
}

.mr-countdown__grid {
  display: inline-flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: center;
}

.mr-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.25rem;
  padding: 0.6rem 0.4rem;
  border-radius: var(--mr-radius, 12px);
  background: var(--mr-card, #fff);
  border: 1px solid var(--mr-border, rgba(0, 0, 0, 0.08));
}

.mr-countdown__num {
  font-family: var(--mr-font-display, inherit);
  font-size: var(--mr-cd-size);
  font-weight: 700;
  line-height: 1;
  color: var(--mr-primary, #9e5842);
  font-variant-numeric: tabular-nums;
}

.mr-countdown__label {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mr-muted-foreground, #6b625b);
}

.mr-countdown__done {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mr-foreground, #1c1917);
}

/* Product-page "offer ends in" variant: compact, inline-ish, near the price. */
.mr-deal-countdown {
  margin-top: 0.9rem;
}
.mr-deal-countdown__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mr-primary, #9e5842);
}
.mr-deal-countdown .mr-countdown {
  text-align: start;
}
.mr-deal-countdown .mr-countdown__grid {
  gap: 0.4rem;
}
.mr-deal-countdown .mr-countdown__unit {
  min-width: 3rem;
  padding: 0.35rem 0.3rem;
}
.mr-deal-countdown .mr-countdown {
  --mr-cd-size: 1.6rem;
}

@media (max-width: 480px) {
  .mr-countdown {
    --mr-cd-size: 2.2rem;
  }
  .mr-countdown__unit {
    min-width: 3.4rem;
  }
}
