/* === RIGHT SIDE ACCOUNT SLIDER === */
#cartSlider {
  position: fixed;
  top: 0;
  right: -400px; /* start hidden outside screen */
  width: 400px;
  height: 100%;
  background: linear-gradient(to bottom, #00a950, #5ecf78); /* same as header */
  color: white;
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  overflow-y: auto;
  transition: right 0.4s ease; /* smooth slide */
  z-index: 9999;
  padding: 20px;
}

.cart-slider-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

.slider-btn {
  display: inline-block;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  margin: 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}


/* Logging in (right slideer */

.primary-btn {
  background-color: #08a43c;
  color: #fff;
}

.primary-btn:hover {
  background-color: #056b28;
}
	.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  max-width: 350px;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  font-family: Poppins, sans-serif;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
  border-color: #08a43c;
  outline: none;
}

/* User logged in (right menu) */

.account-slider-header {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 20px;
  margin: 0;
  border-bottom: 1px solid #ffffff33;
}

/* Remove bullets from the list */
.account-slider-links {
  list-style: none;
  padding-left: 20px;
  margin: 20px 0;
  font-family: 'Poppins', sans-serif;
}

.account-slider-links li {
  margin: 12px 0;
}

/* Link base styles */
.account-slider-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
  transition: all 0.2s ease;
}

/* Link hover styles */
.account-slider-links a:hover {
  text-decoration: none; /* no underline */
  color: #e0ffe6;
}


/* Ensure it's visible and layered properly */
#accountSlider {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background-color: #08a43c; /* Your green */
  color: white;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -3px 0 8px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
}

/* Make sure content inside isn't being collapsed */
.account-slider-content {
  padding: 2rem;
  font-family: 'Poppins', sans-serif;
}

/* Fix white text if inherited */
#accountSlider a {
  color: white;
  text-decoration: none;
  display: block;
  margin: 10px 0;
}

/* Heading style */
.account-slider-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

/* Close button */
.account-slider-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}


@media (max-width: 768px) {
  #cartSlider {
    width: 100%;
    right: -100%;
    font-size: 14px;
  }

  .cart-slider-close {
    font-size: 1.5rem;
    top: 10px;
    right: 15px;
  }

  #cartSliderContent {
    overflow-y: auto;
    max-height: 90vh;
  }

  .slider-btn {
    width: 80%;
    font-size: 15px;
  }

  .form-group input[type="text"],
  .form-group input[type="password"] {
    max-width: 100%;
  }
}




/* === Right-side Cart Confirmation Slider === */
.cart-confirmation {
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  position: relative;
  max-width: 360px;
  margin: 2rem auto 0 auto; /* ⬅ adds top margin */
}


/* Confirmation Title */
.cart-confirmation-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Product Image */
.cart-confirmation-image img {
  max-width: 100px;
  margin-bottom: 10px;
  display: block;
  border-radius: 6px;
}

/* Product Info */
.cart-confirmation-meta p {
  margin: 6px 0;
  font-size: 1.1rem;       /* Slight bump for clarity */
  font-weight: 600;        /* More presence */
  color: #ffffff;          /* Ensure visibility on green bg */
  line-height: 1.4;        /* Optional: improves readability */
}


.cart-confirmation-meta strong {
  font-size: 1.1rem;       /* make "S1109" pop more */
  color: #fff;             /* ensure white in mobile */
}


/* Action Buttons */
.cart-confirmation-actions {
  max-width: 360px;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.cart-btn {
  width: 100px;
  flex: none;
  text-align: center;
  padding: 8px 8px !important;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* Primary (Checkout) */
.cart-btn-primary {
  background-color: #08a43c;
  color: #ffffff;
}

.cart-btn-primary:hover {
  color: #f8b400;
  border: 2px solid #08a43c;
}

/* Secondary (View Cart, Continue Shopping) */
.cart-btn-secondary {
  background-color: #ffffff;
  color: #00a950;
}

.cart-btn-secondary:hover {
  background-color: #e0e0e0;
}

.cart-confirmation-details {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.cart-confirmation-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25); /* subtle white */
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .cart-confirmation,
  .cart-confirmation-title,
  .cart-confirmation-meta {
    color: #fff !important;
  }
}









/* Close X Button (Top Right of Slider) */
.cart-slider-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  font-weight: bold;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  z-index: 10000;
}

.cart-slider-close:hover {
  color: #f8b400;
}









/* Login Cart UI */

.create-account-container {
  margin-top: 30px;
  text-align: center;
}

.separator-line {
  border-top: 1px solid white;
  margin-bottom: 15px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.create-account-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: white;
}

.register-link {
  background: none;
  border: none;
  color: #f8b400; /* warm yellow */
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
}

.register-link:hover {
  color: #ffffff;
}

/*  login screen #2 */
/* --- Success box --- */
.login-success-box {
  text-align: center;
  padding: 1rem;
  max-width: 90%;
  margin: 2rem auto 0 auto;
}

.login-success-msg {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
  word-break: break-word;
}

/* --- Continue button --- */
.login-continue-btn {
  background-color: #08a43c;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login-continue-btn:hover {
  background-color: #069538;
}

#locationResults {
  background-color: #f5fff9;
  color: #222;
  border: 1px solid #08a43c;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
}

#locationResults strong {
  color: #08a43c;
}

/* === LOGIN FORM TWEAKS === */

/* Add spacing above login content */
#loginContainer {
  margin-top: 2rem;
}

/* White labels */
#loginContainer label {
  color: white !important;
}

/* Input fields: keep soft background, but fix contrast */
#loginContainer input[type="text"],
#loginContainer input[type="password"] {
  background-color: #f0f5ff;
  color: #000;
}

/* Placeholder color optional (optional for light inputs) */
#loginContainer input::placeholder {
  color: #666;
}

@media (max-width: 480px) {
  .slider-btn.primary-btn {
    width: 90% !important;
    max-width: 300px;
    margin: 0 auto !important;
    display: block !important;
  }

  #loginForm > div[style*="text-align:center"] {
    padding: 0 10px;
  }
}



.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  padding: 12px 60px 12px 12px;
  font-size: 15px;
  border: 2px solid #ccc;
  border-radius: 6px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-70%);
  cursor: pointer;
  color: #08a43c;
  font-weight: 600;
  font-family: Poppins, sans-serif;
  user-select: none;
}



