/*
 * Bubbles Booking — Booking Confirmation Page
 * FILE: assets/css/client/bb-confirmation.css
 * Hereda todo del tema — solo controla layout y spacing.
 */

.bb-confirm {
  --bb-line:       rgba(0,0,0,0.10);
  --bb-accent:     var(--wp--preset--color--primary, var(--ast-global-color-0, #1a1a2e));
  --bb-success:    #2d7a4f;
  --bb-success-bg: #f0faf4;

  color:       inherit;
  font-family: inherit;
  font-size:   inherit;
  font-weight: inherit;
  line-height: inherit;
  max-width:   620px;
  margin:      48px auto;
  padding:     0 20px 80px;
}

/* ── Header ── */
.bb-confirm__header {
  text-align:    center;
  padding:       56px 0 40px;
  border-bottom: 1px solid var(--bb-line);
  margin-bottom: 40px;
}

.bb-confirm__check {
  width:           64px;
  height:          64px;
  background:      var(--bb-success-bg);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin:          0 auto 24px;
  animation:       bb-pop .4s cubic-bezier(.34,1.56,.64,1) both;
}
.bb-confirm__check svg {
  width:           28px;
  height:          28px;
  stroke:          var(--bb-success);
  stroke-width:    2.5;
  fill:            none;
  stroke-linecap:  round;
  stroke-linejoin: round;
}
@keyframes bb-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.bb-confirm__title    { margin: 0 0 8px; line-height: 1.2; color: inherit; }
.bb-confirm__subtitle { margin: 0; opacity: 0.6; }
.bb-confirm__id {
  display:        inline-block;
  margin-top:     16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity:        0.45;
  background:     rgba(0,0,0,0.04);
  padding:        4px 12px;
  border-radius:  20px;
}

/* ── Details card ── */
.bb-confirm__card {
  border:        1px solid var(--bb-line);
  border-radius: 12px;
  overflow:      hidden;
  margin-bottom: 24px;
}
.bb-confirm__card-title {
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity:        0.45;
  padding:        16px 24px 12px;
  border-bottom:  1px solid var(--bb-line);
  background:     rgba(0,0,0,0.02);
}

.bb-confirm__row {
  display:       flex;
  align-items:   flex-start;
  gap:           16px;
  padding:       16px 24px;
  border-bottom: 1px solid var(--bb-line);
}
.bb-confirm__row:last-child { border-bottom: none; }

.bb-confirm__row-icon {
  width:           36px;
  height:          36px;
  border-radius:   8px;
  background:      rgba(0,0,0,0.04);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}
.bb-confirm__row-icon svg {
  width:           16px;
  height:          16px;
  stroke:          var(--bb-accent);
  fill:            none;
  stroke-width:    2;
  stroke-linecap:  round;
  stroke-linejoin: round;
}

.bb-confirm__row-label { opacity: 0.55; margin-bottom: 2px; }
.bb-confirm__row-value { color: inherit; }

/* ── Jobs ── */
.bb-confirm__jobs { flex: 1; }
.bb-confirm__job {
  margin-bottom:  10px;
  padding-bottom: 10px;
  border-bottom:  1px solid var(--bb-line);
}
.bb-confirm__job:last-child  { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bb-confirm__job-vehicle     { margin-bottom: 2px; }
.bb-confirm__job-service     { opacity: 0.7; }
.bb-confirm__job-addons      { display: inline; margin-top: 2px; }

/* ── Total ── */
.bb-confirm__total {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  padding:         20px 24px;
  background:      var(--bb-accent);
  color:           #fff;
  border-radius:   12px;
  margin-bottom:   24px;
}
.bb-confirm__total-label  { opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.bb-confirm__total-amount { font-size: 1.8rem; }

/* ── My Bookings CTA ── */
.bb-confirm__portal { text-align: center; margin-bottom: 24px; }
.bb-confirm__portal-btn {
  display:         inline-block;
  padding:         12px 28px;
  border:          1.5px solid var(--bb-line);
  border-radius:   10px;
  text-decoration: none;
  color:           inherit;
  transition:      border-color .15s, opacity .15s;
}
.bb-confirm__portal-btn:hover { border-color: var(--bb-accent); color: inherit; opacity: .85; }

/* ── App CTA ── */
.bb-confirm__app {
  border:        1.5px solid var(--bb-line);
  border-radius: 16px;
  padding:       32px 24px;
  text-align:    center;
  position:      relative;
  overflow:      hidden;
  background:    rgba(0,0,0,0.02);
}
.bb-confirm__app::before {
  content:        '';
  position:       absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius:  50%;
  background:     radial-gradient(circle, rgba(0,0,0,.04) 0%, transparent 70%);
  pointer-events: none;
}

.bb-confirm__app-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            6px;
  background:     var(--bb-accent);
  color:          #fff;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding:        4px 10px;
  border-radius:  20px;
  margin-bottom:  16px;
}
.bb-confirm__app-badge span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6ee7b7;
  display: inline-block;
}

.bb-confirm__app-title  { margin: 0 0 8px; color: inherit; }
.bb-confirm__app-text   { opacity: 0.6; margin: 0 auto 24px; line-height: 1.6; max-width: 360px; }
.bb-confirm__app-coming { opacity: 0.45; margin-top: 14px; font-style: italic; }

.bb-confirm__app-btns {
  display:         flex;
  gap:             12px;
  justify-content: center;
  flex-wrap:       wrap;
}
.bb-confirm__app-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  padding:         12px 20px;
  border-radius:   10px;
  text-decoration: none;
  transition:      transform .15s, box-shadow .15s;
  cursor:          pointer;
}
.bb-confirm__app-btn:hover   { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.bb-confirm__app-btn--ios    { background: var(--bb-accent); color: #fff; }
.bb-confirm__app-btn--android { background: transparent; color: inherit; border: 1.5px solid var(--bb-line); }
.bb-confirm__app-btn svg     { width: 18px; height: 18px; fill: currentColor; }