:root {
    --spc-primary: var(--primary-color, #0072BC);
    --ast-global-color-2: var(--primary-color, #0072BC);
    --spc-label-color: #000000;
}
.inm-spc-wrap .spc .spc-field-left label {
  color: var(--spc-label-color) !important;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
.inm-spc-wrap .spc .spc-field-other-price-item label,
.inm-spc-wrap .spc .spc-field-vat label {
  color: var(--spc-label-color) !important;
}
.inm-spc-wrap {
  width: 100%;
}

.spc {
  width: 1000px;
  max-width: 100% !important;
  font-size: 14px;
}
.spc-inner {
  display: flex;
  flex-flow: column wrap;
  gap: 12px;
}
.spc-inner.loading {
  position: relative;
}
.spc-inner.loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #00000045;
  z-index: 1;
}
.spc-inner.loading::after {
  content: "";
  position: absolute;
  left: calc(50% - 20px);
  top: calc(50% - 20px);
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-top: 4px solid var(--spc-primary);
  border-radius: 50%;
  animation: spc_spin 1s linear infinite;
  z-index: 2;
}
@keyframes spc_spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.spc-form,
.spc-preview {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(216, 106, 141, 0.08);
}
.spc-preview canvas {
  width: 100%;
  height: auto;
}
.spc-preview-count {
  text-align: center;
  color: var(--spc-primary);
  font-weight: bold;
}
.spc-form form {
  display: flex;
  flex-flow: column;
  gap: 15px;
  margin-bottom: 0;
}
.spc-field {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 8px;
}
.spc-field-left {
  flex: 0 0 40%;
  max-width: 40%;
}
.spc-field-right {
  flex: 0 0 calc(60% - 8px);
  max-width: calc(60% - 8px);
}
.spc-field-full {
  flex: 0 0 100%;
  max-width: 100%;
}
.spc-field-other-price-item {
  flex: 0 0 calc(50% - 4px);
  max-width: calc(50% - 4px);
}
.spc-field label {
  margin-bottom: 0;
  font-size: inherit;
}
.spc-field input[type="date"],
.spc-field input[type="email"],
.spc-field input[type="number"],
.spc-field input[type="password"],
.spc-field input[type="search"],
.spc-field input[type="tel"],
.spc-field input[type="text"],
.spc-field input[type="url"],
.spc-field select,
.spc-field textarea,
.spc-group-field button,
.spc-btn {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #0071bc38;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  font-size: inherit;
  height: auto;
  box-shadow: none;
  outline: none;
  min-height: 32px;
  line-height: inherit;
  text-transform: none;
  margin-bottom: 0;
  box-sizing: border-box;
}
.spc-field input[type="checkbox"],
.spc-field input[type="radio"] {
  margin-bottom: 0;
}
span.spc-error {
  color: red;
  margin-top: 5px;
  display: block;
}
.spc-result {
  display: flex;
  flex-flow: column wrap;
  gap: 12px;
  margin-top: 12px;
}
.spc-result table {
  width: 100%;
  border: 1px solid #c8e9ff;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: inherit;
  line-height: inherit;
}
.spc-result table td,
.spc-result table th {
  font-size: inherit;
  line-height: inherit;
  border: 1px solid #0072BC;
  padding: 4px 8px;
  word-break: break-word;
}
.spc-result table th {
  background: var(--spc-primary);
  color: #fff;
  text-transform: none;
  font-weight: normal;
}
.spc-result-guide td:first-child {
  white-space: nowrap;
}
button.spc-button {
  min-height: 0;
  max-height: none;
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--spc-primary);
  background: var(--spc-primary);
  color: #fff;
  line-height: inherit;
  font-size: inherit;
  font-weight: normal;
  padding: 8px 8px;
  margin: 0;
  white-space: nowrap;
  text-transform: none;
  cursor: pointer;
}
button.spc-button:hover {
  color: var(--spc-primary);
  background-color: #ffffff;
}
.spc-view-result {
  text-align: center;
  margin-top: 10px;
}
button#spc-view-result {
  max-width: 200px;
  font-size: 1.2em;
}
.spc-field-disabled {
  opacity: 0.45;
}
.spc-field-disabled input,
.spc-field-disabled select,
.spc-field-disabled textarea,
.spc-field-disabled button,
.spc-field-disabled label {
  pointer-events: none;
}
.spc-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: #6b7280;
  text-align: center;
  padding: 20px;
}
.spc-result-guide th,
.spc-result-guide td {
  text-align: center;
}
.spc-money-decimals {
  opacity: 0.4;
  font-size: 0.92em;
  font-weight: 400;
}
.spc-popper {
  position: fixed;
  z-index: 1049;
  height: 100%;
  left: 0;
  top: 0;
  width: 100%;
}
.spc-popper-overlay {
  background: #0072BC;
  height: 100%;
  left: 0;
  opacity: 0.28;
  overflow: hidden;
  position: fixed;
  top: 0;
  transition: opacity 0.25s;
  width: 100%;
  z-index: 1048;
}
.spc-popper-container {
  padding: 15px;
  position: absolute;
  text-align: center;
  height: 100%;
  left: 0;
  top: 0;
  width: 100%;
}
.spc-popper-content {
  display: inline-block;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  text-align: left;
  transform: translateY(0);
  transition: transform 0.5s, opacity 0.3s;
  vertical-align: middle;
  z-index: 1050;
  width: 100%;
  top: 32px;
}
.spc-popper-main {
  width: 100%;
  max-height: 88vh;
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  position: relative;
  padding: 12px;
  overflow: hidden auto;
  box-shadow: 0 15px 40px rgba(216, 106, 141, 0.14);
}
button.spc-popper-close {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
button.spc-popper-close::before,
button.spc-popper-close::after {
  content: "";
  width: 16px;
  height: 2px;
  background: currentColor;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}
button.spc-popper-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.spc-popper-heading {
  font-size: 1.5em;
  font-weight: bold;
  background: var(--spc-primary);
  color: #fff;
  margin: -8px -8px 15px;
  padding: 10px;
  text-align: center;
}
.spc-popper-submit .spc-popper-main {
  max-width: 400px;
}
.spc-popper-heading ~ button.spc-popper-close {
  color: #fff;
  top: 10px;
}
form#spc-submit-form {
  display: flex;
  flex-flow: column wrap;
  gap: 12px;
  margin-bottom: 0;
}
.spc-field-actions {
  display: flex;
  flex-flow: column;
  gap: 10px;
}
.spc-order-summary {
  background: #f7fbff;
  border: 1px solid #c8e9ff;
  border-radius: 8px;
  padding: 12px;
}
.spc-order-summary p {
  margin: 0 0 6px;
}
.spc-order-summary p:last-child {
  margin-bottom: 0;
}

@media (min-width: 850px) {
  .spc-inner,
  .spc-result {
    flex-flow: row wrap;
  }
  .spc-form,
  .spc-preview {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
  .spc-result-information,
  .spc-result-guide {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}