/*
  ReutPrint Smart Order v2.0.0
  Autonomous CSS
  Файл полностью оформляет модуль Smart Order и не зависит от старых .rp-* стилей в template.css.
*/

/* ==============================
   Root / Layout
   ============================== */

.rp-calc {
  width: auto;
  margin: 5em 0 30px 0;
  padding: 18px;
  box-sizing: border-box;
  background: #ffffff;
  border: 3px solid #f3b72e;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  font-family: Montserrat, Arial, sans-serif;
  color: #333333;
}

.rp-calc,
.rp-calc * {
  box-sizing: border-box;
}

.rp-calc h2 {
  margin: 0 0 16px;
  padding: 0;
  text-align: center;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #333333;
}

.rp-calc h3 {
  margin: 0 0 10px;
  padding: 0;
  font-size: 20px;
  line-height: 1.25;
  text-align: left;
  font-weight: 700;
  color: #333333;
}

/* ==============================
   Fields / Controls
   ============================== */

.rp-calc label {
  display: block;
  margin: 10px 0 4px;
  padding: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: #333333;
}

.rp-field {
  display: block;
}

.rp-calc select,
.rp-calc input[type="number"],
.rp-calc input[type="text"],
.rp-calc input[type="tel"],
.rp-calc input[type="email"],
.rp-calc textarea {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #ffffff;
  color: #333333;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rp-calc textarea {
  min-height: 90px;
  resize: vertical;
}

.rp-calc select:focus,
.rp-calc input:focus,
.rp-calc textarea:focus {
  border-color: #393185;
  box-shadow: 0 0 0 3px rgba(57, 49, 133, 0.12);
}

/* ==============================
   Result Block
   ============================== */

.rp-result {
  margin-top: 14px;
  padding: 10px;
  background: #f7f7f7;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #333333;
}

.rp-result strong {
  color: #393185;
  font-weight: 700;
}

/* ==============================
   Buttons
   ============================== */

.rp-calc button {
  font-family: Montserrat, Arial, sans-serif;
}

#rpAddBtn,
#rpOrderBtn,
#rpClearBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.08s ease;
}

#rpAddBtn {
  width: 100%;
  margin-top: 14px;
  background: #393185;
  color: #ffffff;
  font-size: 16px;
}

#rpAddBtn:hover {
  background: #e5097f;
}

#rpAddBtn:active,
#rpOrderBtn:active,
#rpClearBtn:active,
.rp-cart-remove:active {
  transform: translateY(1px);
}

#rpOrderBtn {
  background: #393185;
  color: #ffffff;
}

#rpOrderBtn:hover {
  background: #e5097f;
}

#rpOrderBtn:disabled,
#rpOrderBtn.rp-btn-disabled,
.rp-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

#rpClearBtn {
  background: #f2f2f2;
  color: #555555;
}

#rpClearBtn:hover {
  background: #e4e4e4;
  color: #333333;
}

/* ==============================
   Cart
   ============================== */

.rp-cart {
  margin-top: 18px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
}

.rp-cart-empty {
  padding: 12px 0;
  color: #777777;
  font-size: 15px;
  line-height: 1.4;
}

.rp-cart-items {
  margin-top: 4px;
}

.rp-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
}

.rp-cart-row:last-child {
  border-bottom: none;
}

.rp-cart-info {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #333333;
}

.rp-cart-info strong {
  display: block;
  margin-top: 4px;
  color: #393185;
  font-size: 16px;
  font-weight: 700;
}

.rp-cart-remove {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #f2f2f2;
  color: #555555;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rp-cart-remove:hover {
  background: #dc353f;
  color: #ffffff;
}

.rp-cart-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid #eeeeee;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  color: #333333;
}

.rp-cart-total strong {
  color: #393185;
  font-size: 20px;
}

.rp-cart-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.rp-cart-actions button {
  flex: 1;
}

/* ==============================
   Notes / Messages
   ============================== */

.rp-note {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  background: #f7f7f7;
  border-left: 4px solid #f3b72e;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: #555555;
}

.rp-cart-flash {
  animation: rpCartFlash 0.45s ease;
}

@keyframes rpCartFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 49, 133, 0);
  }
  35% {
    box-shadow: 0 0 0 5px rgba(57, 49, 133, 0.18);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 49, 133, 0);
  }
}

/* ==============================
   Service-specific hints / Future blocks
   ============================== */

.rp-order-step,
.rp-upload-hint,
.rp-operator-hint {
  display: none;
}

/* ==============================
   Responsive
   ============================== */

@media (max-width: 1100px) {

    .rp-cart-actions {
        flex-direction: column;
    }

    .rp-cart-actions button {
        width: 100%;
    }

}
@media (max-width: 991px) {
  .rp-calc {
    margin: 30px 20px;
  }
}

@media (max-width: 600px) {
  .rp-calc {
    margin: 20px 14px;
    padding: 16px;
    border-radius: 14px;
  }

  .rp-calc h2 {
    font-size: 23px;
    margin-bottom: 16px;
  }

  .rp-calc h3 {
    font-size: 19px;
  }

  .rp-calc label {
    font-size: 14px;
  }

  .rp-calc select,
  .rp-calc input[type="number"],
  .rp-calc input[type="text"],
  .rp-calc input[type="tel"],
  .rp-calc input[type="email"],
  .rp-calc textarea {
    font-size: 15px;
    min-height: 40px;
  }

  .rp-result {
    font-size: 15px;
    padding: 12px;
  }

  #rpAddBtn {
    font-size: 16px;
  }

  .rp-cart {
    padding: 14px;
  }

}
