/* =============================================
   Royal Tandoori – Lieferung & Abholung Popup
   ============================================= */

/* Overlay */
.rit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 10, 5, 0.72);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rit-overlay.rit-open {
  display: flex;
  animation: ritFadeIn 0.25s ease;
}
@keyframes ritFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Modal card */
.rit-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  overflow: hidden;
  animation: ritSlideUp 0.3s cubic-bezier(.22,.68,0,1.2);
}
@keyframes ritSlideUp {
  from { transform: translateY(30px) scale(.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

/* Top accent bar */
.rit-modal__bar {
  height: 6px;
  background: linear-gradient(90deg, #c8360a 0%, #e8890a 50%, #c8360a 100%);
}

/* Header */
.rit-modal__header {
  text-align: center;
  padding: 28px 24px 12px;
}
.rit-modal__icon {
  font-size: 42px;
  display: block;
  margin-bottom: 8px;
}
.rit-modal__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1007;
  font-family: Georgia, 'Times New Roman', serif;
}
.rit-modal__sub {
  margin: 0;
  font-size: 0.88rem;
  color: #7a6a55;
}

/* Choice buttons row */
.rit-modal__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px 24px 24px;
}
.rit-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 12px;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  font-family: inherit;
}
.rit-choice:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}
.rit-choice:active {
  transform: scale(.97);
}
.rit-choice__icon {
  font-size: 36px;
  line-height: 1;
}
.rit-choice__label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.rit-choice__desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.82);
}

/* Lieferung – deep red */
.rit-choice--lieferung {
  background: linear-gradient(145deg, #c8360a, #a0270a);
  box-shadow: 0 6px 20px rgba(200,54,10,.3);
}
.rit-choice--lieferung:hover {
  border-color: #e05520;
}

/* Abholung – golden */
.rit-choice--abholung {
  background: linear-gradient(145deg, #e8890a, #c87200);
  box-shadow: 0 6px 20px rgba(232,137,10,.3);
}
.rit-choice--abholung:hover {
  border-color: #ffb830;
}

/* Coupon reveal box */
.rit-coupon-box {
  margin: 0 24px 24px;
  border-radius: 14px;
  background: #fffbf3;
  border: 2px dashed #e8890a;
  overflow: hidden;
  animation: ritSlideUp .3s ease;
}
.rit-coupon-box__inner {
  padding: 20px;
  text-align: center;
}
.rit-coupon-box__msg {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: #3a2a10;
}
.rit-coupon-box__code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid #e8890a;
  border-radius: 10px;
  padding: 10px 18px;
  margin-bottom: 10px;
}
#rit-coupon-code {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #c8360a;
}
.rit-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background .15s;
}
.rit-copy-btn:hover { background: #fdebc8; }
.rit-coupon-box__hint {
  font-size: 0.78rem;
  color: #9a8060;
  margin: 0 0 16px;
}
.rit-btn-cart {
  display: inline-block;
  background: linear-gradient(135deg, #c8360a, #e8890a);
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: .03em;
  box-shadow: 0 4px 16px rgba(200,54,10,.3);
  transition: transform .18s, box-shadow .18s;
}
.rit-btn-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,54,10,.4);
}

/* Close button */
.rit-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0,0,0,0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s, color .15s;
}
.rit-modal__close:hover {
  background: rgba(0,0,0,0.14);
  color: #111;
}

/* Mobile */
@media (max-width: 480px) {
  .rit-modal__choices {
    grid-template-columns: 1fr;
  }
  .rit-choice {
    flex-direction: row;
    padding: 16px 18px;
    text-align: left;
    gap: 14px;
  }
  .rit-choice__icon { font-size: 28px; }
  .rit-choice__label, .rit-choice__desc { text-align: left; }
}
