.ao-mk-calculator {
  --ao-mk-red: #C0090F;
  --ao-mk-dark: #17191c;
  --ao-mk-hover: #43474A;
  --ao-mk-muted: #666b73;
  --ao-mk-line: #e6e7e9;
  font-family: inherit;
  color: var(--ao-mk-dark);
  margin-top: 0;
}

.ao-mk-calculator *,
.ao-mk-calculator *::before,
.ao-mk-calculator *::after {
  box-sizing: border-box;
}

.ao-mk-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.ao-mk-product-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 146px;
  align-items: center;
  gap: 20px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--ao-mk-line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(23,25,28,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ao-mk-product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(23,25,28,.09);
  border-color: #d5d8dd;
}

.ao-mk-product-image {
  width: 150px;
  height: 118px;
  border-radius: 16px;
  background: #f4f5f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ao-mk-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.ao-mk-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: var(--ao-mk-red);
  letter-spacing: .08em;
}

.ao-mk-product-content h3 {
  margin: 0 0 7px;
  color: var(--ao-mk-dark);
  font-size: 20px;
  line-height: 1.25;
}

.ao-mk-product-description {
  max-width: 860px;
  color: var(--ao-mk-muted);
  font-size: 14px;
  line-height: 1.52;
}

.ao-mk-product-description p {
  margin: 0 0 8px;
}

.ao-mk-product-description p:last-child {
  margin-bottom: 0;
}

.ao-mk-product-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 8px;
  width: 146px;
  min-width: 146px;
  text-align: center;
}

.ao-mk-qty-label {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--ao-mk-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}

.ao-mk-qty-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  border: 1px solid var(--ao-mk-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.ao-mk-qty-control button {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px;
  min-width: 40px;
  height: 38px;
  min-height: 38px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f4f5f7;
  color: var(--ao-mk-dark);
  font-size: 0 !important;
  font-weight: 700;
  line-height: 1 !important;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  transition: background .16s ease, color .16s ease;
}

.ao-mk-qty-control button::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: currentColor;
  pointer-events: none;
  transform: translateY(-1px);
}

.ao-mk-qty-control .ao-mk-minus::before {
  content: "−";
}

.ao-mk-qty-control .ao-mk-plus::before {
  content: "+";
}

.ao-mk-qty-control button:hover {
  background: var(--ao-mk-red);
  color: #fff;
}

.ao-mk-qty-control input {
  display: block;
  width: 56px;
  height: 38px;
  min-height: 38px;
  margin: 0 !important;
  text-align: center;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--ao-mk-dark);
  background: #fff;
  font-weight: 700;
  line-height: 38px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.ao-mk-qty-control input::-webkit-outer-spin-button,
.ao-mk-qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ao-mk-summary {
  position: static;
  margin-top: 24px;
}

.ao-mk-summary-inner {
  background: #fff;
  border: 1px solid var(--ao-mk-line);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 16px 42px rgba(23,25,28,.1);
}

.ao-mk-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.ao-mk-summary h3 {
  margin: 0 0 8px;
  color: var(--ao-mk-dark);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.ao-mk-summary-hint {
  margin: 0;
  color: var(--ao-mk-muted);
  line-height: 1.5;
}

.ao-mk-summary-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) minmax(230px, .8fr);
  gap: 18px;
  align-items: stretch;
}

.ao-mk-duration {
  margin: 0;
  padding: 0;
  border: 0;
}

.ao-mk-duration > span {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.ao-mk-duration-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ao-mk-duration-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ao-mk-line);
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  font-weight: 600;
}

.ao-mk-duration-options input {
  accent-color: var(--ao-mk-red);
}

.ao-mk-result {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border-radius: 18px;
  background: #f7f7f8;
  border: 1px solid #e3e5e8;
}

.ao-mk-result-label {
  display: block;
  color: var(--ao-mk-muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.ao-mk-result-net {
  display: block;
  color: var(--ao-mk-red);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ao-mk-result-gross {
  display: block;
  color: var(--ao-mk-muted);
  margin-top: 4px;
}

.ao-mk-result-included {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e3e5e8;
  color: var(--ao-mk-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ao-mk-request-area {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ao-mk-open-request,
.ao-mk-submit-request {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--ao-mk-red);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 15px 18px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.ao-mk-open-request:hover,
.ao-mk-submit-request:hover {
  background: var(--ao-mk-hover);
  transform: translateY(-1px);
}

.ao-mk-summary-message {
  min-height: 20px;
  margin-top: 10px;
}

.ao-mk-request-form {
  margin-top: 24px;
  border-top: 1px solid var(--ao-mk-line);
  padding-top: 24px;
}

.ao-mk-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ao-mk-form-grid label,
.ao-mk-privacy {
  display: block;
}

.ao-mk-form-grid label span {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.ao-mk-form-grid input,
.ao-mk-form-grid textarea {
  width: 100%;
  border: 1px solid var(--ao-mk-line) !important;
  border-radius: 12px !important;
  padding: 12px 13px !important;
  box-shadow: none !important;
  background: #fff;
  color: var(--ao-mk-dark);
}

.ao-mk-form-grid input:focus,
.ao-mk-form-grid textarea:focus {
  outline: none;
  border-color: var(--ao-mk-red) !important;
}

.ao-mk-full {
  grid-column: 1 / -1;
}

.ao-mk-privacy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0;
  color: var(--ao-mk-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ao-mk-privacy input {
  margin-top: 2px;
  accent-color: var(--ao-mk-red);
}

.ao-mk-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.ao-mk-form-message {
  margin-top: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.ao-mk-form-message.is-success {
  color: #166534;
}

.ao-mk-form-message.is-error {
  color: var(--ao-mk-red);
}

.ao-mk-empty {
  padding: 22px;
  border: 1px solid var(--ao-mk-line);
  border-radius: 16px;
  background: #fff;
}

@media (max-width: 980px) {
  .ao-mk-product-card {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .ao-mk-product-image {
    width: 128px;
    height: 104px;
  }

  .ao-mk-product-actions {
    grid-column: 2;
    justify-self: start;
    width: 136px;
    min-width: 136px;
  }

  .ao-mk-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ao-mk-product-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ao-mk-product-image {
    width: 100%;
    height: 170px;
  }

  .ao-mk-product-actions {
    grid-column: auto;
    justify-self: center;
    width: 136px;
    min-width: 136px;
  }

  .ao-mk-duration-options,
  .ao-mk-form-grid {
    grid-template-columns: 1fr;
  }

  .ao-mk-result-net {
    font-size: 24px;
  }
}
