.dorr-panel {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-sizing: border-box;
  max-width: 100%;
}

.woocommerce-order-details .dorr-panel,
.ds-view-order .dorr-panel,
.woocommerce-order .dorr-panel {
  margin: 1.25rem 0 1.5rem;
}

.dorr-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.dorr-panel__meta {
  color: #64748b;
  margin: 0 0 1rem;
}

.dorr-panel__alert {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
  line-height: 1.45;
}

.dorr-panel__alert a {
  color: #991b1b;
  text-decoration: underline;
  font-weight: 700;
}

.dorr-panel__alert a:hover {
  color: #7f1d1d;
}

.dorr-form__tip {
  display: block;
  margin: 0 0 0.55rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.dorr-panel__actions {
  margin: 0;
}

.dorr-panel__actions .dorr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.5rem !important;
  margin: 0 !important;
  border-radius: 9999px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.2;
  text-decoration: none !important;
  background: #0b121c !important;
  color: #fff !important;
  border: none !important;
}

.dorr-panel__actions .dorr-btn:hover {
  background: #151c28 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(11, 18, 28, 0.28);
}

.dorr-form .form-row {
  margin: 0 0 1rem;
}

.dorr-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.dorr-form select,
.dorr-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.dorr-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem !important;
}

.dorr-form .dorr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.5rem !important;
  margin: 0 !important;
  border-radius: 9999px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dorr-form .dorr-btn--primary {
  background: #0b121c !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none;
}

.dorr-form .dorr-btn--primary:hover {
  background: #151c28 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(11, 18, 28, 0.28);
}

.dorr-form .dorr-btn--ghost {
  background: transparent !important;
  color: #0b121c !important;
  border: 1.5px solid #0b121c !important;
  box-shadow: none !important;
}

.dorr-form .dorr-btn--ghost:hover {
  background: #0b121c !important;
  color: #fff !important;
  border-color: #0b121c !important;
}

.dorr-result {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.dorr-result--pending {
  border-color: #f59e0b;
  background: #fffbeb;
}

.dorr-result--rejected {
  border-color: #ef4444;
  background: #fef2f2;
}

.dorr-result--approved {
  border-color: #22c55e;
  background: #f0fdf4;
}

.dorr-result p {
  margin: 0 0 0.4rem;
}

.dorr-result p:last-child {
  margin-bottom: 0;
}

.dorr-form__hint {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.875rem;
}

.dorr-upload__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.dorr-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dorr-upload__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dorr-upload__slot {
  position: relative;
  box-sizing: border-box;
  width: 104px;
  height: 104px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
}

.dorr-form .dorr-upload__slot--add,
.dorr-upload__slot--add {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1.5px dashed #c5ced9 !important;
  background: #f8fafc !important;
  color: #0b121c !important;
  cursor: pointer;
  text-align: center !important;
  float: none !important;
  width: 104px !important;
  height: 104px !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dorr-upload__slot--add .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dorr-form .dorr-upload__slot--add:hover,
.dorr-upload__slot--add:hover {
  border-color: #0b121c !important;
  background: #fff !important;
}

.dorr-form .dorr-upload__plus,
.dorr-upload__plus {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0b121c !important;
  line-height: 0 !important;
  position: static !important;
}

.dorr-upload__plus svg {
  display: block;
  width: 32px;
  height: 32px;
}

.dorr-upload__slot--filled {
  border: 1px solid #e2e8f0;
  background: #eef2f7;
}

.dorr-upload__preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dorr-upload__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(11, 18, 28, 0.78);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.dorr-upload__remove:hover {
  background: #0b121c;
}

.dorr-images {
  margin-top: 0.65rem;
}

.dorr-images__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.dorr-images__list li {
  margin: 0;
}

.dorr-images__list img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.woocommerce-orders-table .button.refund_request,
.woocommerce-orders-table .button.refund_result {
  white-space: nowrap;
}
