/* Aruba Deluxe Connect — customer widget */
.adac-root { --adac-color: #177f8e; }
.adac-root * { box-sizing: border-box; }

/* Floating launcher — stacked ABOVE other chat buttons (e.g. WhatsApp/Chaty)
   so it doesn't overlap. Offsets overridable via --adac-bottom / --adac-side. */
.adac-launcher {
  position: fixed; z-index: 99998;
  right: var(--adac-side, 20px); bottom: var(--adac-bottom, 96px);
  width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--adac-color); color: #fff;
  display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.adac-launcher svg { width: 34px; height: 34px; }
.adac-launcher:hover { filter: brightness(1.05); }

/* Invite popup next to the launcher */
.adac-greeting {
  position: fixed; z-index: 99998;
  right: var(--adac-side, 20px); bottom: calc(var(--adac-bottom, 96px) + 70px);
  max-width: 250px; background: #fff; color: #1f2937;
  border-radius: 14px; padding: 12px 30px 12px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  animation: adac-pop .25s ease-out;
}
.adac-greeting::after {
  content: ''; position: absolute; right: 22px; bottom: -7px;
  width: 14px; height: 14px; background: #fff; transform: rotate(45deg);
  box-shadow: 3px 3px 6px rgba(0,0,0,.06);
}
.adac-greet-text { cursor: pointer; }
.adac-greet-close {
  position: absolute; top: 4px; right: 6px; border: none; background: none;
  font-size: 18px; line-height: 1; color: #9ca3af; cursor: pointer;
}
@keyframes adac-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Panel */
.adac-panel {
  display: flex; flex-direction: column; background: #fff; color: #1f2937;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden;
}
.adac-floating .adac-panel {
  position: fixed; z-index: 99999;
  right: var(--adac-side, 20px); bottom: calc(var(--adac-bottom, 96px) + 64px);
  width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 180px);
  box-shadow: 0 10px 40px rgba(0,0,0,.28);
}
.adac-inline-panel { width: 100%; max-width: 420px; height: 560px; margin: 0 auto; }
.adac-hidden { display: none !important; }

.adac-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--adac-color); color: #fff; padding: 12px 14px; flex: 0 0 auto;
}
.adac-title { font-weight: 700; font-size: 15px; }
.adac-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.adac-body { flex: 1 1 auto; overflow-y: auto; padding: 12px; }

.adac-info, .adac-intro { color: #6b7280; font-size: 14px; padding: 8px 2px; }

/* Reset theme button bleed inside the widget */
.adac-panel button, .adac-launcher, .adac-trigger {
  text-transform: none; letter-spacing: normal; font-family: inherit; box-shadow: none;
  -webkit-appearance: none; appearance: none;
}

/* Activities */
.adac-activities { display: flex; flex-direction: column; gap: 10px; }
.adac-activity {
  display: flex; gap: 10px; align-items: center; text-align: left; cursor: pointer;
  background: #fff; color: #1f2937; border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px; width: 100%;
}
.adac-activity:hover { border-color: var(--adac-color); background: #fff; }
.adac-act-img { width: 56px; height: 56px; border-radius: 8px; background-size: cover; background-position: center; flex: 0 0 auto; background-color:#f3f4f6; }
.adac-act-title { font-weight: 600; font-size: 14px; color: #1f2937; }
.adac-act-price { color: var(--adac-color); font-weight: 700; font-size: 13px; margin-top: 2px; }

/* Form */
.adac-form { display: flex; flex-direction: column; gap: 10px; }
.adac-form-title { font-weight: 700; font-size: 15px; }
.adac-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #374151; }
.adac-field input, .adac-field textarea {
  border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; font: inherit; width: 100%;
}
.adac-row { display: flex; gap: 8px; }
.adac-row .adac-field { flex: 1; }

.adac-primary {
  background: var(--adac-color); color: #fff; border: none; border-radius: 9px;
  padding: 11px; font-weight: 700; cursor: pointer; font-size: 14px;
}
.adac-secondary { background: none; border: none; color: #6b7280; cursor: pointer; padding: 8px; font-size: 13px; }
.adac-link { background: none; border: none; color: var(--adac-color); cursor: pointer; font-size: 12px; padding: 6px; }

/* Chat */
.adac-chat { display: flex; flex-direction: column; height: 100%; }
.adac-thread { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.adac-msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.35; word-wrap: break-word; }
.adac-mine { align-self: flex-end; background: var(--adac-color); color: #fff; border-bottom-right-radius: 4px; }
.adac-theirs { align-self: flex-start; background: #f1f3f5; color: #1f2937; border-bottom-left-radius: 4px; }
.adac-msg-text { white-space: pre-wrap; }
.adac-pay {
  display: inline-block; margin-top: 8px; background: #1e9e63; color: #fff !important;
  padding: 9px 18px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 13px;
}
.adac-composer { display: flex; gap: 8px; padding-top: 8px; flex: 0 0 auto; }
.adac-input { flex: 1; border: 1px solid #d1d5db; border-radius: 22px; padding: 10px 14px; font: inherit; }
.adac-send { background: var(--adac-color); color: #fff; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; flex: 0 0 auto; }

/* Reusable trigger button (shortcode [arubadeluxe_button]) — placeable anywhere */
.adac-trigger {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--adac-color, #177f8e); color: #fff; border: none;
  border-radius: 999px; padding: 12px 22px; font-size: 15px; font-weight: 700;
  text-decoration: none; line-height: 1;
}
.adac-trigger:hover { filter: brightness(1.05); color: #fff; }
.adac-trigger svg { width: 20px; height: 20px; fill: #fff; }

/* Activity cards on WP pages ([arubadeluxe_activities] / [arubadeluxe_card]) */
.adac-cards {
  display: grid; gap: 16px; margin: 16px 0;
  grid-template-columns: repeat(var(--adac-cols, 3), 1fr);
}
@media (max-width: 782px) { .adac-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .adac-cards { grid-template-columns: 1fr; } }
.adac-card {
  display: flex; flex-direction: column; background: #fff; color: #1f2937;
  border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.adac-card-img { width: 100%; padding-top: 62%; background-size: cover; background-position: center; background-color: #f3f4f6; }
.adac-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.adac-card-title { font-weight: 700; font-size: 16px; color: #1f2937; }
.adac-card-price { color: var(--adac-color, #177f8e); font-weight: 700; }
.adac-card-btn { margin-top: auto; width: 100%; justify-content: center; }
