@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

#ramadan-checklist-widget {
  --rc-forest: #0b3d22;
  --rc-forest-soft: #174d31;
  --rc-leaf: #39724d;
  --rc-gold: #d89b35;
  --rc-gold-pale: #f3e4c5;
  --rc-cream: #fbf8f1;
  --rc-paper: #fffdf8;
  --rc-ink: #243329;
  --rc-muted: #68746a;
  --rc-line: #e6e0d2;
  --rc-soft-green: #edf3eb;
  --rc-danger: #9a4335;
  color: var(--rc-ink);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  max-width: 920px;
  margin: 44px auto;
  scroll-margin-top: 100px;
}

#ramadan-checklist-widget *,
#ramadan-checklist-widget *::before,
#ramadan-checklist-widget *::after {
  box-sizing: border-box;
}

#ramadan-checklist-widget button,
#ramadan-checklist-widget input,
#ramadan-checklist-widget select {
  font: inherit;
}

#ramadan-checklist-widget button {
  color: inherit;
}

#ramadan-checklist-widget .rc-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 5vw, 48px);
  border: 1px solid #e7dfcf;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 92% 0%, rgba(243, 228, 197, .48), transparent 38%),
    var(--rc-cream);
  box-shadow: 0 18px 55px rgba(35, 54, 39, .08);
}

#ramadan-checklist-widget .rc-shell::before {
  position: absolute;
  top: 0;
  left: clamp(22px, 5vw, 48px);
  width: 56px;
  height: 4px;
  background: var(--rc-gold);
  content: "";
}

#ramadan-checklist-widget .rc-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--rc-leaf);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

#ramadan-checklist-widget .rc-kicker::before {
  width: 22px;
  height: 1px;
  background: var(--rc-gold);
  content: "";
}

#ramadan-checklist-widget .rc-heading {
  max-width: 650px;
  margin: 0;
  color: var(--rc-forest);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 5.5vw, 48px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
}

#ramadan-checklist-widget .rc-intro {
  max-width: 610px;
  margin: 14px 0 0;
  color: #536258;
  font-size: 15px;
}

#ramadan-checklist-widget .rc-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: var(--rc-muted);
  font-size: 12px;
}

#ramadan-checklist-widget .rc-privacy svg {
  flex: none;
  color: var(--rc-leaf);
}

#ramadan-checklist-widget .rc-progress-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 30px 0 32px;
  padding: 18px 20px;
  border: 1px solid #e8dfcd;
  border-radius: 14px;
  background: rgba(255, 253, 248, .78);
}

#ramadan-checklist-widget .rc-progress-copy {
  min-width: 0;
}

#ramadan-checklist-widget .rc-progress-title {
  display: block;
  color: var(--rc-forest);
  font-size: 14px;
  font-weight: 700;
}

#ramadan-checklist-widget .rc-progress-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--rc-muted);
  font-size: 12px;
}

#ramadan-checklist-widget .rc-progress-track {
  overflow: hidden;
  height: 6px;
  margin-top: 12px;
  border-radius: 20px;
  background: #e9e8dc;
}

#ramadan-checklist-widget .rc-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--rc-forest-soft);
  transition: width 280ms ease;
}

#ramadan-checklist-widget .rc-progress-count {
  min-width: 60px;
  color: var(--rc-forest);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

#ramadan-checklist-widget .rc-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
}

#ramadan-checklist-widget .rc-section-heading h3 {
  margin: 0;
  color: var(--rc-forest);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}

#ramadan-checklist-widget .rc-section-hint {
  color: var(--rc-muted);
  font-size: 12px;
}

#ramadan-checklist-widget .rc-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

#ramadan-checklist-widget .rc-pack {
  min-height: 86px;
  padding: 12px 14px;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .64);
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#ramadan-checklist-widget .rc-pack:hover {
  transform: translateY(-2px);
  border-color: #b7c5b6;
}

#ramadan-checklist-widget .rc-pack[aria-pressed="true"] {
  border-color: var(--rc-forest);
  background: var(--rc-soft-green);
  box-shadow: inset 0 0 0 1px var(--rc-forest);
}

#ramadan-checklist-widget .rc-pack-label {
  display: block;
  color: var(--rc-forest);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

#ramadan-checklist-widget .rc-pack-description {
  display: block;
  margin-top: 5px;
  color: var(--rc-muted);
  font-size: 11px;
  line-height: 1.35;
}

#ramadan-checklist-widget .rc-items-section {
  margin-top: 30px;
}

#ramadan-checklist-widget .rc-timing-note {
  margin: 24px 0 0;
  padding: 15px 17px;
  border-left: 3px solid var(--rc-gold);
  background: var(--rc-gold-pale);
  border-radius: 0 9px 9px 0;
  font-size: 13px;
}

#ramadan-checklist-widget .rc-phase-section {
  padding-top: 22px;
  border-top: 1px solid var(--rc-line);
}

#ramadan-checklist-widget .rc-phase-add {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 5px 13px 5px 5px;
  border: 1px dashed #c8d2c4;
  border-radius: 999px;
  background: transparent;
  color: var(--rc-forest);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

#ramadan-checklist-widget .rc-phase-add:hover {
  border-color: var(--rc-forest);
  background: var(--rc-soft-green);
}

#ramadan-checklist-widget .rc-phase-add:focus-visible {
  outline: 3px solid var(--rc-gold);
  outline-offset: 3px;
}

#ramadan-checklist-widget .rc-phase-add-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--rc-soft-green);
  color: var(--rc-forest);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

#ramadan-checklist-widget .rc-phase-add-form {
  margin-top: 10px;
}

#ramadan-checklist-widget .rc-phase-timing {
  margin: -5px 0 16px;
  color: var(--rc-muted);
  font-size: 12px;
}

#ramadan-checklist-widget .rc-scope-heading {
  margin: 18px 0 10px;
  color: var(--rc-leaf);
  font-size: 12px;
  font-weight: 700;
}

#ramadan-checklist-widget .rc-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#ramadan-checklist-widget .rc-item {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) 44px;
  align-items: start;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid #e9e4d9;
  border-radius: 11px;
  background: var(--rc-paper);
  transition: border-color 160ms ease, background-color 160ms ease;
}

#ramadan-checklist-widget .rc-empty {
  padding: 17px 16px;
  border: 1px dashed #d8d7c9;
  border-radius: 11px;
  background: rgba(255, 253, 248, .58);
  color: var(--rc-muted);
  font-size: 13px;
}

#ramadan-checklist-widget .rc-item:has(.rc-checkbox:checked) {
  border-color: #d9e3d6;
  background: #f2f6ef;
}

#ramadan-checklist-widget .rc-checkbox {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--rc-forest);
  cursor: pointer;
}

#ramadan-checklist-widget .rc-item-label {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #34463a;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

#ramadan-checklist-widget .rc-checkbox:checked + .rc-item-label {
  color: #68796c;
  text-decoration: line-through;
  text-decoration-color: #9bab9b;
  text-decoration-thickness: 1px;
}

#ramadan-checklist-widget .rc-custom-tag {
  display: block;
  margin-top: 5px;
  align-self: center;
  color: #887347;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#ramadan-checklist-widget .rc-remove {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #758176;
  cursor: pointer;
}

#ramadan-checklist-widget .rc-remove:hover {
  background: #f8e9e5;
  color: var(--rc-danger);
}

#ramadan-checklist-widget .rc-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 13px;
}

#ramadan-checklist-widget .rc-add-form .rc-email-label,
#ramadan-checklist-widget .rc-phase-select {
  grid-column: 1 / -1;
}

#ramadan-checklist-widget .rc-delivery-section {
  padding-top: 26px;
  border-top: 1px solid var(--rc-line);
}

#ramadan-checklist-widget .rc-delivery-copy {
  max-width: 540px;
  margin: -3px 0 15px;
  color: var(--rc-muted);
  font-size: 13px;
}

#ramadan-checklist-widget .rc-download {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid #b8c6b8;
  border-radius: 999px;
  color: var(--rc-forest);
  background: var(--rc-paper);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

#ramadan-checklist-widget .rc-download:hover {
  border-color: var(--rc-forest);
  background: #f1f5ef;
}

#ramadan-checklist-widget .rc-email-form {
  display: grid;
  gap: 9px;
  max-width: 580px;
  margin-top: 19px;
}

#ramadan-checklist-widget .rc-email-label {
  color: var(--rc-forest);
  font-size: 12px;
  font-weight: 700;
}

#ramadan-checklist-widget .rc-email-input {
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #d9d8ca;
  border-radius: 9px;
  outline: 0;
  background: var(--rc-paper);
  color: var(--rc-ink);
  font-size: 16px;
}

#ramadan-checklist-widget .rc-email-input:focus-visible {
  border-color: var(--rc-forest);
}

#ramadan-checklist-widget .rc-email-opt-in {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin-top: 4px;
}

#ramadan-checklist-widget .rc-opt-in {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--rc-forest);
  cursor: pointer;
}

#ramadan-checklist-widget .rc-email-opt-in label {
  color: #526056;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

#ramadan-checklist-widget .rc-email-submit {
  justify-self: start;
  margin-top: 3px;
}

#ramadan-checklist-widget .rc-email-submit:disabled {
  opacity: .65;
  cursor: wait;
}

#ramadan-checklist-widget .rc-email-status {
  min-height: 20px;
  margin: 0;
  color: var(--rc-forest);
  font-size: 12px;
  line-height: 1.5;
}

#ramadan-checklist-widget .rc-email-privacy {
  margin: 8px 0 0;
  color: var(--rc-muted);
  font-size: 11px;
}

#ramadan-checklist-widget .rc-email-privacy a {
  color: var(--rc-forest);
  text-underline-offset: 2px;
}

#ramadan-checklist-widget .rc-input {
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #d9d8ca;
  border-radius: 9px;
  outline: 0;
  background: var(--rc-paper);
  color: var(--rc-ink);
  font-size: 16px;
}

#ramadan-checklist-widget .rc-input::placeholder {
  color: #899087;
}

#ramadan-checklist-widget .rc-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

#ramadan-checklist-widget .rc-button:hover {
  transform: translateY(-1px);
}

#ramadan-checklist-widget .rc-button-primary {
  background: var(--rc-forest);
  color: #fffdf8;
}

#ramadan-checklist-widget .rc-button-primary:hover {
  background: #164b2d;
}

#ramadan-checklist-widget .rc-button-quiet {
  border-color: #ded7c8;
  background: transparent;
  color: #5d685e;
}

#ramadan-checklist-widget .rc-button-quiet:hover {
  border-color: #c6b998;
  background: #fffaf0;
}

#ramadan-checklist-widget .rc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid var(--rc-line);
}

#ramadan-checklist-widget .rc-save-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--rc-muted);
  font-size: 11px;
}

#ramadan-checklist-widget .rc-save-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #6f9875;
}

#ramadan-checklist-widget .rc-reset {
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #70796f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #c6c8ba;
  text-underline-offset: 3px;
}

#ramadan-checklist-widget .rc-reset:hover {
  color: var(--rc-danger);
}

#ramadan-checklist-widget .rc-feedback {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--rc-danger);
  font-size: 12px;
}

#ramadan-checklist-widget .rc-modal-backdrop {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 35, 22, .52);
  animation: rc-fade-in 140ms ease both;
}

#ramadan-checklist-widget .rc-dialog {
  width: min(100%, 410px);
  padding: 25px;
  border: 1px solid #e7dfcf;
  border-radius: 16px;
  background: var(--rc-paper);
  box-shadow: 0 22px 70px rgba(8, 28, 16, .25);
  animation: rc-rise-in 180ms ease both;
}

#ramadan-checklist-widget .rc-dialog h3 {
  margin: 0;
  color: var(--rc-forest);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
}

#ramadan-checklist-widget .rc-dialog p {
  margin: 10px 0 21px;
  color: var(--rc-muted);
  font-size: 14px;
}

#ramadan-checklist-widget .rc-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

#ramadan-checklist-widget :focus-visible {
  outline: 3px solid #b78024;
  outline-offset: 3px;
}

#ramadan-checklist-widget .rc-dialog :focus-visible {
  outline-color: var(--rc-forest);
}

@keyframes rc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rc-rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  #ramadan-checklist-widget {
    margin: 30px auto;
  }

  #ramadan-checklist-widget .rc-shell {
    border-radius: 16px;
    padding: 26px 18px 20px;
  }

  #ramadan-checklist-widget .rc-packs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ramadan-checklist-widget .rc-pack {
    min-height: 80px;
    padding: 10px;
  }

  #ramadan-checklist-widget .rc-progress-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px;
  }

  #ramadan-checklist-widget .rc-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  #ramadan-checklist-widget .rc-add-form {
    grid-template-columns: 1fr;
  }

  #ramadan-checklist-widget .rc-add-form .rc-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ramadan-checklist-widget *,
  #ramadan-checklist-widget *::before,
  #ramadan-checklist-widget *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
