/* abudhabibuscard.com — bits Tailwind CDN can't do well
   prefix: hbc- */

:root {
  --hbc-sage:       #639953;
  --hbc-sage-dark:  #4d7a40;
  --hbc-sage-soft:  #eaf3e6;
  --hbc-bg:         #f7f9fb;
  --hbc-line:       #e5e7eb;
  --hbc-mute:       #6b7280;
  --hbc-ink:        #0f1419;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; }
html[dir="rtl"] body { font-family: 'Tajawal', system-ui, sans-serif; }

.hbc-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
html[dir="rtl"] .hbc-select {
  background-position: left 14px center;
  padding-right: 14px;
  padding-left: 38px;
}

.hbc-weave {
  background-image: radial-gradient(circle at 1px 1px, rgba(99, 153, 83, 0.18) 1px, transparent 0);
  background-size: 18px 18px;
}

.hbc-loading { position: relative; }
.hbc-loading::after {
  content: '';
  position: absolute;
  right: 14px;
  top: calc(50% + 5px);
  width: 14px; height: 14px;
  border: 2px solid var(--hbc-line);
  border-top-color: var(--hbc-sage);
  border-radius: 50%;
  animation: hbc-rot 1s linear infinite;
}
@keyframes hbc-rot { to { transform: rotate(360deg); } }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .hbc-plus { transform: rotate(45deg); background:#639953; color:#ffffff; }
.hbc-plus { transition: transform .25s, background .15s, color .15s; }

.hbc-readout-bg {
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.12), transparent 50%),
    #0f1419;
}

.hbc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #639953;
  box-shadow: 0 0 0 4px rgba(99, 153, 83, .15);
}

.hbc-input--error { border-color: #b91c1c !important; }
.hbc-input--error:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, .15) !important; }

/* mobile drawer (CSS-driven, no Tailwind data-variants) */
.hbc-drawer {
  position: fixed; inset: 0; z-index: 40;
  visibility: hidden;
  pointer-events: none;
}
.hbc-drawer[data-open="true"] {
  visibility: visible;
  pointer-events: auto;
}
.hbc-drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 20, 25, .42);
  opacity: 0;
  transition: opacity .25s ease;
}
.hbc-drawer[data-open="true"] .hbc-drawer__backdrop { opacity: 1; }
.hbc-drawer__panel {
  position: absolute; right: 0; top: 0;
  height: 100%; width: 86%; max-width: 360px;
  background: var(--hbc-bg);
  border-left: 1px solid var(--hbc-line);
  box-shadow: -16px 0 40px -12px rgba(15, 20, 25, .15);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.hbc-drawer[data-open="true"] .hbc-drawer__panel { transform: translateX(0); }

html[dir="rtl"] .hbc-drawer__panel {
  left: 0; right: auto;
  border-left: 0; border-right: 1px solid var(--hbc-line);
  transform: translateX(-100%);
  box-shadow: 16px 0 40px -12px rgba(15, 20, 25, .15);
}
html[dir="rtl"] .hbc-drawer[data-open="true"] .hbc-drawer__panel { transform: translateX(0); }

/* prevent scroll behind open drawer */
body.hbc-noscroll { overflow: hidden; }

@media (max-width: 640px) {
  .hbc-pricetable thead { display: none; }
  .hbc-pricetable, .hbc-pricetable tbody, .hbc-pricetable tr, .hbc-pricetable td {
    display: block; width: 100%;
  }
  .hbc-pricetable tr { border-bottom: 1px solid var(--hbc-line); padding: 10px 0; }
  .hbc-pricetable td {
    padding: 6px 14px; border: 0;
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  }
  .hbc-pricetable td::before {
    content: attr(data-label);
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px;
    color: var(--hbc-mute); font-weight: 600;
  }
}

.hbc-footer-bg::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 60px;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.10) 1px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
}
