.amazon-header {
  background-color: white;
  color: black;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
}

.amazon-header-left-section {
  width: 150px;
}

@media (max-width: 800px) {
  .amazon-header-left-section {
    width: unset;
  }
}

.header-link {
  display: inline-block;
  padding: 6px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0);
}

.amazon-logo {
  width: 90px;
  margin-top: 5px;
}

.amazon-mobile-logo {
  display: none;
}

@media (max-width: 575px) {
  .amazon-logo {
    display: none;
  }

  .amazon-mobile-logo {
    display: block;
    height: 30px;
    margin-top: 5px;
  }
}

.amazon-header-middle-section {
  flex: 1;
  max-width: 850px;
  margin-left: 10px;
  margin-right: 150px;
  display: flex;
}

.search-bar {
  flex: 1;
  width: 0;
  font-size: 16px;
  height: 38px;
  padding-left: 15px;
  border: none;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.search-button {
  background-color: rgb(254, 189, 105);
  border: none;
  width: 45px;
  height: 40px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  flex-shrink: 0;
}

.search-icon {
  height: 22px;
  margin-left: 2px;
  margin-top: 3px;
}

.amazon-header-right-section {
  width: 210px;
  flex-shrink: 0;
  display: flex;
  justify-content: end;
}

.orders-link {
  color: white;
}

.returns-text {
  display: block;
  font-size: 13px;
}

.orders-text {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.cart-link {
  color: black;
  display: flex;
  align-items: center;
  position: relative;
}

.cart-icon {
  color: black;
  width: 50px;
}

.cart-text {
  color: black;
  font-size: 15px;
  font-weight: 700;
  position: absolute;
  top: 20px;
  left: 38px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.cart-quantity {
  color: white;
  font-size: 13px;
  font-weight: 700;
  position: absolute;
  top: -2px;
  left: 38px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background-color: #e53935;
  border-radius: 50%;
}

/* ===== Mobile fixes for iPhone 14 (390px) ===== */
@media (max-width: 480px) {
  /* Fix 1: Reduce 'DA Prints AI' logo font size to fit on one line */
  .amazon-header-middle-section p {
    font-size: 18px !important;
    white-space: nowrap !important;
  }

  /* Fix 3: Shift cart/info button left so all text is fully visible */
  .amazon-header-right-section {
    width: auto !important;
    padding-right: 10px;
    padding-left: 5px;
    flex-shrink: 0;
  }

  .cart-link {
    position: relative;
  }

  .cart-icon {
    width: 35px !important;
  }

  .cart-text {
    font-size: 12px !important;
    position: absolute !important;
    top: 16px !important;
    left: 18px !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
  }

  .cart-quantity {
    left: 18px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    font-size: 11px !important;
  }

  /* Fix 5: Prevent horizontal scrolling */
  .amazon-header {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}
