.koc1-trigger-wrap {
  width: 100%;
  margin: 0 0 12px;
}

.koc1-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  background: #ffe623;
  border: 1px solid #ffe623;
  color: #242424;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 24px;
  cursor: pointer;
  transition: 0.4s;
}

.koc1-open-btn:hover {
  background: #242424;
  border-color: #242424;
  color: #ffe623;
}

.koc1-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.koc1-modal.is-open {
  display: block;
}

.koc1-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 36, 36, 0.6);
}

.koc1-modal__dialog {
  position: relative;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 22px 20px 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.koc1-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  color: #242424;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s;
}

.koc1-modal__close:hover {
  background: #242424;
  color: #ffe623;
  border-color: #242424;
}

.koc1-product {
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #ececec;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.koc1-product__image-wrap {
  width: 80px;
  min-width: 80px;
  height: 80px;
  border-radius: 6px;
  border: 1px solid #ececec;
  background: #fff;
  overflow: hidden;
}

.koc1-product__image-wrap.is-empty {
  display: none;
}

.koc1-product__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.koc1-product__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #242424;
  line-height: 1.3;
}

.koc1-product__price {
  color: #242424;
  font-weight: 600;
}

.koc1-product__price bdi,
.koc1-product__price span {
  color: inherit;
}

.koc1-form {
  display: grid;
  gap: 12px;
}

.koc1-form__row {
  display: grid;
  gap: 6px;
}

.koc1-form label {
  font-weight: 600;
  color: #383838;
  font-size: 0.92rem;
}

.koc1-form input[type="text"],
.koc1-form input[type="tel"],
.koc1-form input[type="email"],
.koc1-form input[type="number"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  background: #fff;
  color: #242424;
  padding: 10px 12px;
  font-size: 1rem;
  outline: none;
}

.koc1-form input:focus {
  border-color: #242424;
  box-shadow: 0 0 0 2px rgba(255, 230, 35, 0.45);
}

.koc1-qty {
  display: flex;
  align-items: center;
  max-width: 172px;
  gap: 8px;
}

.koc1-qty__btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #f0f0f0;
  color: #242424;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s;
}

.koc1-qty__btn:hover {
  background: #ffe623;
  border-color: #ffe623;
}

.koc1-qty input {
  text-align: center;
}

.koc1-status {
  min-height: 20px;
  font-size: 0.92rem;
  margin-top: -2px;
}

.koc1-status.is-success {
  color: #177a33;
}

.koc1-status.is-error {
  color: #c9362b;
}

.koc1-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  border-radius: 4px;
  border: 1px solid #ffe623;
  background: #ffe623;
  color: #242424;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.4s;
}

.koc1-submit:hover:not(:disabled) {
  background: #242424;
  border-color: #242424;
  color: #ffe623;
}

.koc1-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.koc1-lock {
  overflow: hidden;
}

@media (max-width: 560px) {
  .koc1-open-btn {
    width: 100%;
  }

  .koc1-modal__dialog {
    padding: 18px 14px 14px;
  }

  .koc1-product {
    align-items: flex-start;
  }

  .koc1-submit {
    width: 100%;
  }
}

