.container {
  max-width: 800px;
  /* Change margin to handle vertical centering better */
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  /* Add these properties for better mobile sizing */
  width: 90%; /* Use percentage instead of fixed width */
  min-height: 200px; /* Minimum height to ensure content visibility */
  position: relative;
}

#buyers-guide {
  margin-top: 100px;
}

#purchase-confirmation {
  max-width: 800px;
  margin: 20px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
}

#purchase-confirmation p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.6;
}

#purchase-confirmation #discount-code-section {
  display: block;
  margin: 20px 0;
}

#purchase-confirmation #discount-code-section input[type="text"] {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

#purchase-confirmation #discount-code-section .button {
  display: inline-block;
    min-width: 120px;
    margin: 10px 0;
}

#purchase-confirmation #discount-code-section .discount-code-message {
  display: block;
  margin-top: 0;
  color: #2e8b57;
  font-size: 1em;
  text-align: left;
}

#purchase-confirmation input[type="text"] {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
  font-size: 14px;
}

#purchase-confirmation .button {
  display: inline-block;
  min-width: 120px;
  margin: 10px 0;
}

#purchase-confirmation #continueButton {
  margin-top: 20px;
  width: 100%;
  max-width: 200px;
}

  .text-container {
    /* ... your existing text-container styles ... */
    margin-top: 30px; /* Adjust spacing as needed */
    max-width: 800px; /* Limit the paragraph width */
    margin-left: auto;
    margin-right: auto; 
  }

  .button {
    display: block;
    width: 200px;
    padding: 15px;
    margin: 20px auto;
    text-align: center;
    text-decoration: none;
    background-color: #0C7489;
    color: white;
    border-radius: 5px;
  }

  .button:hover {
    background-color: #13505b; /* Darker green on hover */
  }

  .container img {
    margin: 0;
    height: auto;
    max-width: 100%;
    width: 200px;
  }

  .container h2 { /* Adjust line-height for the heading */
    line-height: 1.2; 
  }
  
  .button {
    /* ... your button styles ... */
    line-height: 1; /* Adjust line-height for the button */
  }

  .basket-link {
    color: #0C7489;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
    margin-left: 5px;
  }

  .basket-link:hover {
    color: #13505b;
  }

  .basket-link i {
    vertical-align: middle;
  }

  .back-button {
    position: absolute;
    left: 20px;
    top: 20px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  .back-button:hover {
    background-color: #f0f0f0;
    color: #333;
  }

  .back-button i {
    font-size: 16px;
  }

/* Test Mode Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.toggle-label {
    margin-left: 10px;
    font-weight: bold;
    color: #333;
}

#test-mode-toggle {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}