/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* [goldrechner-countdown] shortcode widget */

.samet-goldrechner-countdown-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 0;
  border: 1px solid #cdb081;
  background: rgba(205, 176, 129, 0.08);
  color: #cdb081;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.3;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color 0.2s ease;
  outline: none;
}

.samet-goldrechner-countdown-widget:hover,
.samet-goldrechner-countdown-widget:focus-within,
.samet-goldrechner-countdown-widget.is-open {
  background: rgba(205, 176, 129, 0.18);
}

.samet-goldrechner-countdown-icon {
  display: inline-flex;
  flex: none;
  position: relative;
  top: 1px;
  color: #cdb081;
}

.samet-goldrechner-countdown-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #cdb081;
  opacity: 0.85;
  white-space: nowrap;
}

.samet-goldrechner-countdown-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #cdb081;
  opacity: 1;
}

.samet-goldrechner-countdown-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.samet-goldrechner-countdown-widget:hover .samet-goldrechner-countdown-tooltip,
.samet-goldrechner-countdown-widget:focus-within .samet-goldrechner-countdown-tooltip,
.samet-goldrechner-countdown-widget.is-open .samet-goldrechner-countdown-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.samet-goldrechner-countdown-tooltip img {
  /* !important throughout: themes commonly ship a generic responsive-image
     rule (e.g. "img { max-width: 100%; height: auto; }") that otherwise
     squashes this down to whatever narrow container it's absolutely
     positioned in - this is a fixed-size UI element, not flowing content,
     so it must always render at the PNG's native size to stay legible. */
  display: block !important;
  width: 260px !important;
  height: 190px !important;
  max-width: none !important;
  min-width: 260px !important;
  min-height: 190px !important;
  border-radius: 0;
  background: #1b1b1b;
}

.samet-goldrechner-countdown-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #1b1b1b;
}
