:root {
  --medium-red: #182847;
}
body,
html {
  overflow-x: scroll !important;
}

@media print {
    body, html{
        overflow-x: auto !important;
    }
}

.half-max{
    max-width: 50%;
}
.red{
    color: red;
}
div.top-menu .logo {
  background-color: var(--dark-blue) !important;
}

.top-bar {
  padding-top: 0.5rem;
  background-color: var(--super-light);
  height: 50px;
  width: 100%;
  padding-left: 1rem;
  line-height: 40px;
}

@media screen and (max-width: 750px){
    #dealer_name{
        display: none !important;
    }
}

.main {
  margin: auto;
  margin-top: 3rem;
  max-width: 1600px;
  width: 90%;
}

#shopping-cart-items {
  max-width: 800px;
  margin: auto;
}
.shopping-cart-item .thumbnail {
}
.shopping-cart-item .thumbnail img {
  width: 125px !important;
}

div.shopping-cart-item .cart-quantity {
  margin: 0 !important;
  padding: 0 !important;
}

.retail_price{
    font-size: 10pt;
}

/* Price display adjustments */
.price-amount {
  text-decoration: line-through !important;
  font-style: italic !important;
  color: var(--light-grey);
}

#cart-total {
  display: none !important;
}
.shopping-cart-bottom .checkout button {
  display: none !important;
}

/* Dealer Cart */
.dealer-cart {
  padding: 1rem;
}

.dealer-cart-row {
  padding: 0.5rem;
  align-content: space-between;
  border: 1px solid var(--super-light); 
  margin: 0.25rem;
  margin-left: 0;
  border-radius: 0.5rem;
  justify-content: space-around;
  /*background-color: var(--super-light);*/
  display: grid;
  grid-template-columns: 25% 40% 10% 15% 10%;
}

@media print{
    .dealer-cart-row{
        border: none;
        border-top: 1px solid var(--super-light);
        border-radius: unset;
    }
}

@media screen and (max-width: 768px){
    .dealer-cart-row{
        display: flex !important;
    }
}

.dealer-header-row {
  background-color: unset !important;
}

.dealer-cart-col {
  padding: 0.25rem;
  border-radius: 0.25rem;
  margin: 0.25rem;
  /* text-align: center; */
  color: var(--dark-grey);
  padding-left: 0.5rem;
  box-sizing: content-box;
}

.addon-row {
  background-color: var(--super-light);
}

#dealer-total {
  text-align: right;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.manual-add-bar {
  gap: 20px;
  align-content: center;
}

#manual_part {
  height: 100%;
  box-sizing: border-box;
  padding-left: 5px;
}

textarea#order_notes{
    width: 33vw;
    min-width: 350px;
    height: 150px;
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
}
@media print{
    textarea#order_notes{
        border: none;
    }
}

#submit-message{
    max-width: 200px;
}

/* Loading */
.loading-wrap {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.mask-background {
  fill: #eeeeef;
}

#submit-loading {
  height: 46.5px;
  float: right;
  width: 80px;
}

/* Profile */
.main {
  margin: auto;
  margin-top: 2rem;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 2rem;
}

@media screen and (max-width: 1200px){
    .main{
        width: 90%;
        margin: auto;
    }
}
@media screen and (max-width: 550px){
    .main{
        width: 95%;
        margin: auto;
        padding: 1%;
    }
}

@media print{
    .main{
        overflow-x: hidden !important;
        width: 90% !important;
    }
}


.form-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
}
@media screen and (max-width: 1200px){
    .form-grid{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}
@media screen and (max-width: 750px){
    .form-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
@media screen and (max-width: 550px){
    .form-grid{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
        width: 100%;
    }
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}


.form-group label {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.form-group input {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--light-grey);
  border-radius: 5px;
}

button[type="submit"] {
  padding: 0.75rem;
  font-size: 1rem;
  background-color: var(--medium-red);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Orders */
.orders-container {
  display: flex;
  flex-direction: column;
  background-color: var(--light-grey);
  border-radius: 0.25rem;
  border: 1px solid var(--light-grey);
  padding: 0.25rem;
}

.order-row {
  display: flex;
  flex-direction: row;
  color: var(--dark-grey);
  font-size: 1rem;
}

.order-column {
  flex: 1;
  padding: 0.5rem;
  background-color: var(--white);
  
  margin: 1px;
}


/* Add individual borders */
.order-row:not(.order-header) .order-column {
  display: inline-flex;
    align-items: center;
}

/* Add responsive styles for phones */
@media only screen and (max-width: 600px) {
  .main {
    margin-top: 1rem;
  }
  .order-row {
    font-size: 0.9rem;
  }
}

/* Order Detail */
.order-items-container {
  flex-wrap: wrap;
  margin-top: 1rem;
  gap: 1rem;
}

.order-item, .order-items-table-header{
      border: 1px solid var(--medium-grey);
    padding: 1rem;
    display: grid;
    grid-template-columns: 20% 50% 10% 10%;
    gap: 1rem;
}

.order-items-table-header {
  font-weight: bold;
  background-color: var(--light-grey);
}

.order-items-table-header > div {
}

@media screen and (max-width: 750px) {
    .view-order{
        display: none;
    }
    .order-item, .order-items-table-header{
        gap: 5px;
    }
    
}

/* Make printable */
@media print {
  * {
    margin: 0;
    padding: 0;
  }
  .main {
    margin-top: 0 !important;
  }
  .dealer-cart-row,
  .dealer-cart-col {
    padding: 0 !important;
  }
  .no-print {
    display: none !important;
  }
  .top-menu {
    display: none !important;
  }
  .top-bar {
    display: none !important;
  }
  .manual-add-bar {
    display: none !important;
  }
  hr,
  div.hr {
    display: none !important;
  }
  #footer {
    display: none !important;
  }
  .header-message {
    display: none !important;
  }
}
