/* =========================================================
   FURRIOPET CUSTOMER CART, CHECKOUT & MODAL STYLES
   Designed by mr.sankya (https://sanket-portfolio-211.pages.dev/)
   ========================================================= */

/* Floating Cart Action Button */
#fp-floating-cart-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99997;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#fp-floating-cart-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.55);
}

#fp-cart-badge {
  background: #f59e0b;
  color: #000000;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Slide-out Cart Drawer Overlay */
#fp-cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#fp-cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Cart Drawer Panel */
#fp-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  z-index: 100001;
  background: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
}

#fp-cart-drawer.active {
  transform: translateX(0);
}

.fp-drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.fp-drawer-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fp-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.fp-drawer-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Delivery Meter */
.fp-delivery-meter {
  padding: 10px 20px;
  background: #ecfdf5;
  border-bottom: 1px solid #d1fae5;
  font-size: 12.5px;
  color: #065f46;
  font-weight: 600;
}

.fp-meter-bar {
  height: 6px;
  background: #a7f3d0;
  border-radius: 999px;
  margin-top: 6px;
  overflow: hidden;
}

.fp-meter-fill {
  height: 100%;
  background: #10b981;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Cart Items List */
.fp-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fp-cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.fp-cart-empty-icon {
  font-size: 54px;
  margin-bottom: 14px;
}

.fp-cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #f8fafc;
  transition: border-color 0.2s;
}

.fp-cart-item:hover {
  border-color: #cbd5e1;
}

.fp-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid #e2e8f0;
}

.fp-item-info {
  flex: 1;
  min-width: 0;
}

.fp-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-item-price {
  font-size: 14px;
  font-weight: 800;
  color: #059669;
  margin-top: 3px;
}

.fp-item-ctrls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.fp-qty-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.fp-qty-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.fp-qty-val {
  font-weight: 700;
  font-size: 13px;
  min-width: 18px;
  text-align: center;
}

.fp-item-del {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  margin-left: 4px;
  border-radius: 4px;
}

/* Cart Footer & Checkout Action */
.fp-cart-footer {
  padding: 18px 22px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.fp-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 6px;
}

.fp-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.fp-checkout-btn {
  width: 100%;
  margin-top: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.fp-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Checkout Modal */
#fp-checkout-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100005;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#fp-checkout-modal-overlay.active {
  display: flex;
}

#fp-checkout-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  font-family: inherit;
  color: #1e293b;
}

.fp-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.fp-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fp-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fp-form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.fp-form-group input, .fp-form-group select {
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.fp-form-group input:focus, .fp-form-group select:focus {
  border-color: #10b981;
}

/* Map Picker Container */
#fp-leaflet-picker-map {
  height: 200px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.fp-detect-gps-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 4px;
}

.fp-detect-gps-btn:hover {
  background: #e2e8f0;
}

/* Payment Selector */
.fp-payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.fp-pay-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.fp-pay-card.selected {
  border-color: #10b981;
  background: #ecfdf5;
}

.fp-pay-card-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #0f172a;
}

.fp-pay-card-sub {
  font-size: 11.5px;
  color: #64748b;
}

/* Razorpay Realistic Mock Modal */
#fp-razorpay-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#fp-razorpay-modal-overlay.active {
  display: flex;
}

#fp-razorpay-box {
  background: #0c2340;
  color: #ffffff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fp-rzp-header {
  background: #020c1b;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fp-rzp-logo {
  font-size: 16px;
  font-weight: 800;
  color: #528ff0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fp-rzp-body {
  padding: 24px;
}

.fp-rzp-amount {
  text-align: center;
  margin-bottom: 20px;
}

.fp-rzp-amount-val {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
}

.fp-rzp-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fp-rzp-btn {
  background: #19355e;
  border: 1px solid rgba(82, 143, 240, 0.3);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.fp-rzp-btn:hover {
  background: #24497e;
  border-color: #528ff0;
}

.fp-rzp-cta-confirm {
  width: 100%;
  margin-top: 18px;
  background: #3395ff;
  border: none;
  color: #ffffff;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}

.fp-rzp-cta-confirm:hover {
  background: #1b7ff2;
}
