.mccp-checkout,
.mccp-checkout * {
  box-sizing: border-box;
}

.mccp-checkout {
  font-family: "Tajawal", sans-serif;
  color: #131313;
  max-width: 460px;
  margin: 18px auto;
}

.mccp-card {
  background: #fffdfa;
  border: 1px solid #e7d8ca;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(88, 59, 39, 0.08);
}

.mccp-head {
  background: #26201c;
  padding: 18px 18px 16px;
  text-align: center;
}

.mccp-head h2 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.mccp-body {
  padding: 14px;
}

.mccp-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mccp-section-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.mccp-product {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fffdfa;
  border: 1px solid #eaded1;
  border-radius: 18px;
  margin-bottom: 12px;
}

.mccp-product__thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #f4e7da;
}

.mccp-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mccp-product__content h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.mccp-product__meta {
  color: #7e6d5f;
  font-size: 11px;
  margin-bottom: 8px;
}

.mccp-product__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mccp-product__price {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.mccp-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #eaded1;
  border-radius: 999px;
  padding: 4px;
}

.mccp-qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f5ebdf;
  color: #131313;
  font-size: 18px;
  cursor: pointer;
}

.mccp-qty span {
  min-width: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.mccp-form {
  display: grid;
  gap: 10px;
}

.mccp-field {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  border: 1px solid #e7d8ca;
  border-radius: 16px;
  overflow: hidden;
  background: #fffdfa;
}

.mccp-field__icon {
  display: grid;
  place-items: center;
  height: 100%;
  background: #6f4d34;
  color: #fff;
  font-size: 14px;
}

.mccp-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #131313;
  padding: 0 14px;
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
}

.mccp-field input::placeholder {
  color: #988472;
}

.mccp-summary {
  background: #fffdfa;
  border: 1px solid #e7d8ca;
  border-radius: 18px;
  padding: 14px;
  margin-top: 2px;
}

.mccp-summary__row,
.mccp-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mccp-summary__row {
  padding: 6px 0;
  font-size: 12px;
  color: #7e6d5f;
}

.mccp-summary__row strong {
  color: #131313;
  font-size: 14px;
}

.mccp-summary__total {
  border-top: 1px dashed #dbc3ab;
  margin-top: 8px;
  padding-top: 12px;
}

.mccp-summary__total span {
  font-size: 13px;
  font-weight: 700;
}

.mccp-summary__total strong {
  font-size: 26px;
  font-weight: 900;
  color: #111;
}

.mccp-message {
  min-height: 18px;
  font-size: 12px;
  color: #b75e4f;
}

.mccp-submit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #b78a5a;
  color: #fff;
  padding: 16px 18px;
  font-family: "Tajawal", sans-serif;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(183, 138, 90, 0.24);
}

.mccp-submit[disabled] {
  opacity: 0.75;
  cursor: wait;
}

.mccp-empty {
  padding: 18px;
  background: #fffdfa;
  border: 1px solid #e7d8ca;
  border-radius: 18px;
  text-align: center;
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
}

.mccp-popup[hidden] {
  display: none;
}

.mccp-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.mccp-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
}

.mccp-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 360px);
  margin: 15vh auto 0;
  background: #fffdfa;
  border-radius: 24px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 22px 70px rgba(30, 22, 17, 0.22);
}

.mccp-popup__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #1c7d59;
  color: #fff;
  font-size: 20px;
}

.mccp-popup__dialog h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.mccp-popup__dialog p {
  margin: 10px 0 14px;
  color: #7e6d5f;
  font-size: 13px;
  line-height: 1.7;
}

.mccp-popup__order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f4e8dc;
  color: #131313;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
}

.mccp-popup__btn {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: #f2e6da;
  color: #131313;
  padding: 13px 14px;
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 380px) {
  .mccp-checkout {
    max-width: 100%;
  }

  .mccp-head h2 {
    font-size: 21px;
  }

  .mccp-product__content h4 {
    font-size: 13px;
  }

  .mccp-product__price {
    font-size: 18px;
  }

  .mccp-summary__total strong {
    font-size: 22px;
  }

  .mccp-submit {
    font-size: 16px;
  }
}
