/*
This CSS is specifically for the calendar. It uses an ID selector and !important to
ensure it overrides all other styles for the calendar to be the correct size.
*/
#calendar-embed {
  margin: 30px auto !important;
  width: 95% !important;
  max-width: 1920px !important;
  box-sizing: border-box !important;
  padding: 30px 40px !important;
  border-radius: 15px !important;
  text-align: center !important;
}
/* We also need to make sure other .home sections have a consistent look. */
.home:not(#calendar-embed) {
  margin: 30px auto;
  width: 95%;
  max-width: 1920px;
  background: rgba(51, 51, 51, 0.75);
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  text-align: center;
}

/* This is the key part that targets and forces the iframe to be 100% of its container's width. */
#calendar-embed iframe {
    width: 100% !important;
    height: 80vh !important;
    min-height: 400px !important;
    border: none !important;
    box-sizing: border-box !important;
}


/* --- Global Styles & Base Elements --- */
:root {
  /* Main Theme Colors - Consolidated to one primary dark green */
  --clr-dark-green: rgb(69, 160, 73); /* The unified dark green */
  --clr-neon-glow: rgba(55, 255, 139, 0.6); /* Light neon green for button glow */

  --clr-dark-grey: rgba(51, 51, 51, 0.75); /* Common background for sections/cards */
  --clr-dark-grey-solid: rgb(51, 51, 51); /* Solid dark grey for modal content */
  --clr-white: rgb(255, 255, 255);
  --clr-light-grey: rgb(221, 221, 221);
  --clr-red: rgb(255, 0, 0); /* Remove button */
  --clr-dark-red: rgb(150, 0, 0); /* Remove button hover */
  --clr-blue-link: rgb(102, 204, 255);

  /* Hamburger Specific Colors - Updated for white text and improved glow */
  --hamburger-animation-color: var(--clr-dark-green); /* Now uses the unified dark green */
  --hamburger-outline-color: rgba(255, 255, 255, 0.6); /* Soft white outline */
  --hamburger-active-color: var(--clr-red); /* Changed back to RED for the 'X' */
  --hamburger-active-hover-glow: rgba(255, 0, 0, 0.4); /* New variable for X glow, now red */

  /* Spacing & Sizing */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 15px;
  --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.9);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.4s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  cursor: default; /* Default cursor for most elements */
  user-select: none; /* Prevent text selection globally */
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--clr-white);
  background-color: var(--clr-background-dark-grey-solid);
  background: url('Lawn_Tree.jpg') center / cover no-repeat fixed; /* Shorthand for background properties */
}

/* Disables scrolling for full-screen elements/modals */
body.fullscreen,
body.menu-open,
body.no-scroll {
  overflow: hidden;
}

/* --- Headings & Text Styles --- */
h2 {
  font-size: 2.5em;
  color: var(--clr-dark-green); /* Unified green */
  margin-bottom: 20px;
}

h3 {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: var(--clr-dark-green); /* Unified green */
  /* Removed cursor: pointer; here to ensure it's not clickable unless inside a link/button */
}

p {
  font-size: 1.3em;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--clr-light-grey);
  /* Removed cursor: pointer; here */
}

ul li {
  margin: 10px 0;
  font-size: 1.2em;
}

a {
  color: var(--clr-white);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color var(--transition-medium);
  cursor: pointer; /* Links are clickable */
}

a:hover {
  color: var(--clr-dark-green); /* Unified green for link hover */
}

/* --- Section Layouts --- */
section.content {
  padding: 80px 20px;
  text-align: center;
}

.home,
.service,
.cart-item,
#contact-section {
  margin: 30px auto;
  max-width: 1000px;
  background: var(--clr-dark-grey);
  padding: 30px 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.home {
  padding: 35px 45px;
  max-width: 1500px;
  text-align: center;
}

.service {
  max-width: 1000px;
}

#contact-section {
  padding: 20px;
  margin-top: 10px;
  max-width: 600px;
  text-align: center;
}

/* --- Titles & Headers --- */
.page-title {
  background-color: var(--clr-dark-grey);
  padding: 15px 25px;
  border-radius: var(--radius-lg);
  display: block;
  margin: 20px auto;
  width: fit-content;
  text-align: center;
  color: var(--clr-dark-green);
}

section.content .page-title {
  font-size: 3em;
  margin-bottom: 20px;
}

.page-title-box {
  background-color: rgba(51, 51, 51, 0.7);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  display: inline-block;
  margin-top: 20px;
  color: var(--clr-white);
}

/* --- Fullscreen Image Viewer (Updated) --- */
#fullscreen-viewer {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(51, 51, 51, 0.8);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#fullscreen-viewer.show {
  display: flex;
}

.image-modal-content {
  background-color: var(--clr-dark-grey-solid);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 20px var(--clr-dark-green);
  border: 2px solid var(--clr-dark-green);
  /* Adjusting padding to create space for the close button */
  padding: 30px 40px 30px 30px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  box-sizing: border-box;
}

#fullscreen-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  cursor: default; /* Images are not clickable in this modal */
}


.image-modal-content .close {
  color: var(--clr-white);
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer; /* Close buttons are clickable */
  z-index: 1001;
  user-select: none;
  transition: color var(--transition-fast);
}

.image-modal-content .close:hover {
  color: var(--clr-dark-green);
}

/* --- Cart Page Specific Styles --- */
.cart-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  cursor: default; /* Cart icon itself isn't a direct button, the link is */
}

.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.cart-item {
  padding: 15px;
  max-width: 1500px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  flex-wrap: nowrap;
  margin: 10px auto;
}

.cart-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: default; /* Images in cart are not clickable */
}

.cart-item h3 {
  font-size: 1.8em;
  color: var(--clr-dark-green); /* Unified green */
  white-space: normal;
  margin: 0;
}

.cart-item p {
  padding: 20px;
  font-size: 1.1em;
  white-space: normal;
  margin: 5px 0;
}

.cart-price {
  padding: 20px;
  font-size: 1.5em;
  color: var(--clr-white);
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 20px;
  flex: 1;
  text-align: center;
}

.remove-btn {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 2em;
  color: var(--clr-red);
  cursor: pointer; /* The remove button is clickable */
}

.remove-btn:hover {
  color: var(--clr-dark-red);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-left: 10px;
}

/* --- General Thumbnails (used in cart and modals) --- */
.thumbnail {
  width: 150px;
  height: auto;
  margin: 10px;
  border-radius: var(--radius-md);
  max-width: 120px;
}

/* --- Buttons (General) --- */
.email-btn,
.details-button,
.add-direct-button,
.add-button,
.availability-button {
  display: inline-block;
  background-color: var(--clr-dark-green); /* Unified green */
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-sm);
  margin-top: 15px;
  cursor: pointer; /* All of these are clickable buttons */
  text-align: center;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), background-color var(--transition-medium);
}

/* Specific button sizing */
.details-button,
.add-direct-button,
.add-button {
  padding: 10px 20px;
  font-size: 1rem;
}

.email-btn {
  padding: 15px 30px;
  margin-top: 40px;
  font-size: 1.2em;
  display: block;
  width: fit-content;
  margin-inline: auto;
}

.availability-button {
  padding: 10px 18px;
  margin-top: 10px;
  border-radius: 6px;
}

/* Hover effects for all buttons - Now with neon glow */
.email-btn:hover,
.details-button:hover,
.add-direct-button:hover,
.add-button:hover,
.availability-button:hover {
  background-color: var(--clr-dark-green);
  color: var(--clr-white); /* Keep the text color white on hover */
  transform: scale(1.05);
  box-shadow: 0 0 15px 5px var(--clr-neon-glow);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-shadow: 2px 2px 6px rgb(0, 0, 0);
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 9em);
}

.hero p {
  background-color: var(--clr-dark-grey);
  font-size: 1.2em;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
}

.hero-space {
  height: 20px;
}

/* --- About Section --- */
.about-section {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--clr-dark-grey);
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  align-items: center;
  gap: 30px;
}

.about-image {
  flex: 1 1 300px;
  max-width: 300px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 15px rgba(51, 51, 51, 0.3);
  cursor: pointer; /* The images here are clickable, as they open the viewer */
  transition: transform var(--transition-medium);
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 2 1 400px;
}

.about-text h2 {
  margin-top: 0;
  font-size: 32px;
}

.about-text p {
  line-height: 1.6;
  font-size: 18px;
}

/* --- Contact Section & Icons --- */
#contact-section a {
  color: var(--clr-blue-link);
  text-decoration: none;
  font-weight: bold;
  cursor: pointer; /* These are links, so they are clickable */
}

#contact-section a:hover {
  text-decoration: underline;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
}

.icon-box {
  background: var(--clr-dark-grey);
  padding: 20px;
  border-radius: var(--radius-lg);
  width: 250px;
  margin-top: 20px;
  transition: transform var(--transition-medium);
  text-align: center;
  cursor: pointer; /* The entire icon box is clickable */
}

.icon-box:hover {
  transform: scale(1.05);
}

.icon-box i {
  font-size: 2em;
  color: var(--clr-dark-green);
  margin-bottom: 10px;
}

.icon-box a {
  display: inline-block;
  margin-top: 10px;
}

/* --- Footer --- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.content {
  flex-grow: 1;
  padding: 80px 20px;
  text-align: center;
}

footer {
  font-weight: bold;
  background: var(--clr-dark-grey);
  color: var(--clr-white);
  padding: 20px;
  text-align: center;
}

/* --- Services Section (Service Card) --- */
.service {
  cursor: pointer; /* The entire service card is clickable */
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(51, 51, 51, 0.9);
}

.service p {
  /* No cursor change, since the entire parent is the clickable element */
}

.service .icon-container {
  display: inline-block;
  margin-right: 15px;
}

.service-icon,
.service .icon-container i {
  font-size: 3em;
  color: var(--clr-dark-green);
  vertical-align: middle;
}

/* --- General Modal Styling --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  inset: 0;
  background-color: rgba(51, 51, 51, 0.9);
  overflow: auto;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--clr-dark-grey-solid);
  padding: 40px;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  color: var(--clr-white);
  box-shadow: 0 0 20px var(--clr-dark-green);
  border: 2px solid var(--clr-dark-green);
  text-align: center;
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: default; /* Modal content itself is not interactive */
}

.modal-content::-webkit-scrollbar {
  display: none;
}

.modal-content h2 {
  font-size: 2em;
  color: var(--clr-dark-green);
  margin-bottom: 20px;
}

.modal-content p {
  margin: 25px 0 15px 20px;
}

.modal-images {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-images img {
  width: 125px;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer; /* These images are clickable to open the fullscreen viewer */
}

.modal-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(200, 200, 200, 0.3);
}

/* --- Close Buttons (General) --- */
.close {
  color: var(--clr-white);
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  top: 20px;
  right: 30px;
  cursor: pointer; /* Close buttons are clickable */
  z-index: 1001;
  user-select: none;
  transition: color var(--transition-fast);
}

.close:hover {
  color: var(--clr-dark-green);
}

/* --- Navbar --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(51, 51, 51, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.nav-center {
  display: flex;
  gap: 30px;
}

.nav-cart {
  position: absolute;
  right: 20px;
}

/* --- Hamburger Menu --- */
.hamburger {
  position: absolute;
  left: 20px;
  top: 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  z-index: 1000;
  padding: 10px;
  margin: -10px;
  box-sizing: content-box;
}

.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background-color: transparent;
  border-radius: 2px;
  transition: background-color var(--transition-slow),
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    outline-color var(--transition-slow),
    outline var(--transition-slow),
    outline-offset var(--transition-slow),
    opacity var(--transition-slow);

  outline: 2px solid var(--hamburger-outline-color);
  outline-offset: -1px;
}

/* Hover state: Fills the line with unified green, adds glow, and smoothly hides the outline */
.hamburger:hover span:nth-child(1),
.hamburger:hover span:nth-child(2),
.hamburger:hover span:nth-child(3) {
  background-color: var(--clr-dark-green);
  box-shadow: 0 0 8px var(--clr-dark-green);
  outline-color: transparent;
  outline-offset: 0;
}

.hamburger:hover span:nth-child(1) {
  transform: translateX(4px);
}

.hamburger:hover span:nth-child(2) {
  transform: scaleX(1.2);
}

.hamburger:hover span:nth-child(3) {
  transform: translateX(-4px);
}

/* CLICKED/ACTIVE state for the 'X' (when menu is OPEN) */
body.menu-open .hamburger span {
  background-color: var(--hamburger-active-color);
  outline-color: transparent;
  outline-offset: 0;
  box-shadow: none;
}

body.menu-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  transform-origin: center;
}

body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

body.menu-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  transform-origin: center;
}

/* Hover effects when menu is open (on the 'X' icon) */
body.menu-open .hamburger:hover span {
  background-color: var(--hamburger-active-color);
  outline-color: transparent;
  outline-offset: 0;
}

body.menu-open .hamburger:hover span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  box-shadow: 0 0 10px var(--hamburger-active-hover-glow);
}

body.menu-open .hamburger:hover span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
  box-shadow: none;
}

body.menu-open .hamburger:hover span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  box-shadow: 0 0 10px var(--hamburger-active-hover-glow);
}

/* --- Sliding Menu Panel & Overlay --- */
.menu-panel {
  font-weight: bold;
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background-color: var(--clr-dark-grey);
  color: var(--clr-white);
  transition: left var(--transition-medium);
  z-index: 998;
}

.menu-panel.open {
  left: 0;
}

.menu-panel .close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 30px;
  color: var(--clr-white);
  cursor: pointer;
}

.menu-links {
  margin-top: 60px;
}

.menu-links a {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #444;
  font-size: 18px;
  transition: background-color var(--transition-medium);
}

.menu-links a:hover {
  background-color: var(--clr-dark-green);
  color: var(--clr-white);
}

.menu-links a img {
  margin-right: 10px;
}

#overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(50, 50, 50, 0.6);
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

body.menu-open #overlay {
  opacity: 1;
  pointer-events: auto;
}

/* --- Cart Count & Notifications --- */
#cart-count {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translate(-25%, 25%);
  background: rgba(40, 167, 69, 0.5);
  color: var(--clr-white);
  font-size: 12px;
  font-weight: bold;
  padding: 2.5px;
  border-radius: var(--radius-md);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  align-items: flex-end;
}

.notification {
  position: relative;
  padding: 10px 30px 10px 15px;
  background-color: var(--clr-dark-green);
  color: var(--clr-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  opacity: 1;
  transition: opacity 1s ease-out;
  animation: slideIn 0.3s ease-out;
  align-self: flex-end;
  max-width: 500px;
  word-wrap: break-word;
  cursor: default; /* Notifications themselves are not interactive */
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.notificationclose {
  color: var(--clr-white);
  font-size: 20px;
  font-weight: bold;
  position: absolute;
  top: 45%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer; /* The close button is clickable */
}

/* --- Home Screen Specific Styles --- */
.home p {
  margin-bottom: 15px;
}

.home .icon-container {
  display: inline-block;
  margin-right: 15px;
}

.home-icon,
.home .icon-container i {
  font-size: 3em;
  color: var(--clr-dark-green);
  vertical-align: middle;
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 1200px) {
  .cart-item {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .cart-item-info {
    flex: 1 1 100%;
    padding-right: 10px;
  }

  .cart-item p {
    padding: 5px 0;
    font-size: 1em;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  .cart-item h3 {
    font-size: 1.5em;
  }

  .cart-price {
    padding: 10px 0 0 0;
    font-size: 1.3em;
    flex-basis: 100%;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: right;
  }
}

@media (max-width: 900px) {
  .cart-items-container {
    flex-direction: column;
    justify-content: center;
    margin-inline: auto;
    max-width: 600px;
    padding: 0 10px;
  }

  .cart-item {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
  }

  .cart-item-info {
    padding: 0;
    width: 100%;
    text-align: center;
  }

  .thumbnail {
    max-width: 100%;
    width: 100%;
  }

  .cart-price {
    font-size: 1.2em;
    padding: 10px 0 0 0;
    text-align: center;
    width: 100%;
  }

  .remove-btn {
    position: static;
    font-size: 1.5em;
  }
}

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

  .hamburger {
    display: flex;
  }

  .nav-cart {
    margin-left: auto;
  }

  #cart-count {
    left: unset;
    right: 20px;
    bottom: 20px;
    transform: translate(0, 0);
  }
}

/* --- New Styles for Modals and Buttons --- */
.body-lock-scroll {
  overflow: hidden;
}

/* CLEAR CART MODAL */
.clear-cart-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  inset: 0;
  background-color: rgba(51, 51, 51, 0.9);
  overflow: auto;
}

.clear-cart-modal.show {
  display: block;
}

.clear-cart-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(51, 51, 51);
  padding: 30px 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 450px;
  color: white;
  box-shadow: 0 0 20px #4caf50;
  border: 2px solid #4caf50;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
  cursor: default; /* Not interactive */
}

.clear-cart-modal-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.5em;
  color: white;
}

.clear-cart-modal-content p {
  margin-bottom: 20px;
}

.clear-cart-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer; /* Clickable */
  color: white;
  transition: color 0.2s ease;
  user-select: none;
}

.clear-cart-close:hover {
  color: #ff4c4c;
}

.clear-cart-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.clear-cart-buttons button {
  flex: 1;
  max-width: 150px;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer; /* Clickable */
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.clear-cart-buttons .confirm {
  background-color: #4caf50;
  color: white;
}

.clear-cart-buttons .confirm:hover {
  background-color: #45a049;
  transform: scale(1.03);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.clear-cart-buttons .cancel {
  background-color: #777;
  color: white;
}

.clear-cart-buttons .cancel:hover {
  background-color: #666;
  transform: scale(1.03);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Modal overlay - covers entire viewport */
#scheduleModal {
  display: none;
  position: fixed;
  z-index: 1001;
  inset: 0;
  background-color: rgba(51, 51, 51, 0.9);
  overflow: auto;
}

/* Show modal overlay */
#scheduleModal.show {
  display: block;
}

/* Modal content - fixed center with transform */
#scheduleModalContent {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(51, 51, 51);
  padding: 40px 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  color: white;
  box-shadow: 0 0 20px #4caf50;
  border: 2px solid #4caf50;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
  cursor: default; /* Not interactive */
}

#scheduleModalContent h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.8em;
}

#scheduleModalContent label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 500;
  text-align: left;
}

#scheduleModalContent input,
#scheduleModalContent textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  margin-bottom: 15px;
  resize: vertical;
  box-sizing: border-box;
  background-color: #333;
  color: white;
  border: 1px solid #555;
  cursor: text; /* Allows text selection and typing */
  user-select: text; /* Re-enables selection for form inputs */
}

#scheduleModalContent input:focus,
#scheduleModalContent textarea:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 5px #4caf50;
}

#scheduleModalContent textarea {
  min-height: 120px;
}

#scheduleModalContent button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 6px;
  cursor: pointer; /* Clickable */
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

#scheduleModalContent button:hover {
  background-color: #45a049;
}

#scheduleClose {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer; /* Clickable */
  color: white;
  transition: color 0.2s ease;
  user-select: none;
}

#scheduleClose:hover {
  color: #ff4c4c;
}

/* Responsive tweaks for small devices */
@media (max-width: 768px) {
  #scheduleModalContent {
    padding: 25px 20px;
    max-width: 95%;
  }

  #scheduleModalContent h3 {
    font-size: 1.5em;
  }

  #scheduleModalContent input,
  #scheduleModalContent textarea {
    padding: 10px 12px;
  }

  #scheduleModalContent textarea {
    min-height: 100px;
  }

  #scheduleModalContent button {
    padding: 12px 25px;
    font-size: 1em;
  }

  #scheduleClose {
    font-size: 28px;
  }

  .clear-cart-modal-content {
    padding: 20px 15px;
    max-width: 90%;
  }

  .clear-cart-modal-content h3 {
    font-size: 1.25em;
  }

  .clear-cart-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .clear-cart-buttons button {
    width: 100%;
    max-width: none;
    padding: 14px 20px;
    font-size: 1.1em;
  }
}

#scheduleModalContent button:disabled {
  background-color: #666 !important;
  cursor: not-allowed;
  color: #ccc;
  position: relative;
}

#scheduleModalContent button.spinner::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.email-btn.disabled-look {
  opacity: 0.6;
  cursor: not-allowed;
}