/* ==========================================================================
   replays-cart.css  —  Persistent cross-page cart drawer + webinar button
   ========================================================================== */

/* ── Cart drawer overlay ─────────────────────────────────────────────────── */

#msa-cart-drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  pointer-events: none !important;
}

#msa-cart-drawer.open {
  pointer-events: auto !important;
}

#msa-cart-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.45) !important;
  opacity: 0 !important;
  transition: opacity 0.25s ease !important;
}

#msa-cart-drawer.open #msa-cart-overlay {
  opacity: 1 !important;
}

/* ── Cart panel (slides in from right) ───────────────────────────────────── */

#msa-cart-panel {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 380px !important;
  max-width: 95vw !important;
  height: 100% !important;
  background: #fff !important;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(100%) !important;
  transition: transform 0.28s ease !important;
  overflow-y: auto !important;
}

#msa-cart-drawer.open #msa-cart-panel {
  transform: translateX(0) !important;
}

/* ── Panel header ────────────────────────────────────────────────────────── */

#msa-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #003087;
  color: #fff;
}

#msa-cart-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

#msa-cart-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

#msa-cart-close:hover {
  color: #FFC439;
}

/* ── Cart items list ─────────────────────────────────────────────────────── */

#msa-cart-items {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  flex: 1;
}

#msa-cart-items li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.msa-empty {
  color: #999;
  font-size: 14px;
  padding-top: 20px !important;
}

.msa-cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.msa-item-name {
  font-size: 14px;
  color: #222;
}

.msa-item-price {
  font-size: 14px;
  font-weight: bold;
  color: #003087;
  white-space: nowrap;
}

.msa-remove-btn {
  background: #cc0000;
  color: #fff;
  border: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.msa-remove-btn:hover {
  background: #aa0000;
}

/* ── Totals ──────────────────────────────────────────────────────────────── */

#msa-cart-totals {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  border-top: 2px solid #e0e0e0;
}

.msa-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.msa-discount-row {
  color: #2a7a2a;
  font-weight: bold;
}

.msa-hint-row {
  color: #ff0000;
  font-style: italic;
}

.msa-continue-shopping {
  margin-left: 10px;
  font-style: normal;
  font-size: 12px;
  color: #003087;
  text-decoration: underline;
  white-space: nowrap;
}

.msa-continue-shopping:hover {
  color: #0070ba;
}

.msa-total-row {
  font-size: 16px;
  font-weight: bold;
  color: #003087;
  border-bottom: none;
}

/* ── Attendee fields ─────────────────────────────────────────────────────── */

#msa-attendee-fields {
  background: #f0f7ff;
  border-top: 1px solid #c0d8f0;
  padding: 18px 20px;
}

#msa-attendee-fields h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #003087;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.msa-field-group {
  margin-bottom: 12px;
}

.msa-field-group label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
}

.msa-field-group input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.msa-field-group input:focus {
  border-color: #0070ba;
  outline: none;
}

#msa-checkout-btn {
  width: 100%;
  background: #FFC439;
  color: #003087;
  border: none;
  padding: 13px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 6px;
}

#msa-checkout-btn:hover {
  background: #f0b429;
}

/* ── Cart icon (utility bar widget) ─────────────────────────────────────── */

.msa-cart-icon-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  position: relative;
}

.msa-cart-icon-trigger svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.msa-cart-count {
  display: none;
  background: #FFC439;
  color: #003087;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
}
/* ── "Add to Cart" button on webinar pages ───────────────────────────────── */

#msa-add-to-cart-btn {
  display: inline-block;
  background: #7FC636;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

#msa-add-to-cart-btn:hover {
  background: #639C2A;
}

#msa-add-to-cart-btn.in-cart {
  background: #ff9d00; /* orange for in cart #ff9d00,  better looking than orangish for view cart icons #FFC439  */
}

#msa-add-to-cart-btn.in-cart:hover {
  background: #e58d00;  /* darker orange e58d00 */
}


/* ── Coupon code area ────────────────────────────────────────────────────── */

#msa-coupon-area {
  display: none;           /* shown by JS when cart has items */
  padding: 10px 20px 4px;
  border-top: 1px solid #e0e0e0;
}

#msa-coupon-input-row {
  display: flex;
  gap: 8px;
}

#msa-coupon-input {
  flex: 1;
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#msa-coupon-input:focus {
  border-color: #0070ba;
  outline: none;
}

#msa-coupon-apply-btn {
  background: #003087;
  color: #fff;
  border: none;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

#msa-coupon-apply-btn:hover {
  background: #0070ba;
}

#msa-coupon-msg {
  display: none;
  margin: 6px 0 2px;
  font-size: 13px;
  line-height: 1.4;
}

#msa-coupon-msg.msa-coupon-success {
  color: #2a7a2a;
}

#msa-coupon-msg.msa-coupon-error {
  color: #cc0000;
}

#msa-coupon-msg a {
  color: inherit;
  margin-left: 8px;
  font-weight: normal;
  opacity: 0.75;
}

#msa-coupon-msg a:hover {
  opacity: 1;
}
