.cart-box {
  background-color: #fff;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  border-top: 3px solid var(--primary-color);
  margin: 0.8em 0;
  position: relative;
}

.ck-total {
  border-bottom: 1px solid #d8d8d8;
  font-weight: 700;
  font-size: 1.1rem;
  color: #333;
}

.ck-forma,
.ck-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 1em;
}

.ck-title {
  padding: 15px 25px;
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  background-color: #f8f9fa;
  justify-content: space-between;
}

.title-resume {
  background-color: var(--primary-color);
}

.ck-title.title-resume span {
  color: #fff;
}

.ck-description {
  font-weight: 400;
  color: #979797;
  font-size: 14px;
  display: flex;
  align-self: center;
}

.ck-title .ck-h1 {
  color: #464646;
  font-weight: 500;
  font-size: 18px;
}

.ck-body {
  padding-bottom: 1rem;
  padding-top: 1rem;
  padding-right: 15px;
  padding-left: 15px;
}

.carrinho-columns {
  display: flex;
  padding: 1rem;
  border-bottom: 1px solid #e9e9e9;
}

@media (max-width: 767.98px) {
  .carrinho-columns {
    display: none;
  }
}

.carrinho-column {
  margin: 0;
  font-weight: 500;
  color: #4a4a4a;
  font-size: 14px;
  line-height: 16px;
  width: calc(19% - 22.8px - 0.19rem);
}

.carrinho-column.\--bigger {
  flex-grow: 1;
}

.carrinho-column.\--quantity {
  width: 40%;
  text-align: center;
}

.carrinho-list,
.ck-resumos {
  display: flex;
  display: -webkit-flex;
  flex-direction: row;
  flex-wrap: wrap;
  -ms-align-content: flex-start;
  align-content: flex-start;
  -moz-box-align: center;
  -ms-flex-align: center;
  justify-content: flex-start;
  list-style-type: none;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding-inline-start: 0;
  -webkit-margin-before: 0;
  -webkit-margin-after: 0;
  -webkit-margin-start: 0;
  -webkit-margin-end: 0;
  -webkit-padding-start: 0;
  font-size: 14px;
  margin-bottom: 0;
  padding: 0;
}

.ck-resumos {
  padding-left: 0;
  padding-bottom: 1rem;
  padding-top: 1rem;
  border-bottom: 1px solid #d8d8d8;
  margin-bottom: 1rem;
}

.ck-resumo {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.carrinho-list {
  width: 100%;
}

.carrinho-items {
  display: flex;
  padding: 5px 0;
  margin: 0 1rem;
  width: 100%;
  border-bottom: 1px solid #e9e9e9;
  flex-wrap: wrap;
}

ul.carrinho-list li.carrinho-items:last-of-type {
  border-bottom: none;
}

.carrinho-tumbnail {
  margin-right: 0.8em;
}

.carrinho-tumbnail img {
  min-width: 85px;
  min-height: 85px;
  max-width: 85px;
  max-height: 85px;
}

@media (max-width: 767.98px) {
  .carrinho-tumbnail img {
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
  }
}

.carrinho-produtoInfo {
  display: flex;
  padding: 1rem 0;
  margin: 0 1.5rem;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 767.98px) {
  .carrinho-produtoInfo {
    padding: 10px 0;
    margin: 0;
  }
}

@media (min-width: 0px) and (max-width: 991.98px) {
  .carrinho-produtoInfo {
    margin-left: 5px;
  }
}

.carrinho-list .carrinho-title {
  width: auto;
  margin-bottom: 0;
  max-width: 35%;
  margin-right: 5%;
  order: 0;
  flex-grow: 1;
}

@media (max-width: 767.98px) {
  .carrinho-list .carrinho-title {
    max-width: 60%;
    padding: 5px 0;
    margin-right: 5px;
  }
}

@media (min-width: 0px) and (max-width: 991.98px) {
  .carrinho-produtoInfo .carrinho-title {
    max-width: 100%;
    margin-left: 10px;
  }
}

.carrinho-produtoInfo .carrinho-title,
.sdm-wrapper-list .sdm-list {
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
}

.carrinho-plink {
  font-size: 14px;
  line-height: 16px;
  color: #333;
  margin-bottom: 0.5rem;
  text-transform: none;
}

.vendido-por {
  color: grey;
}

.carrinho-infos-wrapper {
  width: 60%;
  justify-content: space-between;
  display: flex;
  display: -webkit-flex;
  flex-direction: row;
}

@media (min-width: 0px) and (max-width: 991.98px) {
  .carrinho-infos-wrapper {
    display: flex;
    display: -ms-flexbox;
    justify-content: space-between;
    width: 100%;
    margin-left: 10px;
  }
}

.carrinho-Quantidade {
  order: 1;
  width: 10%;
  min-width: 10%;
  text-align: center;
  flex-direction: column;
  align-items: flex-start;
  order: 0;
}

@media (max-width: 767.98px) {
  .carrinho-list .carrinho-Quantidade {
    min-width: 15%;
  }
}

.control-carrinho {
  display: block;
  width: 100%;
  height: 40px !important;
  width: 55px;
  padding: 0 9px;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.cart-remove {
  display: block;
  cursor: pointer;
  z-index: 1;
  text-transform: lowercase;
  color: #ff0000 !important;
  
}

.carrinho-entrega {
  min-width: 16%;
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .carrinho-list .carrinho-entrega {
    width: 50%;
    margin: 0;
  }
}

@media (min-width: 0px) and (max-width: 991.98px) {
  .carrinho-produtoInfo .carrinho-entrega {
    display: none;
  }
}

.carrinho-preco {
  color: #333;
  line-height: 1.2;
  float: right;
  font-weight: 700;
  width: 40%;
  min-width: 19%;
  margin-bottom: 0;
  margin-left: 1%;
}

@media (min-width: 0px) and (max-width: 991.98px) {
  .carrinho-preco {
    min-width: auto;
    width: auto;
  }
}

@media (max-width: 767.98px) {
  .carrinho-list .carrinho-preco {
    font-size: 16px;
  }
}

.ck-body .carrinho-preco {
  width: auto;
}

#carrinho-frete {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.ck-resumo-parcelado {
  text-align: right;
  font-weight: 400;
  color: #666;
  font-size: 14px;
  width: 100%;
}

.resumo-cupom {
  color: #9b9b9b;
  line-height: 1.5;
  margin: 13px 0;
  font-size: 14px;
  width: 100%;
  padding: 0 15px;
  text-align: center;
}

.frete-input > div {
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}

.frete-input > form {
  display: flex;
  width: fit-content;
}

.frete-input > form > div {
  width: 100%;
  border: 0;
  margin: 0;
  display: inline-flex;
  padding: 0;
  position: relative;
  min-width: 0;
  flex-direction: column;
  vertical-align: top;
}

.frete-input > form button {
  cursor: pointer;
  border-radius: 4px;
  color: var(--color-global-button);
  background-color: var(--bg-global-button);
  margin-left: 15px;
  width: max-content;
  padding: 14.5px 16px;
  font-size: 16px;
}

.text-cep-search {
  font-size: 16px;
  transition: text-decoration 0.2s;
  cursor: pointer;
}

.text-cep-search:hover {
  text-decoration: underline;
}

.out-of-stock-product {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 0.25rem;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #856404;
  font-size: 1rem;
}

.out-of-stock-product .alert-message{
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

.carrinho-quantidade {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.out-of-stock-product .cart-remove {
  color: #dc3545;
  text-decoration: none;
  margin-left: 1rem;
}

.cart-remove:hover {
  text-decoration: underline;
}

.buy-button.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}
