/* General Styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

/* Checkout Page Container */
.checkout-page {
  width: 80%;
  margin: 10px auto 40px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #333;
  color: #fff;
  border-radius: 8px 8px 0 0;
}

.checkout-header h1 {
  font-size: 24px;
}

/* Form Elements */
input,
select,
button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-bottom: 16px;
  /* Row gap between elements */
  border-radius: 5px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* Input, Button Focus/hover Effects */
input:focus,
select:focus,
button:focus {
  outline: none;
  border-color: #333;
}

input:hover,
select:hover,
button:hover {
  border-color: #888;
}

/* Button Styling */
button {
  /* background-color: #4CAF50; */
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  /* background-color: #45a049; */
}

/* Footer Section */
.checkout-footer {
  background-color: #333;
  color: white;
  padding: 15px;
  text-align: center;
  border-radius: 0 0 8px 8px;
}

/* Address Table */
.address-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.address-table th,
.address-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

.address-table th {
  background-color: #444;
  color: white;
}

.address-table td {
  background-color: #f9f9f9;
}

.address-table tr:nth-child(even) td {
  background-color: #e0e0e0;
}

/* Error Message Styling */
.error {
  color: red;
  font-size: 0.9em;
}

/* Dropdown Styling */
select {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  font-size: 16px;
  color: #333;
  padding: 14px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Hover and Focus Effects for Select */
select:hover,
select:focus {
  border-color: #333;
  background-color: #e0e0e0;
  outline: none;
}

/* Custom Arrow for Dropdown */
select::-ms-expand {
  display: none;
}

select:focus::-ms-value {
  color: #333;
  background-color: #e0e0e0;
}

/* Custom Arrow using Pseudo-element */
select::after {
  content: '\25BC';
  /* Downward triangle */
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 20px;
  color: #444;
}

.checkout-main {
  display: flex;
  flex-wrap: wrap;
  /* Allow elements to wrap */
  margin: 0 auto;
  /* Center the content */
}

.checkout-left {
  width: 30%;
  /* 50% for each column */
  padding: 20px;
  box-sizing: border-box;
  /* Include padding in width */
}


.checkout-right {
  width: 60%;
  /* 50% for each column */
  padding: 20px;
  box-sizing: border-box;
  /* Include padding in width */
}

.checkout-left {
  margin-right: 4%;
  /* Space between left and right columns */
}

.checkout-bottom {
  width: 100%;
  /* Full width for the second row */
  padding: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .checkout-main {
    flex-direction: column;
    /* Stack items vertically on smaller screens */
  }

  .checkout-left,
  .checkout-right {
    width: 100%;
    /* Full width for each column in small screens */
    margin-right: 0;
    padding: 10px;
    /* Adjust padding for smaller screens */
  }

  .checkout-bottom {
    width: 100%;
    /* Ensure bottom section takes full width */
    padding: 10px;
  }
}


/* Additional Styling for Form Fields (Optional) */
input[type="text"],
input[type="email"],
input[type="password"] {
  background-color: #fff;
  border: 1px solid #ddd;
  border-color: #333;
  padding: 14px;
  width: 100%;
  font-size: 16px;
  /* margin-bottom: 16px; */
  /* margin-bottom: 20px; */
}

/* Style for address table */
.saved-addresses table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccc;
  /* Small grey border */
  margin-top: 40px;

  overflow: hidden;
}

.saved-addresses th,
.saved-addresses td {
  padding: 8px;
  text-align: left;
}

.saved-addresses th {
  background-color: #f0f0f0;
  font-weight: bold;
}

/* Style for action buttons like 'Save Address' */
.save-address-link,
.edit-remove-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #141414;
  /* Blue background */
  color: white;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  margin-top: 5px;
  cursor: pointer;
}

.save-address-link:hover {
  background-color: #000000;
  /* Darker blue on hover */
}

.save-address-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5);
  /* Focus outline */
}

/* Container to hold Edit and Remove buttons in a row */
.actions-container {
  display: flex;
  gap: 10px;
  /* Adds space between the buttons */
  align-items: center;
  /* Vertically align icons */
}

.edit-remove-btn {
  background: transparent;
  border: 2px solid #000000;
  color: #000000;
  padding: 10px 20px;
  font-size: 17px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
  margin: 0 8px;
}

.edit-remove-btn:hover {
  text-decoration: none;
  transform: translateX(2px);
  color: white;
  /* Change text color to white on hover */
  background-color: #000000;
  /* Change background color to black on hover */
}

.edit-remove-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5);
  /* Focus outline */
}

.edit-remove-btn::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 0%;
  top: 0;
  left: -40px;
  transform: skewX(45deg);
  background-color: #222427;
  z-index: -1;
  transition: all 0.5s;
}

/* Optional: To make the buttons have a grey background when not hovered */
.edit-remove-btn {
  background-color: #d3d3d3;
}

.error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
}

.cart-summary {
  background-color: #f9f9f9;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  max-width: 100%;
  margin: 20px auto;
  font-family: 'Arial', sans-serif;
  color: #333;
}

.checkout-address {
  background-color: #f9f9f9;
  /* Light background */
  padding: 20px;
  /* Padding for spacing */
  border: 1px solid #ddd;
  /* Border similar to cart-summary */
  border-radius: 5px;
  /* Rounded corners */
  width: 100%;
  /* Take 100% of the width */
  box-sizing: border-box;
  /* Ensure padding is included in the width calculation */
  font-family: 'Arial', sans-serif;
  /* Font family */
  color: #333;
  /* Text color */
  margin: 20px 0;
  /* Vertical margin for spacing */
}


.cart-summary h3 {
  color: #111;
  font-size: 1.5em;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.empty-cart {
  color: #666;
  font-size: 1.2em;
  text-align: center;
}

.cart-item {
  display: flex;
  justify-content: space-around;
  margin: 10px 0;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.cart-item .item-name {
  color: #111;
}

.cart-item .item-price,
.cart-item .item-quantity {
  color: #555;
}

.total {
  margin-top: 20px;
  text-align: right;
}

.total p {
  font-size: 1.2em;
  font-weight: bold;
  color: #111;
}