body.single-product.mita-service-product {
  --mita-service-primary: #ffb300;
  --mita-service-primary-dark: #ff9800;
  --mita-service-text: #111827;
  --mita-service-muted: #6b7280;
  --mita-service-border: #eeeeee;
  --mita-service-soft: #fff8e6;
}

body.single-product.mita-service-product .single_add_to_cart_button,
body.single-product.mita-service-product .buy_now_button {
  display: none !important;
}

body.single-product.mita-service-product:not(.mita-service-product-variable) form.cart,
body.single-product.mita-service-product .woocommerce-variation-add-to-cart {
  display: none !important;
}

body.single-product.mita-service-product.mita-service-product-variable form.variations_form.cart {
  display: block;
  width: 100%;
  margin: 18px 0 22px;
}

body.single-product.mita-service-product.mita-service-product-variable .variations {
  margin-bottom: 0;
  border-color: rgba(255, 179, 0, .22);
  background: linear-gradient(180deg, #fff, #fffdf7);
}

body.single-product.mita-service-product.mita-service-product-variable .woocommerce-variation-price {
  display: none;
}

body.single-product.mita-service-product.mita-service-product-variable .woocommerce-variation-availability {
  margin: 12px 0 0;
  color: var(--mita-service-muted);
  font-size: 13px;
  font-weight: 700;
}

body.single-product.mita-service-product.mita-service-product-variable .variations tr.has-error {
  padding: 10px;
  border: 1px solid rgba(239, 68, 68, .28);
  border-radius: 14px;
  background: #fff5f5;
}

body.single-product.mita-service-product.mita-service-product-variable .variations select {
  min-height: 42px;
  border-color: #e5e7eb;
  border-radius: 12px;
  box-shadow: none;
}

body.single-product.mita-service-product.mita-service-product-variable .variations select:focus {
  border-color: var(--mita-service-primary);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, .15);
}

body.single-product.mita-service-product .mita-service-attributes {
  margin: 18px 0 22px;
  display: grid;
  gap: 0;
  padding: 8px 18px;
  border: 1px solid rgba(255, 179, 0, .22);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fffdf7);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
  overflow: hidden;
  width: 100%;
}

body.single-product.mita-service-product .mita-service-attr {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 0;
}

body.single-product.mita-service-product .mita-service-attr + .mita-service-attr {
  border-top: 1px solid rgba(229, 231, 235, .86);
}

body.single-product.mita-service-product .mita-service-attr.has-error {
  margin: 6px 0;
  padding: 12px;
  border: 1px solid rgba(239, 68, 68, .28);
  border-radius: 16px;
  background: #fff5f5;
}

body.single-product.mita-service-product .mita-service-attr__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 179, 0, .34);
  border-radius: 14px;
  background: var(--mita-service-soft);
  color: var(--mita-service-primary-dark);
}

body.single-product.mita-service-product .mita-service-attr__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

body.single-product.mita-service-product .mita-service-attr__body {
  display: grid;
  grid-template-columns: minmax(104px, .4fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

body.single-product.mita-service-product .mita-service-attr__label {
  color: var(--mita-service-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

body.single-product.mita-service-product .mita-service-attr__label span {
  color: #ef4444;
}

body.single-product.mita-service-product .mita-service-attr__value {
  color: var(--mita-service-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  min-width: 0;
}

body.single-product.mita-service-product .mita-service-attr__empty {
  color: #9ca3af;
  font-weight: 700;
}

body.single-product.mita-service-product .mita-service-option-list,
body.single-product.mita-service-product .mita-service-color-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.single-product.mita-service-product .mita-service-option,
body.single-product.mita-service-product .mita-service-color {
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: .18s ease;
}

body.single-product.mita-service-product .mita-service-option {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--mita-service-text);
  font-size: 13px;
  font-weight: 800;
}

body.single-product.mita-service-product .mita-service-option.is-selected {
  border-color: var(--mita-service-primary);
  background: var(--mita-service-soft);
  color: var(--mita-service-primary-dark);
}

body.single-product.mita-service-product .mita-service-color {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

body.single-product.mita-service-product .mita-service-color span {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: inherit;
  background: var(--mita-service-color, #ffb300);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}

body.single-product.mita-service-product .mita-service-color.is-selected {
  border-color: var(--mita-service-primary);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, .16);
}

body.single-product.mita-service-product .mita-service-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0 12px;
  max-width: 560px;
  width: 100%;
}

body.single-product.mita-service-product .mita-service-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: .18s ease;
}

body.single-product.mita-service-product .mita-service-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

body.single-product.mita-service-product .mita-service-action--primary {
  border: 1px solid var(--mita-service-primary);
  background: linear-gradient(135deg, var(--mita-service-primary), var(--mita-service-primary-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 152, 0, .22);
  margin: 0;
}

body.single-product.mita-service-product .mita-service-action--secondary {
  border: 1px solid var(--mita-service-primary);
  background: #fff;
  color: var(--mita-service-primary-dark);
}

body.single-product.mita-service-product .mita-service-action:hover {
  transform: translateY(-1px);
}

body.single-product.mita-service-product .mita-service-validation {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, .24);
  border-radius: 12px;
  background: #fff5f5;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
}

.mita-service-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.mita-service-modal[hidden] {
  display: none;
}

.mita-service-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  opacity: 0;
  transition: opacity .18s ease;
}

.mita-service-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .26);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .18s ease, transform .18s ease;
}

.mita-service-modal.is-open .mita-service-modal__overlay {
  opacity: 1;
}

.mita-service-modal.is-open .mita-service-modal__dialog {
  opacity: 1;
  transform: translateY(0);
}

.mita-service-modal__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #ffea97;
  color: var(--mita-service-text);
  font-size: 18px;
  cursor: pointer;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mita-service-modal__head span {
  display: block;
  margin: 0 0 8px;
  color: var(--mita-service-primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mita-service-modal__head h3 {
  margin: 0 0 8px;
  color: var(--mita-service-text);
  font-size: 26px;
  line-height: 1.2;
}

.mita-service-modal__head p {
  margin: 0 0 18px;
  color: var(--mita-service-muted);
  font-size: 14px;
  line-height: 1.6;
}

.mita-service-selected-summary {
  margin: 0 0 16px;
  padding: 12px 14px;
  white-space: pre-line;
  border: 1px solid rgba(255, 179, 0, .28);
  border-radius: 14px;
  background: var(--mita-service-soft);
  color: var(--mita-service-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

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

.mita-service-form label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.mita-service-form label span {
  color: var(--mita-service-text);
  font-size: 13px;
  font-weight: 800;
}

.mita-service-form input,
.mita-service-form textarea,
.mita-service-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.mita-service-form textarea {
  min-height: 106px;
  resize: vertical;
}

.mita-service-form input:focus,
.mita-service-form textarea:focus,
.mita-service-form select:focus {
  border-color: var(--mita-service-primary);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, .15);
}

.mita-service-form__submit {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mita-service-primary), var(--mita-service-primary-dark));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.mita-service-form__submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mita-service-form__submit:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.mita-service-form__response {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.mita-service-form__response.is-success {
  background: #ecfdf3;
  color: #15803d;
}

.mita-service-form__response.is-error {
  background: #fff5f5;
  color: #b91c1c;
}

html.mita-service-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  body.single-product.mita-service-product .mita-service-attributes {
    margin-top: 16px;
    padding: 6px 14px;
    border-radius: 18px;
  }

  body.single-product.mita-service-product .mita-service-attr {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    min-height: 60px;
    padding: 12px 0;
  }

  body.single-product.mita-service-product .mita-service-attr__icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  body.single-product.mita-service-product .mita-service-attr__body {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  body.single-product.mita-service-product .mita-service-attr__label {
    font-size: 12px;
  }

  body.single-product.mita-service-product .mita-service-attr__value {
    font-size: 14px;
  }

  body.single-product.mita-service-product .mita-service-actions {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 10px;
  }

  body.single-product.mita-service-product .mita-service-action {
    width: 100%;
    min-height: 48px;
  }

  .mita-service-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .mita-service-modal__dialog {
    max-height: calc(100vh - 20px);
    padding: 20px;
    border-radius: 20px;
  }

  .mita-service-modal__head h3 {
    font-size: 22px;
  }
}
