

/* Start:/bitrix/components/custom/cut.order.form/templates/.default/style.css?17834966987153*/
:root {
  --primary: #8f0000;
  --primary-hover: #730000;
  --light: #f7f6f3;
}

.cut-order-wrap {
  padding: 16px 0 28px;
}

.cut-order {
  background: #fff;
  border: 1px solid #dfdcd6;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(26, 25, 23, 0.08);
  padding: 18px 20px !important;
}

.cut-order h2 {
  color: #1a1917;
  font-weight: 700;
}

.cut-order label {
  font-size: 12px;
  font-weight: 600;
  color: #59554d;
  margin-bottom: 4px;
}

.order-main-grid > div {
  min-width: 0;
}

.cut-order input[type="text"],
.cut-order input[type="tel"],
.cut-order input[type="email"],
.cut-order input[type="number"],
.cut-order input[type="file"],
.cut-order textarea,
.cut-order select {
  border: 1px solid #d9d4cc !important;
  border-radius: 6px !important;
  background: #fff;
  color: #1f1d1a;
  font-size: 13px;
  padding: 7px 10px !important;
}

.form-client-grid {
  margin-bottom: 4px;
}

.order-main-grid {
  margin-top: 8px !important;
}

.cut-order input:focus,
.cut-order textarea:focus,
.cut-order select:focus {
  border-color: #8f0000 !important;
  box-shadow: 0 0 0 3px rgba(143, 0, 0, 0.12);
  outline: none;
}

.btn-primary, #addRowDesktop, #addRowMobile, .btn-add {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover, #addRowDesktop:hover, #addRowMobile:hover, .btn-add:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 768px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
}

.modal {
  display: none;
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 25, 23, 0.45);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  margin: 0 auto;
  padding: 20px;
  border-radius: 16px;
  max-width: 500px;
}

#detailsTable {
  border: 1px solid #cfc9bf;
  border-radius: 10px;
  overflow: hidden;
  table-layout: fixed;
  width: 100%;
  background: #fff;
}

#detailsTable th,
#detailsTable td {
  border-color: #e6e2dc !important;
}

#detailsTable thead {
  background: #f7f6f3 !important;
}

#detailsTable th {
  font-size: 12px;
  font-weight: 600;
  color: #666056;
}

#detailsTable td {
  font-size: 12px;
  vertical-align: middle;
  padding: 6px 4px !important;
}

#detailsTable th {
  padding: 7px 4px !important;
}

#detailsTable td input,
#detailsTable td select {
  min-height: 28px;
  font-size: 12px !important;
  padding: 4px 6px !important;
}

#detailsTable th:last-child,
#detailsTable td:last-child {
  width: 82px;
  text-align: center;
}

#detailsTable td:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

#detailsTable .copy-row,
#detailsTable .remove-row {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0 !important;
  line-height: 1;
  border-radius: 4px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px !important;
}

.cut-order .bg-red-800 {
  border-radius: 10px !important;
  padding: 12px 14px !important;
}

.desktop-only {
  padding: 0;
  background: transparent;
}

.glue-help {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-left: 6px;
}

.glue-help__btn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #b7b0a5;
  background: #fff;
  color: #6d665a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
}

.glue-help__btn:hover {
  border-color: #8f0000;
  color: #8f0000;
}

.glue-help__tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  max-width: 280px;
  background: #fff;
  border: 1px solid #d9d4cc;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(26, 25, 23, 0.12);
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  color: #4f4a42;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 40;
}

.glue-help__tooltip a {
  color: #8f0000;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 2px;
}

.glue-help:hover .glue-help__tooltip,
.glue-help:focus-within .glue-help__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modal input, .modal select {
  margin-bottom: 10px;
  width: 100%;
}

.modal button {
  margin-top: 10px;
}

.bg-red-800 {
  background-color: rgba(143, 0, 0, 0.08);
  border-color: rgba(143, 0, 0, 0.18);
  color: #1a1917;
}

.consent-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
}

.thank-you-modal .thank-you-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}

.thank-you-modal .thank-you-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thank-you-modal .order-number {
  display: inline-block;
  padding: 8px 16px;
  background: #f3f3f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: monospace;
  font-size: 18px;
  color: #333;
  margin: 10px 0 16px;
}

.thank-you-modal .thank-you-note {
  font-size: 14px;
  color: #777;
  line-height: 1.5;
}

.thank-you-modal .thank-you-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 12px;
}

#submitBtn,
#addRowDesktop,
#addRowMobile,
.btn-add {
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 9px 14px !important;
}

/* Тонкая адаптация под обертку проекта C:\Projects12 (frl-theme) */
.frl-wrap [data-mounted="1"] .cut-order {
  background: var(--frl-card, #fff) !important;
  border: 1px solid var(--frl-border, #dfdcd6);
  border-radius: var(--frl-radius-lg, 16px) !important;
  box-shadow: var(--frl-shadow, 0 8px 24px rgba(26, 25, 23, 0.08)) !important;
}

.frl-wrap [data-mounted="1"] .cut-order-wrap {
  padding: 0 0 32px;
}

.frl-wrap [data-mounted="1"] .cut-order h2 {
  font-family: var(--frl-display, inherit);
  color: var(--frl-ink, #1a1917);
}

.frl-wrap [data-mounted="1"] .cut-order input[type="text"],
.frl-wrap [data-mounted="1"] .cut-order input[type="tel"],
.frl-wrap [data-mounted="1"] .cut-order input[type="email"],
.frl-wrap [data-mounted="1"] .cut-order input[type="number"],
.frl-wrap [data-mounted="1"] .cut-order textarea,
.frl-wrap [data-mounted="1"] .cut-order select {
  border-color: var(--frl-border, #dfdcd6) !important;
  border-radius: var(--frl-radius, 10px) !important;
  background: var(--frl-card, #fff);
}

@media (max-width: 900px) {
  .cut-order {
    padding: 14px 12px !important;
    border-radius: 12px;
  }

  #detailsTable {
    font-size: 12px;
  }
}

.frl-wrap [data-mounted="1"] .cut-order .btn-primary,
.frl-wrap [data-mounted="1"] .cut-order #submitBtn,
.frl-wrap [data-mounted="1"] .cut-order #addRowDesktop,
.frl-wrap [data-mounted="1"] .cut-order #addRowMobile {
  border-radius: 4px !important;
}
/* End */
/* /bitrix/components/custom/cut.order.form/templates/.default/style.css?17834966987153 */
