/**
 * The site's package cards and the block under them — one look everywhere packages are shown or chosen:
 * home section and the «خطط دعواتي» purchase window (home_sections/pricing.php, cloned by confirmation-modal.js)
 * and the extra-guests cards (guest-slot-packages-component.php). Markup: components/package-card.php and
 * includes/components/package-includes-note.php. White cards, calm wine, thin borders, a light leaf on the
 * featured card; a row from 992 px, stacked below. Logical properties → RTL and LTR alike.
 */
.dpk {
  --dpk-wine: var(--theme-primary, #522546);
  --dpk-wine-soft: rgba(82, 37, 70, 0.08);
  --dpk-line: rgba(82, 37, 70, 0.14);
  --dpk-ink: #3a2a35;
  --dpk-muted: #7a6873;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 4px;
}

.dpk__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  padding-top: 18px;
}

/* ---------------------------------------------------------------- card */
.dpk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 26px 28px;
  background: #fff;
  border: 1px solid var(--dpk-line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(82, 37, 70, 0.06);
  overflow: visible;
}
.dpk-card::before {
  /* the thin wine band at the top of the side cards */
  content: "";
  position: absolute;
  inset-inline: -1px;
  top: -1px;
  height: 12px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, rgba(82, 37, 70, 0.75), rgba(82, 37, 70, 0.55));
}
.dpk-card--featured {
  border: 2px solid var(--dpk-wine);
  box-shadow: 0 16px 40px rgba(82, 37, 70, 0.12);
}
.dpk-card--featured::before {
  display: none;
}
.dpk-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--dpk-wine);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.dpk-card__badge svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}
.dpk-card__leaf {
  position: absolute;
  width: 74px;
  opacity: 0.35;
  pointer-events: none;
}
.dpk-card__leaf--top {
  top: 18px;
  inset-inline-end: 12px;
}
.dpk-card__leaf--bottom {
  bottom: 70px;
  inset-inline-start: 8px;
  width: 64px;
}
.dpk-card__name {
  margin: 6px 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dpk-wine);
  line-height: 1.4;
}
/* .dpk prefix: the theme's `.rtl-page p` would otherwise win over a single class */
.dpk .dpk-card__price {
  margin: 0 0 12px;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--dpk-wine);
  direction: ltr;
  unicode-bidi: isolate;
}
.dpk .dpk-card__guests {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--dpk-wine-soft);
  color: var(--dpk-ink);
  font-size: 0.95rem;
  font-weight: 600;
}
.dpk-card__guests svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--dpk-wine);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.dpk-card__features {
  width: 100%;
  margin: 22px 0 26px;
  padding: 20px 0 0;
  border-top: 1px solid var(--dpk-line);
  list-style: none;
  display: grid;
  gap: 12px;
}
.dpk-card__features li {
  position: relative;
  padding-inline-start: 28px;
  text-align: start;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dpk-ink);
  max-width: 230px;
  margin-inline: auto;
  width: 100%;
}
.dpk-card__features li::before {
  /* a plain check mark: right + bottom borders turned 45° */
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 0.2em;
  width: 6px;
  height: 12px;
  border-right: 2px solid var(--dpk-wine);
  border-bottom: 2px solid var(--dpk-wine);
  transform: rotate(45deg);
}
.dpk-card__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  min-height: 50px;
  padding: 10px 24px;
  border: 1.5px solid var(--dpk-wine);
  border-radius: 999px;
  background: #fff;
  color: var(--dpk-wine);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.dpk-card__btn:hover,
.dpk-card__btn:focus-visible {
  background: var(--dpk-wine-soft);
  color: var(--dpk-wine);
  text-decoration: none;
}
.dpk-card__btn--filled {
  background: var(--dpk-wine);
  color: #fff;
  box-shadow: 0 8px 18px rgba(82, 37, 70, 0.22);
}
.dpk-card__btn--filled:hover,
.dpk-card__btn--filled:focus-visible {
  background: #6a3159;
  color: #fff;
}
.dpk-card__btn:focus-visible {
  outline: 2px solid var(--dpk-wine);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- «كل باقة تشمل» */
.dpk-includes {
  margin: 40px auto 0;
  padding: 28px 32px 24px;
  background: #fff;
  border: 1px solid var(--dpk-line);
  border-radius: 22px;
}
.dpk-includes__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 22px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dpk-wine);
}
.dpk-includes__title::before,
.dpk-includes__title::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--dpk-line);
}
.dpk-includes__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
}
.dpk-includes__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(82, 37, 70, 0.07);
}
.dpk-includes__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--dpk-wine-soft);
}
.dpk-includes__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--dpk-wine);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dpk-includes__text {
  text-align: start;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dpk-ink);
}
/* ---------------------------------------------------------------- footer bar: note → WhatsApp action */
.dpk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 24px;
  padding: 14px 16px 14px 20px;
  border: 1px solid rgba(82, 37, 70, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(82, 37, 70, 0.035), rgba(82, 37, 70, 0.06));
}
[dir="rtl"] .dpk-foot {
  padding: 14px 20px 14px 16px;
}
.dpk .dpk-foot__note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--dpk-ink);
  text-align: start;
}
.dpk-foot__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(82, 37, 70, 0.12);
}
.dpk-foot__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--dpk-wine);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.dpk-foot__wa {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px;
  border: 1.5px solid var(--dpk-wine);
  border-radius: 999px;
  background: #fff;
  color: var(--dpk-wine);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dpk-foot__wa svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.dpk-foot__wa:hover,
.dpk-foot__wa:focus-visible {
  background: var(--dpk-wine);
  color: #fff;
  text-decoration: none;
}
.dpk-foot__wa:focus-visible {
  outline: 2px solid var(--dpk-wine);
  outline-offset: 3px;
}
.dpk-includes .dpk-foot {
  margin-top: 22px;
}
/* In the purchase window the bar stands alone under the cards (no «كل باقة تشمل» box around it). */
.dpk-includes--compact {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.dpk-includes--compact .dpk-foot {
  margin-top: 18px;
}

/* ---------------------------------------------------------------- compact cards (extra guests, purchase window) */
.dpk--compact .dpk__grid,
.confirmation-modal-home-pricing .dpk__grid {
  gap: 18px;
}
/* Extra guests: any number of cards, in whatever width the guest page gives them (a side panel on desktop):
   as many 200 px columns as fit, one under the other in a narrow panel. */
.dpk--compact .dpk__grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.dpk--compact .dpk-card,
.confirmation-modal-home-pricing .dpk-card {
  padding: 28px 18px 20px;
}
.dpk--compact .dpk-card__name,
.confirmation-modal-home-pricing .dpk-card__name {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.dpk.dpk--compact .dpk-card__price,
.confirmation-modal-home-pricing .dpk .dpk-card__price {
  font-size: 2rem;
  margin-bottom: 8px;
}
.dpk--compact .dpk-card__features,
.confirmation-modal-home-pricing .dpk-card__features {
  margin: 16px 0 20px;
  padding-top: 16px;
  gap: 10px;
}
.dpk--compact .dpk-card__features li,
.confirmation-modal-home-pricing .dpk-card__features li {
  font-size: 0.95rem;
}
.dpk--compact .dpk-card__btn,
.confirmation-modal-home-pricing .dpk-card__btn {
  min-height: 46px;
  font-size: 1rem;
}
.dpk--compact .dpk-card__name + .dpk-card__price + .dpk-card__btn {
  margin-top: 14px;
}

/* ---------------------------------------------------------------- tablet / phone: stacked */
@media (max-width: 991px) {
  .dpk__grid {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
    gap: 34px;
  }
  .dpk--compact .dpk__grid,
  .confirmation-modal-home-pricing .dpk__grid {
    gap: 26px;
  }
}
@media (max-width: 767px) {
  .dpk-foot,
  [dir="rtl"] .dpk-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .dpk .dpk-foot__note {
    align-items: flex-start;
    font-size: 0.92rem;
  }
  .dpk-foot__wa {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 575px) {
  .dpk {
    padding: 0 12px;
  }
  .dpk-card {
    padding: 30px 20px 24px;
  }
  .dpk .dpk-card__price {
    font-size: 2.2rem;
  }
  .dpk-includes:not(.dpk-includes--compact) {
    margin-top: 32px;
    padding: 22px 18px 20px;
  }
  .dpk-includes__title {
    font-size: 1.2rem;
  }
  .dpk-includes__title::before,
  .dpk-includes__title::after {
    width: 32px;
  }
  .dpk-includes__grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
