.pop-modal * {
  font-family: "Quicksand-Local", Sans-serif;
}

.pop-modal-open {
  overflow: hidden;
}

.pop-order .pop-open-button {
  cursor: pointer;
  width: 100%;
  height: 48px;
  padding-top: 12px;
  padding-right: 12px;
  padding-bottom: 12px;
  padding-left: 12px;
  gap: 12px;
  opacity: 1;
  border-color: #00b4ff;
  border-radius: 62px;
  background: #00b4ff;
  box-shadow: 0px 2px 3px 0px #0d61f80f;
  font-family: "Quicksand-Local", Sans-serif;
  font-weight: 700;
  font-style: Bold;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -1.5%;
  text-align: center;
  color: white;
  margin: 0px auto;
  display: block;
}
.pop-order .pop-open-button[type="button"]:focus,
.pop-order .pop-open-button[type="button"]:hover,
.pop-order .pop-open-button[type="submit"]:focus,
.pop-order .pop-open-button[type="submit"]:hover,
.pop-order button:focus,
.pop-order button:hover {
  background: #ffffff;
  border: 1px solid #00b4ff;
  color: #00b4ff;
}

.package_order_instrument .pop-order .pop-open-button {
  background-color: #00cb73;
  border-color: #00cb73;
}

.package_order_instrument .pop-order .pop-open-button[type="button"]:focus,
.package_order_instrument .pop-order .pop-open-button[type="button"]:hover,
.package_order_instrument .pop-order .pop-open-button[type="submit"]:focus,
.package_order_instrument .pop-order .pop-open-button[type="submit"]:hover,
.package_order_instrument .pop-order button:focus,
.package_order_instrument .pop-order button:hover {
  background: #ffffff;
  border: 1px solid #00cb73;
  color: #00cb73;
}

.pop-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
}

.pop-overlay.is-open {
  display: flex;
}

.pop-modal {
  position: relative;
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-sizing: border-box;
}

.pop-header {
  margin-bottom: 28px;
}

.pop-header h2 {
  font-family: Quicksand-Local;
  font-weight: 700;
  font-style: Bold;
  font-size: 32px;
  leading-trim: NONE;
  line-height: 120%;
  letter-spacing: -2.5%;
}

.pop-accent {
  color: #00b4ff;
}

.pop-header p {
  margin: 0;
  font-family: Quicksand-Local;
  font-weight: 500;
  font-style: Medium;
  font-size: 18px;
  leading-trim: NONE;
  line-height: 160%;
  letter-spacing: -1.5%;
  color: #000000;
}

.pop-section {
  margin-bottom: 25px;
}

.pop-section-heading {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 16px;
}

.pop-required {
  color: #ef4444;
}

.pop-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pop-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pop-order .pop-field label {
  font-family: "Quicksand-Local", Sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -2%;
}

.pop-order .pop-field input,
.pop-order .pop-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1.5px solid #f5f5f7;
  font-family: "Quicksand-Local", Sans-serif;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: -2%;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.pop-order .pop-field input:focus,
.pop-order .pop-field select:focus {
  border-color: #0ea5e9;
}

.pop-order .pop-section-heading {
  font-size: 14px;
}

.pop-order .pop-field select {
  appearance: auto;
}

.pop-full {
  grid-column: 1 / -1;
}

.pop-package-options {
  display: flex;
  gap: 12px;
}

.pop-package-option {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.pop-package-option:hover {
  border-color: #999;
}

.pop-package-option.is-selected {
  border-color: #0ea5e9;
}

.pop-package-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pop-package-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
}

.pop-package-option.is-selected .pop-package-radio {
  border-color: #0ea5e9;
  border-width: 6px;
}

.pop-package-option.is-selected .pop-package-radio::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.pop-package-label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.pop-props {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pop-prop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.pop-prop.is-checked {
  border-color: #10b981;
  background: #f0fdf4;
}

.pop-prop-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  font-style: Bold;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -2%;
}

.pop-prop-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pop-prop-total {
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -2%;
  min-width: 80px;
  text-align: right;
  white-space: nowrap;
}

.pop-prop-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pop-prop-check {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}

.pop-prop.is-checked .pop-prop-check {
  border-color: #10b981;
  background: #10b981;
}

.pop-prop.is-checked .pop-prop-check::after {
  content: "\2713";
  position: absolute;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pop-quantity {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pop-quantity button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.pop-quantity button svg {
  display: block;
  pointer-events: none;
}

.pop-quantity button:hover:not(:disabled) {
  background: #f3f4f6;
}

.pop-quantity button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pop-quantity-value {
  min-width: 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.pop-summary {
  margin: 25px 0;
  padding: 18px;
  background: #f7f7f7;
  border-radius: 8px;
}

.pop-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
}

.pop-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  font-size: 16px;
  font-weight: 700;
}

.pop-summary-note {
  margin-top: 8px;
  font-size: 13px;
  color: #777;
}

.pop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pop-footer-note {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  font-style: Medium;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: -2%;
}

.pop-footer-actions {
  display: flex;
  gap: 12px;
}

.pop-order .pop-cancel {
  padding: 12px 24px;
  border: 1px solid #d1d5db;
  border-radius: 62px;
  background: #eaeaea;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  color: #000;
}

.pop-order .pop-cancel:hover {
  background: #f9fafb;
}

.pop-order .pop-submit {
  padding: 12px 24px;
  border: 0;
  border-radius: 62px;
  background: #00b4ff;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.pop-order .pop-submit:hover {
  background: #ffffff;
  color: #000;
  border: 1px solid #00b4ff;
}

.pop-order .pop-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pop-message {
  margin-top: 15px;
  text-align: center;
}

.pop-success {
  color: #16833b;
}

.pop-error {
  color: #c62828;
}

@media (max-width: 767px) {
  .pop-overlay {
    padding: 10px;
  }

  .pop-modal {
    max-height: 95vh;
    padding: 25px 18px;
  }

  .pop-form-grid {
    grid-template-columns: 1fr;
  }

  .pop-full {
    grid-column: auto;
  }

  .pop-package-options {
    flex-direction: column;
  }

  .pop-prop {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .pop-prop-right {
    width: 100%;
    justify-content: space-between;
  }

  .pop-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .pop-footer-actions {
    justify-content: center;
  }
}
