/* ═══════════════════════════════════════════════
   Rangoli Advanced Pincode Manager v1.0 — CSS
   ═══════════════════════════════════════════════ */

/* ── Overlay ── */
#rspf-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rspf-fade 0.3s ease-out;
}

/* ── Modal ── */
#rspf-popup {
  background: #fff;
  width: 90%;
  max-width: 400px;
  padding: 35px 25px 25px;
  border-radius: 14px;
  text-align: center;
  border-top: 4px solid #c9a050;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4);
  animation: rspf-slide 0.35s ease-out;
  position: relative;
}

/* ── Close Button ── */
#rspf-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
#rspf-close:hover {
  color: #333;
}

/* ── Header ── */
.rspf-header svg {
  margin-bottom: 5px;
}
.rspf-header h2 {
  color: #1a1a1a;
  font-size: 20px;
  margin: 10px 0 5px;
  font-family: "Georgia", serif;
  font-weight: 700;
}
.rspf-header p {
  color: #777;
  font-size: 13px;
  margin-bottom: 22px;
}

/* ── Input ── */
#rspf-input {
  width: 100%;
  padding: 13px 14px;
  font-size: 20px;
  text-align: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 14px;
  letter-spacing: 4px;
  font-weight: 600;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
#rspf-input:focus {
  border-color: #c9a050;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 160, 80, 0.15);
}

/* ── Submit Button ── */
#rspf-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #c9a050, #b08d45);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
#rspf-submit:hover {
  background: linear-gradient(135deg, #b08d45, #9a7b3a);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(201, 160, 80, 0.3);
}
#rspf-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ── Messages ── */
#rspf-msg {
  margin-top: 14px;
  font-size: 13px;
  min-height: 20px;
  font-weight: 500;
}
.rspf-error {
  color: #dc3545;
}
.rspf-success {
  color: #28a745;
}

/* ── Floating Button ── */
#rspf-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #fff;
  color: #c9a050;
  padding: 11px 18px;
  border: 2px solid #c9a050;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  z-index: 99999;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
}
#rspf-floating:hover {
  background: #c9a050;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(201, 160, 80, 0.35);
}

/* ── No Pincode Message ── */
#rspf-no-pincode-msg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rspf-no-pincode-inner {
  text-align: center;
  padding: 40px;
  max-width: 420px;
}
.rspf-no-pincode-inner svg {
  margin-bottom: 15px;
  opacity: 0.7;
}
.rspf-no-pincode-inner p {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}
#rspf-enter-pincode-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #c9a050, #b08d45);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#rspf-enter-pincode-btn:hover {
  background: linear-gradient(135deg, #b08d45, #9a7b3a);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(201, 160, 80, 0.3);
}

/* ── Checkout Confirmation ── */
.rspf-checkout-confirm {
  margin: 15px 0;
  padding: 12px 15px;
  background: #fef9e7;
  border: 1px solid #f0d97a;
  border-radius: 6px;
}
.rspf-checkout-confirm label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.rspf-checkout-confirm input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Animations ── */
@keyframes rspf-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rspf-slide {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  #rspf-popup {
    width: 94%;
    padding: 28px 18px 20px;
  }
  #rspf-floating {
    bottom: 16px;
    right: 16px;
    padding: 9px 14px;
    font-size: 13px;
  }
}
