/* Zarmad Gold Calculator widget – all comments in English */

.zr-gold-widget {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px 28px 32px;
  background: radial-gradient(120% 160% at 0% 0%, #f7e7b8 0%, #e6c873 38%, #cfa74a 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,0.12);
  color: #111827;
  direction: rtl;
  font-family: 'ZarmadFont', system-ui, -apple-system, Segoe UI, Roboto, Arial, 'Noto Naskh Arabic', Tahoma, sans-serif;
}

.zr-gold-widget * {
  box-sizing: border-box;
}

/* Background & wave */
.zr-gold-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.zr-gold-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(255,255,255,0.55) 0%, transparent 45%);
  opacity: .7;
}

/* Wave image exactly as requested */
.zr-gold-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: auto;
  width: 140%;
  transform: translateX(0%) translateY(-21px);
}

/* Inner layout */
.zr-gold-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Header: right side text + tabs, left side ticker */
.zr-gold-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

/* Text block (right) */
.zr-gold-text {
  text-align: right;
  max-width: 320px;
}

.zr-gold-title {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 1.35rem;
}

.zr-gold-subtitle {
  margin: 0 0 10px;
  font-size: .9rem;
  color: #374151;
}

/* Tabs */
.zr-gold-tabs {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,0.16);
  overflow: hidden;
  background: rgba(255,255,255,0.5);
}

.zr-gold-tab {
  border: none;
  background: transparent;
  padding: 6px 26px;
  font-family: inherit;
  font-size: .9rem;
  cursor: pointer;
  color: #4b5563;
}

.zr-gold-tab-active {
  background: #facc15;
  color: #111827;
}

/* Ticker block (left) */
.zr-gold-ticker {
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  font-size: .8rem;
  white-space: nowrap;
}

.zr-gold-delta {
  font-weight: 700;
  color: #dc2626;
  min-width: 3.2rem;
  text-align: center;
}

.zr-gold-delta.positive {
  color: #16a34a;
}

.zr-gold-label {
  color: #6b7280;
}

.zr-gold-separator {
  width: 1px;
  height: 16px;
  background: #e5e7eb;
}

.zr-gold-price-label {
  color: #4b5563;
}

.zr-gold-price {
  font-weight: 800;
  color: #15803d;
}

.zr-gold-unit {
  color: #4b5563;
}

/* Main row: amount + weight + CTA in one white box */
.zr-gold-row {
  margin-top: 16px;
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1.4fr) minmax(0,1fr);
  gap: 12px;
  align-items: center;
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

/* Fields */
.zr-gold-field label {
  display: block;
  margin-bottom: 4px;
  font-size: .8rem;
  color: #4b5563;
  text-align: right;
}

.zr-gold-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,0.16);
  padding: 12px 14px;
  font-family: inherit;
  font-size: .9rem;
  background: #f9fafb;
}

.zr-gold-input::placeholder {
  color: #9ca3af;
}

.zr-gold-input:focus {
  outline: none;
  border-color: #facc15;
  box-shadow: 0 0 0 2px rgba(252,211,77,0.35);
}

/* CTA column */
.zr-gold-cta-wrap {
    align-self: stretch;
    display: flex;
    align-items: stretch;
    height: min-content;
    padding-top: 23px;
}

.zr-gold-cta {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(90deg, #facc15, #f59e0b);
  font-family: inherit;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  color: #111827;
  box-shadow: 0 12px 26px rgba(161,98,7,0.35);
}
.zr-gold-cta:hover{
	background: linear-gradient(90deg, #f59e0b, #facc15);
}

/* Responsive */
@media (max-width: 900px) {
  .zr-gold-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .zr-gold-widget {
    padding: 18px 16px 22px;
    border-radius: 20px;
  }

  .zr-gold-row {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
  }

  .zr-gold-cta-wrap {
    align-self: auto;
  }
}
