html,
body.rugcleanpro-short-approval-page {
  min-height: 100%;
  margin: 0;
}

body.rugcleanpro-short-approval-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#rcp-approval-app {
  --rcr-brand: #2563eb;
  min-height: 100vh;
  padding: 28px 14px;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.24), transparent 34%),
    linear-gradient(180deg, #eef6ff 0%, #f7fbff 40%, #edf4fb 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  color: #18324d;
}

.rcp-card {
  width: 100%;
  max-width: 920px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 22px 56px rgba(38, 85, 138, 0.14);
  overflow: hidden;
  border: 1px solid rgba(104, 146, 187, 0.22);
}

.rcp-header {
  padding: 20px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 48%, #7dd3fc 100%);
  color: #ffffff;
  text-align: center;
}

.rcp-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.16);
  padding: 7px;
}

.rcp-header-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#rcp-approval-app .rcp-header h1,
#rcp-approval-app .rcr-approval-header h1 {
  margin: 0;
  font-size: 1.72rem;
  line-height: 1.12;
  font-weight: 800;
  color: #ffffff !important;
  text-align: center;
}

#rcp-approval-app .rcp-header p,
#rcp-approval-app .rcr-approval-header p {
  margin: 4px 0 0;
  font-size: 0.94rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92) !important;
  text-align: center;
}

.rcp-body {
  padding: 20px 24px 22px;
}

.rcp-status {
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid transparent;
}

.rcr-status-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.rcr-status-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.rcr-status-warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
}

.rcr-status-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.rcp-panel,
.rcp-rug,
.rcp-authorization,
.rcp-actions {
  border: 1px solid #d8e5f3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(27, 64, 109, 0.045);
}

.rcp-panel {
  padding: 14px 16px;
  margin-bottom: 14px;
}

.rcp-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
}

.rcp-row + .rcp-row {
  border-top: 1px solid #e7eef7;
}

.rcp-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b7690;
  font-weight: 700;
}

.rcp-value {
  text-align: right;
  font-weight: 700;
  color: #19324d;
  font-size: 0.95rem;
}

.rcp-section {
  margin-bottom: 14px;
}

.rcp-section-title {
  display: block;
  margin: 0 0 10px;
  font-size: 1.04rem;
  font-weight: 800;
  color: #17324d;
}

.rcp-rug {
  padding: 14px 16px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.rcp-rug-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.rcp-rug-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #13314b;
}

.rcp-rug-meta {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: #54708a;
  font-size: 0.88rem;
}

.rcp-rug-total {
  font-size: 1rem;
  font-weight: 800;
  color: #0f5f2c;
  white-space: nowrap;
}

.rcp-rug-notes {
  margin: 8px 0 0;
  color: #35546f;
  line-height: 1.45;
  font-size: 0.91rem;
}

.rcp-rug-photos {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.rcp-rug-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #dce8f4;
  background: #f8fbff;
}

.rcp-rug-photo img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.rcp-rug-photo figcaption {
  padding: 8px 10px;
  color: #5a748d;
  font-size: 0.79rem;
}

.rcp-services {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.rcp-service {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f6faff;
  border: 1px solid #e4eef8;
}

.rcp-service-name {
  font-weight: 700;
  color: #1a3550;
  font-size: 0.92rem;
}

.rcp-service-detail {
  margin-top: 2px;
  color: #5a748d;
  font-size: 0.84rem;
}

.rcp-service-price {
  font-weight: 800;
  color: #1a3550;
  white-space: nowrap;
  font-size: 0.92rem;
}

.rcp-totals {
  margin-bottom: 14px;
}

.rcp-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #24435f;
  font-size: 0.92rem;
}

.rcp-total-row + .rcp-total-row {
  border-top: 1px solid #e7eef7;
}

.rcp-total-row.is-emphasis {
  font-size: 0.97rem;
  color: #102d47;
}

.rcp-authorization {
  margin-bottom: 14px;
  padding: 15px 16px;
  background: linear-gradient(180deg, #fffdf2 0%, #fff8dc 100%);
  border-color: #f3d993;
}

.rcp-authorization-title {
  margin: 0 0 7px;
  font-size: 1rem;
  font-weight: 800;
  color: #7a5a12;
}

.rcp-authorization-text {
  color: #664d17;
  line-height: 1.52;
  font-size: 0.9rem;
}

.rcp-approval-confirm {
  margin: 10px 0 0;
  font-weight: 700;
  color: #5d4718;
  font-size: 0.9rem;
  line-height: 1.45;
}

.rcp-actions {
  padding: 15px 16px;
  margin-bottom: 14px;
}

.rcp-actions-notice {
  padding: 14px 16px;
}

.rcp-button-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.rcp-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.rcp-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.rcp-approve {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.22);
}

.rcp-change,
.rcr-button-secondary {
  background: #e5ebf2;
  color: #1d344d;
}

.rcp-note-wrap {
  display: grid;
  gap: 9px;
}

.rcp-note {
  width: 100%;
  min-height: 112px;
  box-sizing: border-box;
  border: 1px solid #cbd9e6;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.92rem;
  color: #18324d;
  background: #fbfdff;
  resize: vertical;
}

.rcp-note:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.rcp-submit-change {
  justify-self: start;
}

.rcp-state-notice {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.91rem;
  line-height: 1.45;
}

.rcp-state-notice p {
  margin: 0;
}

.rcp-state-notice p + p {
  margin-top: 5px;
}

.rcp-state-title {
  font-weight: 800;
}

.rcp-state-approved {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.rcp-state-changes {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #b45309;
}

.rcp-footer {
  padding-top: 4px;
  color: #5c748c;
  font-size: 0.85rem;
  line-height: 1.45;
}

.rcp-footer p {
  margin: 5px 0 0;
}

.rcr-button:disabled,
.rcp-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.rcr-loading {
  color: #5d748c;
}

@media (max-width: 720px) {
  #rcp-approval-app {
    padding: 16px 10px;
  }

  .rcp-header,
  .rcp-body {
    padding: 18px 16px;
  }

  .rcp-header {
    align-items: center;
    gap: 10px;
  }

  .rcp-header h1 {
    font-size: 1.5rem;
  }

  .rcp-header p {
    font-size: 0.89rem;
  }

  .rcp-rug-head,
  .rcp-row,
  .rcp-service,
  .rcp-total-row {
    flex-direction: column;
  }

  .rcp-value,
  .rcp-service-price,
  .rcp-rug-total {
    text-align: left;
  }

  .rcp-button-row {
    flex-direction: column;
  }

  .rcp-button,
  .rcp-submit-change {
    width: 100%;
  }

  .rcp-panel,
  .rcp-rug,
  .rcp-authorization,
  .rcp-actions {
    border-radius: 16px;
  }
}
