:root {
  --cube-size: 200px;
  --grey-border: #d1d5db;
  --brand: #f25c7d;
  --brandbg: #ffd6d0;
  --brand-hover: #fda4af;
  --secondary-hover: #f8fafc;
  --white: white;
  --black: black;
  --text-grey-900: #111827;
  --text-grey-300: #d1d5db;
  --text-grey-50: #f8fafc;
  --text-grey-500: #6b7280;
  --text-grey-600: #3c4257;
  --text-grey-700: #334155;
  --text-rose-400: var(--white);
  --text-grey-200: #e2e8f0;
  --pp-pink:#F25C7D; 
  --pp-peach:#FDE7EC; 
  --ink:#111; 
  --ink-2:#555;
  --pp-charcoal: #333333;
  --pp-panel: #FFF8FA;   /* card background */
  --pp-radius: 22px;
  --pp-shadow: 0 10px 24px rgba(0,0,0,.06);
  --pp-maxw: 820px;
}

html {
  scroll-behavior: smooth;
  font-size: 19px;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  max-width: 900px;
  color: var(--pp-charcoal);
  box-sizing: border-box;
}
  
/* Main Content Styles 
main {
  flex: 1;
  flex-grow: 1;
  overflow-x: hidden;
  padding-bottom: 50px;
}

*/

/* Styles from nav-bar-template */
header.masthead { 
  display: block; 
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  color: black;
}

.brand { 
  color: #888; 
  text-decoration: none; 
  font-size: 1.3rem; 
  font-weight: bold; 
}

.hamburger { 
  display: none; 
  cursor: pointer; 
  background: none; 
  border: none; 
  padding: 0.5rem; 
}

.hamburger svg { 
  stroke: black; 
  width: 24px; 
  height: 24px; 
  transition: transform 0.3s ease-in-out; 
}

.nav-links { 
  display: flex; 
  gap: 0.5rem; 
  align-items: center;
}

.nav-cta {
  position: fixed;
  bottom: 75px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
}

.nav-cta {
  position: fixed;
  bottom: 75px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
}

.cta {
  cursor: pointer;
  position: fixed;
  bottom: 75px;
  right: 20px;
  z-index: 1000;
}

@media (min-width: 901px) {
  .cta {
    right: calc((100vw - 900px) / 2 + 20px);
  }
}

.nav-cta a, .cta a {
  text-decoration: none;

}

@media (max-width: 540px) {
  .nav-cta {
    display: none;
  }
}

.nav-links a { 
  color: var(--text-grey-600); 
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
  border-radius: 8px;
  width: 100%;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  text-align: center;
}

.nav-links a:hover { 
  color: black;
  background-color:var(--brand-hover) 
}

@media (max-width: 960px) {
  .hamburger { 
    display: block; 
    z-index: 100; 
  }
  .hamburger.active svg { 
    transform: rotate(90deg); 
  }
  .nav-links {
    background-color: #fff;
    padding: 5px;
    position: fixed;
    top: 0;
    right: -30px;
    border-radius: 15px;
    margin: 70px 30px 20px 0;
    padding-top: 20px;
    width: 170px;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 99;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    grid-row-gap: 4px;  
  }
  .nav-links.active { 
    transform: translateX(0); 
  }
}

/* Styles from faq-accordion-template */
.faq-container {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.question-button {
  align-items: center;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--brandbg);
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.question-button:hover {
  background-color: #f9f9f9;
}

.question-button .openclose {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  float: right;
}

.accordion-item.active .question-button .openclose {
  transform: rotate(45deg);
}

.answer-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: #555;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.answer-content p {
  text-align: left;
}

.accordion-item.active .answer-content {
  max-height: fit-content;
  padding: 0 1.5rem 1.25rem;
}

/* Styles from footer-bar-template */
footer.site-footer {
  display: block;
  color: white;
  padding: 2rem;
  font-size: 0.8rem;
  background-color: var(--brand);
  justify-content: center;
  align-items: center;
  height: fit-content;
  margin-top: 20px;
  margin-bottom: 30px;
  line-height: 1;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-top {
    text-align: center; 
    padding-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.footer-top a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-top a:hover { 
  color: #3498db; 
}

.footer-top p { 
  margin: 0; 
  text-align: center; 
}

.footer-bottom { 
  text-align: center; 
}

.footer-bottom p { 
  margin: 0; 
  line-height: 1.5; 
}

section#home, section#cube, section#howitworks, section.testimonials, section#about, section#faq, section#privacy, section#terms, section#cookies, section#rsvps, section#manage-pot, section#edit-pot, section#manage-pots, #create-pot-container, #contribution-page, #rsvp-section   { 
  padding: clamp(20px, 4vw, 56px);
  background-color: var(--pp-peach);
  border-radius: 25px;
  margin-bottom: 20px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#contribution-page, #rsvp-section {
    margin: 20px auto;
    max-width: 360px;  
}

#sign-in {
  font-size: medium;
  background-color: var(--pp-peach);
  padding: 20px;
  border-radius: 25px;
  width: 87%;
  margin: 20px auto;
  max-width: 360px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#sign-in-logo {
  height:43px;
}

section#invite, section#share-content, section#invite-preview-content {
  max-width: 360px;
  background: var(--pp-peach);
  border-radius: 25px;
  margin: 20px auto;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

h3.modal-heading {
  margin: 15px 0;
  text-align: left;
}

#home.heading, #home h3, #home p {
  text-align: center;
}

.columns {
  display: flex;
  gap: 1.5rem;
  grid-column-gap: 24px;
  justify-content: center;
}
.column-card {
  grid-row-gap: 32px;
  box-shadow: 0 12px #000;
  margin: 0 auto;
  border: 4px solid #000;
  border-radius: 24px;
  flex-direction: column;
  justify-content: space-around;
  align-items: stretch;
  width: 320px;
  height: auto;
  padding: 32px 32px 16px;
  display: flex;
  position: relative;
  max-width: 260px;
}

.column {
  flex: 1;
  padding: 15px 5px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.col1, .col3 {
  align-content: flex-end;
}
h2 {
  color: var(--brand);
  align-items: center;
  height: 80px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 12px 0;
  font-size: min(5vw, 36px);
  line-height: 1;
  display: flex;
}

h3 {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--brand);
}

.heading p {
  margin-top: 0;
  font-style: italic;
}

/*
.heading {
  grid-row-gap: 24px;
  flex-direction: column;
  align-items: center;
  display: flex;
  text-align: center;
}

.heading p {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 600px;
}
*/

.icon {
  background: var(--brand);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  display: flex;
  margin: 0 auto;
}

.text-container {
  text-align: center;
}

.list-price {
  color: #000;
  background-color: #0000;
  height: auto;
  padding: 0;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1;
  display: flex;
}

.list-price-term {
  color: #919397;
  align-items: flex-end;
  padding-top: 0;
  font-size: 18px;
  display: flex;
  height: auto;
  margin: 0;
  font-weight: 500;
  line-height: 1;
}

.price-container {
  grid-column-gap: 4px;
  grid-row-gap: 4px;
  display: flex;
}

.pricecardlist{
  list-style-type: none;
  grid-row-gap: 16px;
  flex-direction: column;
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
}

.list-item {
  grid-column-gap: 8px;
  align-items: center;
  display: flex;
}

.list-p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}
.form-container {
  box-shadow: 0 12px #000;
  border: 2px solid #000;
  border-radius: 24px;
  flex-direction: column;
  width: auto;
  max-width: 400px;
  height: auto;
  margin-bottom: 0;
  padding: 24px 24px 16px;
  display: flex;
}

.form {
  border: 0 solid #000;
  border-radius: 0;
}

.text-field {
  border: 1px solid #ccc;
  border-radius: 5px;
  height: 48px;
  margin-bottom: 0;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #777;
  font-family: 'Poppins', sans-serif;
  outline: none !important;
  background-color: white;
  width: calc(100% - 20px);
}

textarea:focus {
  outline: none !important;
  border-color: var(--brand);
  background-color: rgba(255, 255, 255, 0.1);
}

.button.primary:hover {
  background-color: var(--brand-hover);
}

.button.cta, .button.tap-cta {
  border: 2px solid var(--brand);
  background: #fff;
  color: var(--brand);
  border-radius: 22px;
  width: fit-content;
  padding: 0 10px;
  margin-left: auto;
  margin-top: .3rem;
  font-size: min(2.8vw, 16px);
  font-weight: 600;
  line-height: 12px;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
  animation:pulse 3s infinite;
  opacity: .7;
}

@keyframes pulse{
  0%   { 
    transform:scale(1); 
    box-shadow:0 10px 26px rgba(242,92,125,.35);
    background-color: #fff;
    color: var(--brand);
  }
  50%  { 
    transform:scale(1.07); 
    box-shadow:0 14px 32px rgba(242,92,125,.45);
    background-color: var(--brand);
    color: #fff;
  }
  100% { 
    transform:scale(1); 
    box-shadow:0 10px 26px rgba(242,92,125,.35);
    background-color: #fff;
    color: var(--brand);
  }
}

.button.cta:hover {
  background-color: var(--brand);
  color:#fff;
}

.buttontext {
  color: #000;
  letter-spacing: normal;
  margin-top: 0;
  margin-bottom: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  text-decoration: none;
}

.toggle-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.toggle-buttons button {
  padding: 0.5rem;
  border: 1px solid black;
  background-color: white;          
  border-radius: 8px;
  width: 150px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.toggle-buttons button.active {
  border: 1px solid black;
  background-color: var(--brand);
  color: black;
}

/* Mobile-specific column stacking */
@media (max-width: 768px) {
  .columns { flex-direction: column; }
  .toggle-section .columns { display: block; } /* Override default stacking for the toggle section */
  .toggle-section .columns .column {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: opacity 0.3s ease-out, max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
  }
  .toggle-section .columns .column.active {
    opacity: 1;
    max-height: 1000px; /* Adjust as needed */
    padding-top: 1rem;
    padding-bottom: 1rem;
  }  
}

/* Custom CSS for the 3D transform effect */
.carousel-container {
  position: relative;
  perspective: 1200px; /* Gives a nice 3D depth */
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slides {
  position: absolute;
  width: 80%;
  max-width: 500px;
  height: 100%;
  transform-style: preserve-3d; /* Allows child elements to be positioned in 3D space */
}

.slide {
  position: absolute;
  top: 30px;
  left: 18%;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 1.5rem; /* Rounded corners for slides */
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  /* All transforms and opacity are controlled by JavaScript */
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  text-align: center;
  padding: 2rem;
}

@media (max-width: 768px) {
  .slide{
    left:10%;
    width: 50%;
  }
}

.slide-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #6366f1; /* Tailwind's indigo-500 */
}

.p2 {
  font-size: .8em;
}

.heading {
  margin-top: 10px;
}

.heading h3 {
  font-size: min(5vw, 30px);
  margin: 0;
  color: var(--brand);
}

.cube-container {
  perspective: calc(var(--cube-size) * 4);
  width: var(--cube-size);
  height: var(--cube-size);
  margin: 0 auto;
}

.cube {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  position: relative;
  transform: rotateX(-10deg) rotateY(45deg);
  transition: none;
}

.cube.is-dragging {
  animation-play-state: paused;
}

/* Base styles for all faces */
.face {
  position: absolute;
  width: var(--cube-size);
  height: var(--cube-size);
  background-color: var(--brand);
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  color: white;
  user-select: none;
  text-align: center;
  background: radial-gradient(circle at 42% 58%, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0) 48%), var(--brand);
  background-size: 200% 100%;
}

.cube.open .face.top, .cube.open .lid {
  transition: transform 1s ease-out, opacity 1s ease-out;
  opacity: 0; /* Fade out */
}

/* Animate the top face to move up */
.cube.open .face.top {
  transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2 + 100px)) translateY(-150px);
}

/* Animate the lid pieces to move up and slightly outwards */
.cube.open .lid-front {
  transform: rotateX(-90deg) translateY(calc(var(--cube-size) * -0.1 - 100px)) translateZ(calc(var(--cube-size) * 0.6 + 150px));
}
.cube.open .lid-back {
  transform: rotateX(-90deg) rotateY(180deg) translateY(calc(var(--cube-size) * -0.1 - 100px)) translateZ(calc(var(--cube-size) * 0.6 + 150px));
}
.cube.open .lid-right {
  transform: rotateY(90deg) translateY(calc(var(--cube-size) * -0.1 - 100px)) translateZ(calc(var(--cube-size) * 0.6 + 150px));
}
.cube.open .lid-left {
  transform: rotateY(-90deg) translateY(calc(var(--cube-size) * -0.1 - 100px)) translateZ(calc(var(--cube-size) * 0.6 + 150px));
}

.cube-auto-rotate {
  width: var(--cube-size); /* Match container size */
  height: var(--cube-size); /* Match container size */
  transform-style: preserve-3d; /* Keep 3D context */
  animation: spin 15s linear infinite; /* Apply the auto-rotation */
}

@keyframes spin {
  from {
    transform: rotateX(-10deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-10deg) rotateY(-360deg);
  }
}

/* Position each main face */
.front { 
  transform: translateZ(calc(var(--cube-size) / 2)); 
}

.back { 
  transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); 
}

.right { 
  transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)); 
}

.left { 
  transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); 
}

.bottom { 
  transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); 
}

/* The top face, which is the base for the lid */
.top {
  transform: rotateX(90deg) translateZ(101px);
  width: 202px;
  height: 202px;
  top: 0;
  left: 0;
  background-color: var(--brand);
  opacity: 1;
}

/* Base styles for the lid faces */
.lid {
  position: absolute;
  background: var(--brand);
  opacity: 1;
}

/* Position and size the lid faces */
.lid-front {
  width: 202px;
  height: 20px;
  transform: translateZ(100px);
  box-shadow: 0 4px 2px -2px #d53f65;
}

.lid-back {
  width: 202px;
  height: 20px;
  transform: rotateY(180deg) translateZ(100px);
  box-shadow: 0 4px 2px -2px #d53f65;
}

.lid-right {
  width: 20px;
  height: 202px;
  transform: rotate(90deg) rotateX(-90deg) translateZ(-192px) translateX(-91px);
  box-shadow: 4px 0 2px -2px #d53f65;
}

.lid-left {
  width: 20px;
  height: 202px;
  transform: rotate(90deg) rotateX(90deg) translateZ(-10px) translateX(-91px);
  box-shadow: 4px 0 2px -2px #d53f65;
}

.wrap{ 
  margin:0 auto; 
  text-align:left;
}

section.testimonials, section.pp-story-wrap, section.redeem-section {
  padding:2rem 1rem; 
  background:var(--pp-peach); 
  overflow:hidden;
  border-radius: 2rem
}

.sub{ 
  margin:0 auto 40px; 
  color:var(--ink-2);
  font-style: italic;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
  display: none; /* Webkit browsers */
}

.card {
  margin: 0 20px;
  flex: 0 0 85%; 
  scroll-snap-align: center;
  border-radius: 20px;
  padding: 26px;
  /*
  box-shadow: 0 8px 22px rgba(17,17,17,.08);
  */
  font-size: 16px;
  line-height: 1.6;
}

@media (min-width: 600px) {
  .card {
    flex: 0 0 89%;
  }
}

@media (min-width: 700px) {
  .card {
    flex: 0 0 93%;
  }
}

@media (max-width: 417px) {
  .card {
    flex: 0 0 84%;
  }
}

@media (max-width: 390px) {
  .card {
    flex: 0 0 81%;
  }
}

.narrowcard {
  border-radius: 20px;
  padding: 14px 28px;
  box-shadow: 0 8px 22px rgba(17,17,17,.08);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.narrowcard.linen{ 
  background:linen; 
  text-align: center;
}

.card.peach{ 
  background:var(--pp-peach); 
}

.card.brandbg{ 
  background:var(--brandbg); 
}

.card.pink{ 
  background:var(--pp-pink); 
  color:#fff 
}

.card.pink .cite{ 
  color:#ffeaf0 
}

.cite{ 
  font-size:14px; 
  font-weight:600; 
  margin-top:12px 
}

.controls{ 
  margin-top:24px; 
  display:flex; 
  justify-content:center; 
  gap:12px 
}

.dot{ 
  width:12px; 
  height:12px; 
  border-radius:50%; 
  background:#ddd; 
  cursor:pointer 
}

.dot.active{ 
  background:var(--pp-pink) 
}

.pp-story-wrap{
  padding: clamp(20px, 4vw, 56px);
  font-family: "Poppins", sans-serif;
  color: var(--pp-charcoal);
}

.pp-story-card{
  max-width: var(--pp-maxw);
  margin: 0 auto;
  background: var(--pp-panel);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
  padding: clamp(24px, 4vw, 44px);
}

.pp-accent{
  color: var(--brand);
  font-weight: 600;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 2.3fr;
  grid-column-gap: 10px;
  grid-row-gap: 5px;
  text-align: left;
  padding: 10px;
  font-size: small;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
  border-radius: 8px;
}

.invite-grid {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr 1fr;
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  text-align: left;
  padding: 10px;
  font-size: small;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
  border-radius: 8px;
}

#a2c-btn {
  grid-area: 1 / 3 / 4 / 4;
}

#location-output {
  grid-area: 4 / 2 / 5 / 4;
}

.centred-icon { 
  grid-area: 1 / 1 / 2 / 3;
}

.centred-icon img {
  display: block;
  justify-self: center;
}

.details-grid .label {
  font-size: small;
}
/*
.buttoned, .party-details, #rsvp-section, #sign-in {
  overflow-x: hidden;
  margin: 32px auto 0;
  padding-bottom: 16px;
  max-width: 800px;
}
*/
.column-1-item {
  grid-column: 1;
  grid-row: 1 / span 4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button.primary {
  color: #ffffff;
  width: auto;
  height: 48px;
  margin-left: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  grid-column-gap: 6px;
  background-color: var(--brand);
  border: 2px solid black;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  display: flex;
  text-decoration: none;
  box-sizing: border-box;
  justify-self: end;
}

.button.primary:hover {
  background-color: var(--brand-hover);
}

a.button.primary {
  padding: 0 5px;
}
/*
button#add-to-calendar-btn, button#add-to-calendar-btn-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px; 
  height: 40px;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  box-sizing: border-box; 
}

button#add-to-calendar-btn svg, button#add-to-calendar-btn-modal svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-bottom: 0;
}

*/

.button.large {
  width: 70%;
  max-width: 300px;
  margin: 0 auto;
}

.buttontext {
  color: #000;
  letter-spacing: normal;
  margin-top: 0;
  margin-bottom: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  text-decoration: none;
}

h2 {
    font-size: min(6vw, 36px);
}

.form-group {
  margin-bottom: 25px;
  text-align: left; /* Align form labels to the left */
}

.contribution-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0;
  color: #888;
  font-size: medium;
}

.custom-amount-input-wrapper {
  position: relative;
  display: inline-flex; /* Use inline-flex to keep it in line with buttons */
  align-items: center;
  max-width: 100px; /* Match input max-width */
  box-sizing: border-box;
}

.custom-amount-input-wrapper .currency-symbol {
  position: absolute;
  left: 10px; /* Adjust as needed for padding */
  color: var(--text-grey-600); /* Match input text color */
  font-size: 16px;
  font-weight: 700;
  pointer-events: none; /* Allow clicks to pass through to the input */
  display: none; /* Hidden by default, shown with JS */
}

.custom-amount-input-wrapper input[type="number"] {
  padding-left: 25px; /* Make space for the currency symbol */
  width: 100%;
  box-sizing: border-box;
}



input:focus {
  border-color: var(--brand);
  background-color: rgba(255,255,255,0.1);
}


/* Stripe Card Element Styling */
.stripe-card-element {
  padding: 12px 15px;
  border: 1px solid black;
  border-radius: 25px;
  background-color: rgba(255,255,255,0.05);
  min-height: 50px; /* Ensure it has height for Stripe's iframe */
  display: block;
  align-items: center; /* Vertically center content */
}

.stripe-card-element.StripeElement--focus {
  border-color: #23a8b1;
  background-color: rgba(255,255,255,0.1);
}

.stripe-errors {
  color: #f44336;
  font-size: 0.9em;
  margin-top: 10px;
  text-align: left;
  display: none; /* Hidden by default, shown by JS on error */
}

.contribution-form .btn-primary {
  margin-top: 30px;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .contribution-title {
      font-size: 2em;
  }
  .contribution-subtitle {
      font-size: 1em;
  }
}

/* Contributions View Specific Styles */
.dashboard-page .dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 15px; /* Space between items when wrapped */
}

.dashboard-page .dashboard-header h1 {
  font-size: 2.2em;
  color: #23a8b1;
  margin: 0;
}

.contribution-summary-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
}

.contribution-summary-box p {
  font-size: 1.2em;
  margin: 8px 0;
  color: #23a8b1;
}

.contribution-summary-box p strong {
  color: #0B1215;
}

h1, h2, h3, h4, h5 {
  color: var(--brand);
}

/* Masthead (Header) Styles */
.masthead-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.masthead .logo img {
  height: 50px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
}

.desktop-nav {
  list-style: none;
  display: flex; /* Show by default for desktop */
  margin: 0;
  padding: 0;
}

.desktop-nav li {
  margin-right: 25px;
}

.desktop-nav a {
  text-decoration: none;
  color: #fff6f4; /* Font color */
  font-weight: 600; /* SemiBold */
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  color: #0B1215; /* Highlight color on hover */
}

.cta-buttons {
  display: flex;
  gap: 15px; /* Space between buttons */
  margin-left: 25px; /* Space between nav and buttons */
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px; /* Rounded buttons */
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent button text from wrapping */
}

.btn-primary {
  background-color: var(--brand);
  border: 2px solid #fdd011;
}

.btn-primary:hover {
  background-color: #ffe045; /* Slightly lighter yellow on hover */
  border-color: #ffe045;
}

.btn-secondary {
  background-color: transparent;
  color: #23a8b1; /* Font color */
  border: 1px solid #23a8b1;
}

.btn-secondary:hover {
  background-color: #fff6f4;
  color: #fd657e; /* Text color matching background */
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  color: #fff6f4;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  margin-left: 20px; /* Space from CTA buttons */
  z-index: 1100; /* Ensure it's above other elements */
}

/* Mobile Navigation Panel (Hidden by default) */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: -250px; /* Start off-screen */
  width: 250px;
  height: 100%;
  background-color: #23a8b1; /* A highlight/contrast color */
  padding-top: 80px; /* Space for masthead above */
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  transition: left 0.3s ease-in-out;
  z-index: 999;
}

.mobile-nav-panel.active {
  left: 0; /* Slide in */
}

.mobile-nav-panel ul {
  list-style: none;
  padding: 0;
}

.mobile-nav-panel li {
  margin-bottom: 20px;
}

.mobile-nav-panel a {
  text-decoration: none;
  color: #fff6f4;
  font-size: 1.2em;
  font-weight: 600;
  display: block;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.mobile-nav-panel a:hover {
  background-color: rgba(255,255,255,0.1);
}

.hero-section {
    text-align: center;
    padding: 100px 0;
    /* background-color: #fd657e;  */
    color: #0B1215;
}

.hero-section h1 {
    font-size: 3.5em;
    font-weight: 600; /* Poppins Bold */
    margin-bottom: 20px;
    line-height: 1.2;
    color: #0B1215; /* Highlight color for headline */
}

.hero-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.trustpilot-placeholder {
    margin-top: 50px;
    padding: 20px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: inline-block; /* To contain its width */
}

.trustpilot-placeholder h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #23a8b1;
}

/* Footer Styles */
.site-footer {
    background-color: #23a8b1; /* A highlight/contrast color */
    color: #fff6f4; /* Font color */
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allow links to wrap on small screens */
    justify-content: center;
    gap: 20px 30px; /* Row and column gap */
}

.footer-links a {
    text-decoration: none;
    color: #fff6f4;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0B1215; /* Highlight color on hover */
}

.social-media {
    display: flex;
    gap: 25px;
    font-size: 1.8em;
}

.social-media a {
    color: #fff6f4;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #0B1215;
}

.copyright {
    margin-top: 20px;
    color: var(--pp-charcoal);
    text-align: center;
}

/* Responsive Design - Media Queries */
@media (max-width: 768px) {
  .desktop-nav, .cta-buttons {
    display: none; /* Hide desktop nav and CTA on small screens */
  }
  .hamburger-menu {
    display: block; /* Show hamburger on small screens */
  }
  .masthead-content {
    justify-content: space-between; /* Ensure space between logo and hamburger */
  }
  .hero-section h1 {
    font-size: 2.5em; /* Adjust font size for mobile */
  }
  .hero-section p {
    font-size: 1em;
  }
  .hero-actions {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .btn {
    width: 80%; /* Make buttons wider */
    max-width: 300px; /* Max width for stacked buttons */
    margin: 0 auto; /* Center buttons */
  }
  .footer-links ul {
    flex-direction: column; /* Stack footer links vertically */
    gap: 15px;
  }
}

/*
        

        a svg {
            margin-right: 5px;
        }

        .copyright {
            text-align: center;
        }

         .btn-primary {
            width: 100%;
            padding: 12px;
            font-size: 1.1em;
            font-weight: 600;
            border-radius: 5px;
            border: none;
            background-color: #6A44E9;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .btn-primary:hover {
            background-color: #5636c7;
        }
        #sign-in {
        }

*/

/* Main content specific to modal (and modal-like) pages */

.modal-box {
    position: relative; 
    padding: 1rem 0;
}

#m-logo {
  width: 100%;
}

#modal-logo img {
  display: block;
}

.modal-box h2 {
  font-size: min(6vw, 36px);
  padding: 0;
  margin-bottom: 20px;
  color: var(--text-grey-600);
  font-weight: 600;
  box-shadow: none;
  border-radius: 0;
  background: #fff;
}

.modal-box p {
  font-size: 1em;
  margin-bottom: 30px;
}

.email-login-form input {
  padding: 15px;
}

.divider {
    text-align: center;
    margin: 10px 0;
    color: #aaa;
}
.divider span {
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.social-login-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top:10px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  font-weight: 500;
  border-radius: 5px; 
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #FFFFFF;
  color: #888;
  border: 1px solid #CCCCCC;
  margin-bottom: 10px;
}


.btn-social i {
  margin-right: 10px;
  font-size: 1.2em;
}

.btn-google {
  background-color: #DB4437; /* Google's brand color */
  color: #fff;
  border: 1px solid #DB4437;
}

.btn-google:hover {
  background-color: #C1352A;
  border-color: #C1352A;
}

.btn-facebook {
  background-color: #1877F2; /* Facebook's brand color */
  color: #fff;
  border: 1px solid #1877F2;
}

.btn-facebook:hover {
  background-color: #156CC9;
  border-color: #156CC9;
}

.forgot-password, .register-link {
    text-align: center;
    margin-top: 15px;
}


.disclaimer {
  font-size: 0.9em;
}

.disclaimer a {
  color: #0B1215;
}

/* Responsive adjustments for sign-in page */
@media (max-width: 480px) {
  .sign-in-box {
    padding: 30px 20px;
  }
  .sign-in-box h2 {
    font-size: 1.8em;
  }
}

/* My Party Pots Page Styles 

.my-party-pots-page {
  padding: 50px 0;
  flex: 1; 
}

.my-party-pots-page h1 {
  font-size: 2.8em;
  font-weight: 600;
  color: #0B1215;
  text-align: center;
  margin-bottom: 15px;
}

.my-party-pots-page p {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
}
*/

.my-party-pots-page p.redeem-totals {
  text-align: right;
  margin-bottom: 0;
}

.redeem-details {
  text-align: right;
}


.dashboard-actions {
  text-align: center;
  margin-bottom: 50px;
}

.large-btn {
  padding: 15px 30px;
  font-size: 1.2em;
  border-radius: 30px;
}

.large-btn i {
  margin-right: 10px;
}

.no-parties-message {
  background-color: rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #fff6f4;
  font-size: 1.1em;
  max-width: 600px;
  margin: 50px auto;
}

/* Table Styling for Party List */
.party-pot-list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden; /* For rounded corners with table */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.party-pot-list th,
.party-pot-list td {
  padding: 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: #23a8b1;
}

.party-pot-list th {
  background-color: rgba(255,255,255,0.15);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9em;
}

.party-pot-list tr:last-child td {
  border-bottom: none;
}

.party-pot-list tr:hover {
  background-color: rgba(255,255,255,0.05);
}

/* Action Icons in Table */
.party-pot-list td a {
  color: #23a8b1; /* Highlight color for icons */
  font-size: 1em;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.party-pot-list td a:hover {
  color: #fff6f4;
}

.logged-in-user {
  color: #fff6f4;
  font-weight: 600;
  margin-right: 20px; /* Space between name and logout button */
  white-space: nowrap; /* Prevent wrapping */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .my-party-pots-page h1 {
      font-size: 2em;
  }
  .large-btn {
    width: 90%;
    font-size: 1.1em;
  }
    /* Make table scrollable on small screens */
  .party-pot-list {
      overflow-x: auto;
  }
  .party-pot-list table {
    min-width: 600px; /* Ensure table doesn't shrink too much */
  }
  .party-pot-list th,
  .party-pot-list td {
    white-space: nowrap; /* Prevent content wrapping in table cells */
  }
  .logged-in-user {
    display: none; /* Hide user name on very small screens in masthead */
  }
}

/* Create Pot Page Styles */
.create-pot-page {
  padding: 50px 0;
  flex: 1;
}

.create-pot-page h1 {
  font-size: 2.8em;
  font-weight: 600;
  color: #0B1215;
  text-align: center;
  margin-bottom: 15px;
}

.create-pot-page p {
  font-size: 1.1em;
  color: #23a8b1;
  text-align: center;
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
}

.form-group textarea {
  font-family: 'Poppins', sans-serif;
}

/* For date and time inputs, adjust text color for better visibility on some browsers */
.form-group input[type="date"],
.form-group input[type="time"] {
  color-scheme: light;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9em;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 15px;
}

/* Checkbox and Radio styling */
.checkbox-group, .radio-group {
  display: flex;
  align-items: center; /* Align label and input */
  flex-wrap: wrap; /* Allow wrapping for radios */
  gap: 10px 20px;
}

.checkbox-group label, .radio-group label {
  margin-bottom: 0; /* Align with input */
  cursor: pointer;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
  width: auto; 
  margin-right: 5px;
}

/* Messages (Success/Error) */
.message {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.message.error {
  background-color: #f44336; /* Red */
  color: #fff;
  border: 1px solid #d32f2f;
}

.message.success {
  background-color: var(--pp-peach);
  color: var(--brand);
}

.message ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.message li {
  margin-bottom: 5px;
}

.message li:last-child {
  margin-bottom: 0;
}

.required {
  color: #ff0000; /* Highlight required fields */
  margin-left: 2px;
}

/* Adjust button spacing for large button */
.party-pot-form .btn-primary {
  margin-top: 20px;
  width: 100%;
  max-width: 300px; /* Limit width */
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Responsive adjustments for form */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0; /* No gap when stacked */
  }
  .form-row .form-group {
    margin-bottom: 25px; /* Re-add margin when stacked */
  }
}

/* Status Badges in Tables */
.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}

.status-active {
  background-color: #4CAF50; /* Green */
}

.status-draft {
  background-color: #ff9800; /* Orange */
}

.status-completed {
  background-color: #2196F3; /* Blue */
}

.status-cancelled {
  background-color: #f44336; /* Red */
}

/* Specific styling for messages on dashboard */
.my-party-pots-page .message {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.my-party-pots-page .message.success {
  padding: clamp(20px, 4vw, 56px);
  background-color: var(--pp-peach);
  border-radius: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--pp-charcoal);
}

.my-party-pots-page .message.error {
  background-color: #f44336; /* Red */
  color: #fff;
  border: 1px solid #d32f2f;
}

/* Action icons - Delete button styling */
.party-pot-list td a.delete-btn {
  color: #f44336; /* Red color for delete */
}

.party-pot-list td a.delete-btn:hover {
  color: #d32f2f;
}

/* Invite Page Styles */
.invite-page {
  padding: 50px 0;
  flex: 1;
}

.invite-page .container {
  max-width: 800px;
}

.party-details .party-title {
  font-size: 3em;
  font-weight: 600;
  color: #0B1215;
  margin-bottom: 10px;
}

.party-details .host-message {
  font-size: 1.2em;
  font-weight: 400;
  margin-bottom: 40px;
}

.detail-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.detail-item i {
  font-size: 1.8em;
  color: #0B1215;
}

.detail-item p {
  margin: 0;
  font-size: 1.1em;
  color: #fff6f4;
}

.detail-item p strong {
  color: #0B1215;
}

.detail-item a {
  color: #0B1215;
  text-decoration: none;
}
.detail-item a:hover {
  text-decoration: underline;
}

.description-box, .gifting-info, .rsvp-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  margin-top: 30px;
  text-align: left;
}

.description-box h2, .gifting-info h2, .rsvp-section h2 {
  font-size: 1.8em;
  color: #0B1215;
  margin-bottom: 20px;
  text-align: center;
}

.description-box p, .gifting-info p, .rsvp-section p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #fff6f4;
  margin-bottom: 15px;
}

.gifting-info p strong {
  color: #0B1215;
}

.gifting-preference-box {
  background-color: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.gifting-preference-box p {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gifting-preference-box p i {
  color: #0B1215;
  font-size: 1.2em;
}
.gifting-preference-box small {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9em;
  margin-top: 5px;
}

.progress-bar-container {
  width: 100%;
  background-color: rgba(255,255,255,0.2);
  border-radius: 5px;
  height: 15px;
  margin: 20px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #23a8b1;
  border-radius: 5px;
  transition: width 0.5s ease-in-out;
}

.action-btn {
  display: block;
  width: fit-content;
  margin: 20px auto 0 auto;
  text-align: center;
  padding: 12px 25px;
  font-size: 1.1em;
  border-radius: 25px;
}
.action-btn i {
    margin-right: 8px;
}

/* Responsive adjustments for invite page */
@media (max-width: 768px) {
  .party-details {
      padding: 25px;
  }
  .party-details .party-title {
      font-size: 2.2em;
  }
  .description-box, .gifting-info, .rsvp-section {
      padding: 20px;
  }
  .description-box h2, .gifting-info h2, .rsvp-section h2 {
      font-size: 1.5em;
  }
}

/* Select / Dropdown styling
.form-group select.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background-color: rgba(255,255,255,0.05);
    color: #fff6f4;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    -webkit-appearance: none; 
    -moz-appearance: none;    
    appearance: none;         
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23fdd011%22%20d%3D%22M287%2C197.6L155.2%2C65.8c-4.4-4.4-11.4-4.4-15.8%2C0L5.4%2C197.6c-4.4%2C4.4-4.4%2C11.4%2C0%2C15.8c4.4%2C4.4%2C11.4%2C4.4%2C15.8%2C0l131.9-131.9l131.9%2C131.9c4.4%2C4.4%2C11.4%2C4.4%2C15.8%2C0C291.4%2C209%2C291.4%2C202%2C287%2C197.6z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px; 
}
 */
.form-group select.form-select option {
    background-color: #0b0f19; /* Dark background for dropdown options */
    color: #fff6f4;
}

.form-group select.form-select:focus {
    border-color: #fdd011;
    background-color: rgba(255,255,255,0.1);
}

/* Contribute Page Styles */
.contribute-page {
    padding: 50px 0;
    flex: 1;
}

.contribute-page .container {
    max-width: 700px;
}

.contribution-form-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.contribution-title {
    font-size: 2.8em;
    font-weight: 600;
    color: #0B1215;
    margin-bottom: 10px;
}

.contribution-subtitle {
    font-size: 1em;
    font-weight: 400;
    margin-bottom: 10px;
}

.current-pot-status {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.current-pot-status p {
    margin: 5px 0;
    font-size: 1.1em;
}

.current-pot-status p strong {
    color: #0B1215;
}

/* Style for the Contributions table on view-contributions.php */
.dashboard-table.contributions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.dashboard-table.contributions-table th,
.dashboard-table.contributions-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  color: #23a8b1;
  font-size: 0.95em;
}

.dashboard-table.contributions-table th {
  background-color: rgba(255, 255, 255, 0.08);
  color: #23a8b1;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em;
}

.dashboard-table.contributions-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Responsive adjustments for header */
@media (max-width: 600px) {
  .dashboard-page .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-page .dashboard-header h1 {
    font-size: 1.8em;
  }
  .dashboard-page .dashboard-header .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .dashboard-table.contributions-table,
  .dashboard-table.contributions-table tbody,
  .dashboard-table.contributions-table tr,
  .dashboard-table.contributions-table th,
  .dashboard-table.contributions-table td {
    display: block; /* Stack table content */
  }

  .dashboard-table.contributions-table thead {
    display: none; /* Hide table header on small screens */
  }

  .dashboard-table.contributions-table tr {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
  }

  .dashboard-table.contributions-table td {
    border-bottom: none;
    padding: 8px 0;
    text-align: right;
    position: relative;
    padding-left: 50%; /* Space for pseudo-element label */
  }

  .dashboard-table.contributions-table td::before {
    content: attr(data-label); /* Use data-label for content */
    position: absolute;
    left: 0;
    width: 45%;
    padding-left: 15px;
    font-weight: 600;
    text-align: left;
    color: #0B1215;
    text-transform: uppercase;
    font-size: 0.8em;
  }
  /* Add data-label attributes to your <td> elements in PHP loop for mobile responsive table */
}

/* RSVP Section Styles */
.rsvp-section {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #fff6f4;
  text-align: center;
  margin-top: 50px; /* Space from previous section */
}

.rsvp-section h2 {
  font-size: 2.2em;
  font-weight: 600;
  color: #0B1215;
  margin-bottom: 25px;
}

.rsvp-form {
  max-width: 500px; /* Keep form reasonably narrow */
  margin: 0 auto;
  text-align: left;
}

.rsvp-form .form-group label {
  display: inline;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: .8em;
}

.rsvp-form textarea {
  padding: 12px;
  width: calc(100% - 24px);
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  border-color: var(--brand);
  background-color: rgba(255,255,255,0.1);
}

.rsvp-form .radio-group {
  display: inline-block;
}

.rsvp-form .radio-group label {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 0.8em;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.2);
}

.rsvp-form .radio-group input[type="radio"]:checked + label {
  background-color: var(--brandbg);
  color: #0b0f19; /* Darker text for active state */
  border-color: var(--brand);
  font-weight: 600;
  padding: 5px;
}

.rsvp-form small {
  display: block;
  margin-top: 5px;
  font-size: 0.85em;
  color: rgba(255,255,255,0.7);
}

.rsvp-form .btn-primary {
  margin-top: 30px;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

form#payment-form input {
  padding: 10px;
  width: calc(100% - 24px);
  color:var(--text-grey-600);
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .rsvp-section {
    padding: 25px;
  }
  .rsvp-section h2 {
    font-size: 1.8em;
  }
  .rsvp-form .radio-group {
    flex-direction: column; /* Stack radio buttons vertically */
    gap: 10px;
  }
  .rsvp-form .radio-group label {
    width: 100%; /* Make labels take full width when stacked */
    text-align: center;
  }
}

/* Styling for RSVP status on dashboard and view-rsvps */
.status.status-attending { color: #8bc34a; } /* Green */
.status.status-not_attending { color: #f44336; } /* Red */
.status.status-maybe { color: #ffeb3b; } /* Yellow */

/* Text colors for summary boxes */
.text-green { color: #8bc34a; }
.text-red { color: #f44336; }
.text-yellow { color: #ffeb3b; }

/* RSVP Summary in my-party-pots.php */
.rsvp-summary {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.9em;
  margin-right: 5px;
  white-space: nowrap; /* Keep summary on one line */
}

.rsvp-summary i {
  font-size: 0.9em; /* Smaller icon for summary */
  margin-left: 3px;
  margin-right: 1px;
}

.no-rsvp-yet {
  font-size: 0.9em;
  color: rgba(255,255,255,0.6);
}

/* Contributions Summary Box (similar to contribution summary) */
.rsvp-summary-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
  color: #23a8b1;
}

.rsvp-summary-box p {
  font-size: 1.1em;
  margin: 8px 0;
}

.rsvp-summary-box p strong {
  font-weight: 600;
}

.rsvp-summary-box .invite-link-display {
  margin-top: 15px;
  font-size: 0.9em;
}
.rsvp-summary-box .invite-link-display a {
  color: #0B1215;
  word-break: break-all; /* Break long URLs */
}

/* Specific styling for RSVP table */
.dashboard-table.rsvps-table .rsvp-message {
  max-width: 250px; /* Limit width to prevent messages from stretching table too much */
  overflow: hidden;
  text-overflow: ellipsis; /* Add ellipsis for overflow */
  white-space: nowrap; /* Keep text on single line */
}

.dashboard-table{
  min-width: 50%;
}

.dashboard-table th{
  text-align: left;
}

/* Responsive adjustments for RSVP table */
@media (max-width: 768px) {
  .dashboard-table.rsvps-table .rsvp-message {
    white-space: normal; /* Allow message to wrap on smaller screens */
    max-width: none;
  }
}

/* --- Template Selection Modal and Carousel Styles --- */

/* Modal Overlay */
.modal {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s, visibility 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-content h2 {
  color: #0B1215;
  text-align: center;
  margin-bottom: 0; /* Reduced margin */
  font-size: 1.8em; /* Reduced font size */
}

/* Close Button */
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff6f4;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #0B1215;
}

/* Carousel Styles */
.template-carousel {
  position: relative;
  width: 100%;
  overflow: hidden; /* Crucial for containing the sliding items */
  margin-top: 1rem;
}

.carousel-inner {
  display: flex; /* Lays out items in a row */
  transition: transform 0.5s ease-in-out; /* Smooth sliding animation */
}

.carousel-item {
  min-width: 100%;
  flex-shrink: 0; /* Prevents items from shrinking */
  box-sizing: border-box;
  padding: 0 10px; /* Small gap between items if ever visible */
  text-align: center;
}

.carousel-item img {
  width: auto; /* Adjust width automatically */
  max-width: 100%;
  max-height: 50vh; /* KEY CHANGE: Limit image height */
  display: block;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.1);
  margin: 0 auto 1rem auto; /* Center the image */
}

.carousel-item h3 {
  color: #0B1215;
  margin-bottom: 0.5rem;
  font-size: 1.4em; /* Reduced font size */
  line-height: 1;
}

.carousel-item p {
  color: #bdc3c7; /* Lighter grey for description */
  font-size: 0.9em; /* Reduced font size */
  min-height: auto; /* Remove fixed min-height */
  margin-bottom: 1rem;
}

/* Carousel Controls (Prev/Next Buttons) */
.carousel-control {
  position: absolute;
  top: 40%; /* Position in the middle of the image */
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  line-height: 1; /* Center the icon */
  transition: background-color 0.3s ease;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-control {
  left: 10px;
}

.next-control {
  right: 10px;
}

/* Carousel Dots (Navigation) */
.carousel-dots {
  text-align: center;
  padding: 15px 0 5px 0;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--pp-pink);
}

/* Template Display section in the form */
.template-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 10px 15px;
  margin-top: 10px;
}

.template-display #selectedTemplateName {
  font-weight: 600;
  color: #0B1215;
}
.logo-img {
  margin: 0 auto; 
  display: block; 
} 
.text-center {
  text-align: center; 
} 
.line-height-1-6 {
  line-height: 1.6; 
} 
.font-size-0-9 {
  font-size: 0.9em; 
} 
.color-gray-777 {
  color: #777; 
} 
.nav-brand-logo {
  height: 43px; 
} 
div.nav-links a.nav-button {
  padding: 0 10px; 
  color: #fff; 
} 
.svg-center-margin {
  margin: 0 auto 0; 
} 
.redeem-section-styles {
  border: 1px solid #ddd; 
  border-radius: 10px; 
  margin-top: 20px; 
  padding: 20px; 
} 
.font-size-1-1em {
  font-size: 1.1em; 
} 
.redeem-details-margin {
  margin: 20px 0; 
} 
.hr-margin {
  margin: 10px 0; 
} 
.font-weight-bold {
  font-weight: bold; 
} 
.font-size-1-2em {
  font-size: 1.2em; 
} 
.margin-bottom-15px {
  margin-bottom: 15px; 
} 
.margin-top-15px {
  margin-top: 15px; 
} 
.hr-margin-40px {
  margin: 40px 0; 
} 
.pot-selector-styles {
  width:100%; padding:10px; margin-top:10px; 
} 
.brand-logo-img {
  height: 60px; 
} 
.display-none {
  display: none; 
} 
.svg-brand-bg {
  background: var(--brand); 
} 
.svg-grayscale-0 {
  filter: grayscale(0); 
} 
.my-party-pots-page p.font-size-smaller {
  font-size: smaller; 
} 
.item-grid-styles {
  display: grid;grid-template-columns: 125px 2fr .2fr; 
  margin-bottom: 5px;
} 
.item-grid-styles label, .item-grid-styles .label {
  align-self: center;
  font-weight: 500;
  margin-top: 0;
}
.width-86-percent {
  width: 86%; 
} 
.margin-left-20px {
  margin-left: 20px; 
} 
.admin-dashboard-page {
  padding: 50px 0; flex: 1; 
} 
.admin-dashboard-page h1 { 
  font-size: 2.8em; font-weight: 600; color: #0B1215; text-align: center; margin-bottom: 40px; 
} 
.dashboard-summary-grid { 
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; 
} 
.summary-card { 
  background-color: rgba(255, 255, 255, 0.1); padding: 20px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); text-align: center; color: #fff6f4; 
} 
.summary-card h3 { 
  font-size: 1.4em; color: #0B1215; margin-bottom: 10px; 
} 
.summary-card p { 
  font-size: 2em; font-weight: bold; color: #23a8b1; 
} 
.hidden-section { display: none; } 

.brown-bg {
  background-color: #491e0e;
  color: #FFFFFF;
  cursor: pointer;
}

.peach-bg {
  background-color: var(--brandbg);
  color: var(--ink);
  cursor: pointer;
}

.labelsubtext {
  font-size: .9em;
  font-weight: 400;
}

#invite .label, #invite-preview-content .label {
  margin-top: 0;
}

#contribution_goal_group {
  align-self: center;
  margin-bottom: 0;
}

/* Styling for Unwrap Section */
#unwrap-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--pp-peach);
    border-radius: 25px;
    margin: 20px auto;
    max-width: 360px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.present {
    position: relative;
    width: 70vw;
    max-width: 250px;
    height: 274px; /* Adjusted height to give more room for animation */
    cursor: pointer;
    margin: 50px auto 0;
    display: grid; /* Use grid to stack and align elements */
    place-items: center; /* Center everything by default */
    
}

.box, .tap-lid, .promo {
    grid-column: 1 / -1; /* All items in the same cell */
    grid-row: 1 / -1;
}

.box {
    width: 90%; /* Make the box slightly narrower than the lid */
    z-index: 1;
    align-self: end;
}

.box img, .tap-lid img {
    width: 100%;
    display: block;
}

.tap-lid {
    width: 100%; /* Lid is full width, making it wider than the box */
    z-index: 3;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: bottom center;
    align-self: start; /* Stick to the top */
}

.promo {
    width: 90%;
    text-align: center;
    color: var(--brand);
    z-index: 2;
    opacity: 0;
    transform: translateY(0); /* Start hidden at the bottom, will be lifted */
    bottom: 0;
    transition: opacity 0.5s 0.2s ease-out, transform 0.7s 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.promo h3 {
    font-size: clamp(1rem, 5vw, 1.5rem);
    margin: 0;
    font-weight: 400;
    line-height: 1;
}

/* --- Animation States --- */
.present.open .tap-lid {
    transform: translateY(-100%) rotateZ(-20deg); /* Increased travel distance */
}

.present.open .promo {
    opacity: 1;
    transform: translateY(-65px); /* Adjusted for better single-line visibility */
}

@media (max-width: 768px) {
    .present.open .promo {
        transform: translateY(-65px); /* Fine-tune for smaller screens */
    }
}

#tap-text {
    display: block;
    width: fit-content;
    margin: 40px auto 20px;
    font-size: 1.2em;
    animation: pulse 3s infinite;
    opacity: .7;
    cursor: pointer;
}


@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  section#home, section#cube, section#howitworks, section.testimonials {
    padding: 1.5rem;
  }
  .text-field {
    height: 34px;
  }
  .cube-container {
    scale: 80%;
  }
}



        .calendar-modal {
            display: none;
            position: fixed;
            z-index: 1001;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.5);
            justify-content: center;
            align-items: center;
        }
        .calendar-modal-content {
            background-color: #fefefe;
            margin: auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 400px;
            text-align: center;
            border-radius: 10px;
        }
        .calendar-modal-content a {
            display: block;
            padding: 12px;
            margin: 8px 0;
            background-color: #f0f0f0;
            color: #333;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s;
        }
        .calendar-modal-content a:hover {
            background-color: #ddd;
        }
        .close-modal {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

    .slide {
        padding:1rem;
        justify-content: flex-start;
        height: max-content;
        left: 20%;
    }

    .response.question-button {
        padding: 5px 10px;
        font-size: 1em;
        font-weight: normal;
    }
    
    .response.question-button .openclose {
        font-size: 1.2rem;
    }
    
    .response.answer-content ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .response.answer-content li {
        font-size: .9em;
        padding: 5px 10px;
    }

    .response.accordion-item.active .response.answer-content {
        max-height: 300px;
        padding: 0;
        overflow-y: auto;
    }

    .response.accordion {
        font-size: .8em;
        width: 100%;
    }

    .gift-grid {
        display:grid;
        grid-template-columns: 3fr 1fr
    }

    .name {
        text-align: left;
    }

    .gift {
        text-align: right;
    }


#invite h1 {
    font-size: 1.6em;
}
/*
.buttoned, .party-details, .pot-details {
    overflow-x: hidden;
    margin: 32px auto 0;
    padding-bottom: 16px;
    max-width: 800px;
}
*/

.choices {
    display: flex;
    align-items: stretch;
    list-style: none;
    padding: 0;
    /*border-bottom: 1px solid #ccc;*/
}

.choice-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create the custom checkmark container */
.checkmark {
  display: inline-block;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border: 2px solid #ccc;
  border-radius: 50%; /* This is the key difference for a circle */
  transition: background-color 0.3s, border-color 0.3s;
}

/* Style the checkmark when the checkbox is checked */
.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--brand);
  border-color: black;
}

/* Add hover effect 
.custom-checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}
*/

/* Create the checkmark itself using a pseudo-element */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when the checkbox is checked */
.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark's "tick" or "✓" */
.custom-checkbox .checkmark:after {
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

li.choice {
    text-align: center;
    margin-right: 20px;
}

.choice svg {
    background-color: var(--brand);
}


        
        .details-grid .label {
            font-size: small;
        }

        .edit-grid{
            display: grid;
            grid-template-columns: 1fr 2fr;
            grid-column-gap: 20px;
            grid-row-gap: 5px;
            text-align: left;
            padding: 10px 0px;
        }

        @media (max-width: 420px) {
            .edit-grid{
                display: flow;
            }
            /*
            .label{
                margin: 5px 0 0 15px;
            }
            */
            .buttonrow{
                margin-top: 20px;
            }
        }

        .pot-grid{
            display: grid;
            grid-template-columns: 1fr 2fr;
            grid-column-gap: 20px;
            grid-row-gap: 20px;
            text-align: left;
            padding: 10px 0px;
        }

        .edit-grid .text-field, .pot-grid .text-field {
            min-width: 0;
            padding: 0 15px;
        }

.buttonrow {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap to the next line */
}

@media (max-width: 767px) {
  .buttonrow {
    flex-direction: column; /* Stack buttons vertically */
    align-items: flex-end; /* Keep them right-aligned when stacked */
  }

  .buttonrow button {
    width: 100%; /* Make stacked buttons take full width of the flex item */
    max-width: 250px; /* Optional: limit max width even when stacked */
  }
}

        .label{
            font-weight: 600;
            margin-top: 15px;
        }

        .edit-grid .label, .details-grid .label {
            align-self: center;
        }

        textarea.text-field {
            field-sizing:content;
            padding: 10px;
            height: auto;
            width: calc(100% - 20px);
        }

        .giftchoice {
            display: inline-block !important;
        }

        /* The Modal (background) */
        .modal {
          display: none; /* Hidden by default */
          overflow: auto; /* Enable scroll if needed */
        }

        .modal.active {
          display: block;
        }

        /* Modal Content/Box */
        .modal-content {
          margin: 10% auto; /* 10% from the top and centered */
          padding: 0;
          max-width: 480px;
          position: relative;
        }

        /* The Close Button */
        .close-button, .share-close-button {
          color: #aaa;
          position: absolute;
          top: 10px;
          right: 55px;
          font-size: 28px;
          font-weight: bold;
        }

        .close-button:hover,
        .close-button:focus,
        .share-close-button:hover,
        .share-close-button:focus {
          color: black;
          text-decoration: none;
          cursor: pointer;
        }

        .column-1-item {
            grid-column: 1;
            grid-row: 1 / span 5;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .choice-buttons {
            width: fit-content;
            background: var(--brand);
            border-radius: 6px;
            margin: 10px;
            scale: 1.25;
        }

        #share {
            max-width: 350px;
        }

        #sharebuttons a {
            text-decoration: none;
        }
        
        #sharebuttons {
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
        }

        #statusMessage { grid-area: 2 / 1 / 3 / 6; }
        
        button.share {
            background: #f25c7d;
            border-radius: 10px;
            border: 2px solid #000;
            color: #FFFFFF;
            padding: 10px;
            cursor: pointer;
            width: 96%;
            font-size: 14px;
            font-weight: 700;
            line-height: 24px;
        }

        button.share:hover {
            background-color: var(--brand-hover);
        }
        
        button svg {
            vertical-align: middle;
            margin-bottom: 5px;
        }
        
        .sharemessage {
            border-radius: 20px;
            background: var(--pp-peach);
            margin: 0 auto 20px auto;
            padding: 10px;
        }

        #linkToCopy {
            background: #ccc;
            --tw-border-opacity: 1;
            border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
            border-width: 1px;
            border-radius: .5rem;
            padding: .4rem;
            width: 90%;
            outline-style: none;
        }

        #sharemodal h1 {
            font-size: 1.6em;
        }

        button.secondary {
            background-color: var(--brand);
            color: #fff;
            width: 245px;
            height: 48px;
            margin-left: 0;
            margin-bottom: 10px;
            padding: 0;
            border: 2px solid black;
            border-radius: 8px;
            text-decoration: none;
            display: inline-grid;
            grid-template-columns: .15fr 1fr;
            grid-template-rows: repeat(2, 1fr);
            grid-column-gap: 0px;
            grid-row-gap: 0px;
        }

        .btnstep {
            grid-area: 1 / 1 / 5 / 2; 
            font-size: 2.3em;
            display: inline-block;
            padding-left: 5px;
            padding-top: 2px;
            font-weight: 600;
        }
        .btntext {
            display: inline-block;
            font-size: 18px;
            font-weight: 700;
            text-align: left;
            padding: 5px 5px 0 5px;
        }

        .btnsubtext {
            display: inline-block;
            line-height: 1;
            font-weight: 300;
            text-align: left;
            padding-left: 6px;
        }

        .select-shell {
            position: relative;
            /*
            box-shadow: var(--pp-shadow);
            transition: box-shadow .2s ease, transform .2s ease;
            */
        }
        
        .select-shell:focus-within { 
            /*box-shadow: 0 16px 40px rgba(242,92,125,.30); */
        }

        #ppShell label { font-size: 14px; opacity: .85; }
  
  select#party_title {
    width: 100%;
    margin-top: 4px;
    padding: 15px 44px 15px 12px;
    border: 1px solid #000;
    border-radius: 25px;
    background: white;
    color: #777;
    font-size: .8em;
    appearance: none;
    outline: none;
    cursor: pointer;
  }

  select#party_title:focus { border-color: var(--pp-pink); }
  
  .select-shell::after {
    content: "";
    position: absolute;
    right: 25px;
    top: 55%;
    width: 10px;
    height: 10px;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    transform: translateY(-70%) rotate(45deg);
    opacity: .7;
    pointer-events: none;
  }
  
  optgroup { font-weight: 600; color: #777; }

  @keyframes pp-bounce {
    0%   { transform: translateY(-2px) scale(.985); }
    40%  { transform: translateY(3px)  scale(1.02); }
    70%  { transform: translateY(-1px) scale(.996); }
    100% { transform: translateY(0)    scale(1); }
  }
  
  .bounce-on-show { animation: pp-bounce .32s cubic-bezier(.2,.8,.2,1); }
  
  .bounce-on-spin { animation: pp-bounce .28s cubic-bezier(.2,.8,.2,1); }

  @media (prefers-reduced-motion: reduce) {
    .bounce-on-show, .bounce-on-spin { animation: none; }
    .select-shell, select { transition: none; }
  }

/*
@media (min-width: 557px) {
    .datetimes {
        display:grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
        grid-column-gap: 15px;
        grid-row-gap: 0px;
    }
}
*/

@media (min-width: 480px) {
    .datetimes {
        display:grid;
        grid-template-columns: 0.5fr 0.25fr 0.25fr;
        grid-template-rows: 1fr;
        grid-column-gap: 15px;
        grid-row-gap: 0px;
    }
}

.accordion-item:first-of-type {
    margin-top: 20px;
}


    .separator {
        text-align: center;
        margin: 20px 0 15px 0;
        color: #999;
        font-size: 0.9em;
    }

    #payment-request-button {
        margin-bottom: 15px;
    }
    .amount-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        margin-top: 5px;
    }
    .amount-btn {
        padding: 10px;
        border: 1px solid var(--text-grey-600, #6b7280);
        border-radius: 5px;
        background-color: transparent;
        color: var(--text-grey-600, #6b7280);
        cursor: pointer;
        font-weight: 600;
    }
    .amount-btn.selected {
        background-color: var(--brand, #007bff);
        color: white;
        border-color: var(--brand, #007bff);
    }
    #amount {
        padding: 10px 15px;
        border: 1px solid var(--text-grey-600, #6b7280);
        border-radius: 5px;
        font-weight: 600;
        width: 74px;
    }
    #submit-button {
        margin-top:15px;
    }

            .btn-social {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 25px;
            font-size: 1.1em;
            font-weight: 500;
            border-radius: 5px;
            text-decoration: none;
            transition: background-color 0.3s ease, color 0.3s ease;
            background-color: #FFFFFF;
            color: #888;
            border: 1px solid #CCCCCC;
            margin-bottom: 10px;
        }
        .email-login-form .form-group {
            margin-bottom: 15px;
        }
        .email-login-form label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: #555;
        }
        .email-login-form input {
            width: 100%;
            padding: 10px;
            box-sizing: border-box;
        }
        .btn-primary {
            width: 100%;
            padding: 12px;
            font-size: 1.1em;
            font-weight: 600;
            border-radius: 5px;
            border: none;
            background-color: #6A44E9;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .btn-primary:hover {
            background-color: #5636c7;
        }
        .sign-in-box {
            position: relative;
        }
        .login-link {
            text-align: center;
            margin-top: 15px;
        }
        .error-message {
            background-color: #f8d7da;
            color: #721c24;
            padding: 10px;
            border: 1px solid #f5c6cb;
            border-radius: 5px;
            margin-bottom: 15px;
            font-size: .9em;
        }
        .password-rules {
            font-size: 0.8em;
            color: #666;
            margin-top: 5px;
        }

/* --- 1. Basic Setup --- */
.tooltip {
    /* Required to position the tooltip note relative to this element */
    position: relative;
    /* Optional: Improves visibility and indicates interactivity */
    cursor: help;
    /* Optional: Helps distinguish the element */
    border-bottom: 1px dotted #333;
}

/* --- 2. Tooltip Note (The ::after Pseudo-element) --- */
.tooltip::after {
    /* * Pulls the content from the data-tooltip attribute. 
     * This is the text that appears.
     */
    content: attr(data-tooltip);
    
    /* HIDE by default and set up transition */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    
    /* Positioning relative to the .tooltip container */
    position: absolute;
    bottom: 100%; /* Place it directly above the element */
    transform: translateX(-50%); /* Center the note horizontally */

    /* STYLING for the note box */
    padding: 6px 10px;
    background-color: #333;
    color: white;
    font-size: 0.85em;
    white-space: nowrap; /* Prevents text from wrapping */
    border-radius: 4px;
    z-index: 10; /* Ensures it sits above other page content */
}

/* --- 3. SHOW on Hover --- */
.tooltip:hover::after {
    /* Display the note */
    opacity: 1;
    visibility: visible;
}

#editable-share-message {
  background-color: white;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2d3748; /* A dark, unobtrusive background */
    color: white;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    flex-grow: 1;
}

.cookie-banner a {
    color: #63b3ed; /* A light blue for links */
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    margin-right: 30px;
}

.cookie-banner button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

#cookie-accept-btn {
    background-color: var(--brand);
    color: white;
}

#cookie-accept-btn:hover {
    background-color: var(--brand-hover);
}

#cookie-decline-btn {
    background-color: #718096; /* A neutral grey */
    color: white;
}

#cookie-decline-btn:hover {
    background-color: #a0aec0;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        width: auto;
    }
}

    .pots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
    .pot-card { position: relative; background-color: white; border: 1px solid #eee; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: box-shadow 0.3s ease; }
    .pot-card:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
    .pot-card.create-new { justify-content: center; align-items: center; cursor: pointer; background-color: #f9f9f9; min-height: 220px; border: 2px dashed #ccc; }
    .pot-card.create-new .plus-symbol { font-size: 4rem; color: #ccc; line-height: 1; }
    .pot-card h4 { margin-top: 0; font-size: 1rem; max-width: 80%}
    .pot-card .details p { margin: 4px 0; font-size: 0.9rem; color: #555; }
    .pot-card .actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
    .pot-card .actions .button, .pot-card .actions .button-link { margin: 0; padding: 8px 10px; font-size: 0.85rem; text-decoration: none; display: inline-block; text-align: center; }
    .pot-card .actions form { display: inline-block; }
    #create-pot-container { margin-top: 30px; padding-top: 30px; border-top: 1px solid #eee; }
.status-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #cccccc; /* Grey pill */
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: capitalize;
    z-index: 10; /* Ensure it's above other card content */
}
/* Context Menu Styles */
.actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px; /* Add some space between the buttons */
    justify-self: flex-end;
}

.context-menu-btn {
    display: flex;
    align-items: baseline;
    padding-top: 4px;
    justify-content: center;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    margin-left: auto; /* Push this button to the right */
}

.context-menu {
    display: none;
    position: absolute;
    top: 100%; /* Position below the .actions container */
    right: 0; /* Align to the right */
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 150px;
    padding: 5px 0;
}

.context-menu.active {
    display: block;
}

.context-menu .menu-item,
.context-menu .menu-item-form button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    box-sizing: border-box;
}

.context-menu .menu-item:hover,
.context-menu .menu-item-form button:hover {
    background-color: #f5f5f5;
}

.context-menu .menu-item.danger,
.context-menu .menu-item-form button.danger {
    color: #d9534f;
}

.context-menu .menu-item-form {
    margin: 0;
}

.context-menu .menu-item-form button[disabled] {
    color: #aaa;
    cursor: not-allowed;
    background-color: transparent;
}

/* Toast Notification Styles */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

@media (max-width: 600px) {
    #toast-container {
        left: 20px;
        right: 20px;
        align-items: center; 
    }
}

.toast {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    width: 320px;
    max-width: 80vw;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/*
.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.toast.info {
    background-color: #17a2b8;
}
*/

.toast-message ul {
    margin: 0;
    padding-left: 20px;
}

.toast-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.toast-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.toast-buttons button {
    border: 1px solid white;
    background: transparent;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}


button.back-to-top-button-circle {
    background-color: var(--brand);
    border-radius: 50%;
    width: 50px; /* Adjust size as needed */
    height: 50px; /* Adjust size as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    margin-bottom: 5px; /* Space between button and text */
    padding: 0; /* Remove default padding */
}

button.back-to-top-button-circle svg {
    fill: var(--white); /* Ensure the caret is white */
    width: 20px; /* Adjust SVG size */
    height: 20px; /* Adjust SVG size */
    scale: 2;
}

.back-to-top-text {
    color: var(--brand);
    font-size: 0.9em;
    font-weight: 500;
}

/* Safari Zoom Fix for Invite Page */
   .rsvp-form .radio-group label,
   .rsvp-form .form-group span {
       font-size: 16px;
   }

button#create-account {
  width: 80%;
  margin: 0 auto;
}