.rbc-shortcode-wrap {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.rbc-lookup {
  --rbc-text: #111;
  --rbc-text-muted: #4b5563;
  --rbc-border: #e5e7eb;
  --rbc-theme: #ffd700;
  color: var(--rbc-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbc-lookup * {
  box-sizing: border-box;
}

.rbc-lookup-intro {
  margin: 0 0 1rem;
  text-align: center;
  color: var(--rbc-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

body.rbc-has-lookup-shortcode .entry-header,
body.rbc-has-lookup-shortcode .page-header,
body.rbc-has-lookup-shortcode .elementor-page-title,
body.rbc-has-lookup-shortcode h1.entry-title,
body.rbc-has-lookup-shortcode h1.page-title,
body.rbc-has-lookup-shortcode .shoptimizer-page-header,
body.rbc-has-lookup-shortcode .page-title,
body.rbc-has-lookup-shortcode .woocommerce-products-header__title {
  display: none !important;
}

.rbc-lookup-submit {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.rbc-lookup-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--rbc-border);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.rbc-lookup-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (min-width: 640px) {
  .rbc-lookup-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem 1.25rem;
  }
}

@media (max-width: 639px) {
  .rbc-lookup-form {
    grid-template-columns: 1fr;
  }
}

.rbc-lookup-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.rbc-lookup-field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rbc-border);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
}

.rbc-lookup-phone-wrap {
  display: flex;
  align-items: stretch;
  min-height: 2.75rem;
  border: 1px solid var(--rbc-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.rbc-lookup-phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: #f9fafb;
  border-right: 1px solid var(--rbc-border);
  font-size: 0.875rem;
  color: var(--rbc-text-muted);
  white-space: nowrap;
}

.rbc-lookup-phone-wrap input {
  border: none;
  border-radius: 0;
  min-height: 2.75rem;
}

.rbc-lookup-btn {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  background: #111;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 640px) {
  .rbc-lookup-btn {
    width: auto;
    white-space: nowrap;
    align-self: end;
  }
}

.rbc-lookup-btn:hover {
  background: #333;
}

.rbc-lookup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rbc-lookup-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
}

.rbc-lookup-result {
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--rbc-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.rbc-lookup-hero {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #111 0%, #1f2937 100%);
  color: #fff;
}

.rbc-lookup-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.rbc-lookup-hero-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.rbc-lookup-hero-id {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.rbc-lookup-status {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rbc-lookup-status-confirmed {
  background: #dcfce7;
  color: #166534;
}

.rbc-lookup-status-abandoned,
.rbc-lookup-status-failed,
.rbc-lookup-status-pending {
  background: #f3f4f6;
  color: #4b5563;
}

.rbc-lookup-highlight {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
}

.rbc-lookup-highlight-item {
  display: grid;
  gap: 0.15rem;
}

.rbc-lookup-highlight-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
}

.rbc-lookup-highlight-value {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
}

.rbc-lookup-body {
  padding: 1rem 1.5rem 1.25rem;
}

.rbc-lookup-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rbc-text-muted);
}

.rbc-lookup-rows {
  display: grid;
  gap: 0.55rem;
}

.rbc-lookup-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.rbc-lookup-row:last-child {
  border-bottom: none;
}

.rbc-lookup-row span:first-child {
  color: var(--rbc-text-muted);
}

.rbc-lookup-row strong {
  text-align: right;
  font-weight: 600;
}

.rbc-lookup-row.rbc-lookup-row-emphasis strong {
  font-weight: 800;
  color: #111;
}

.rbc-lookup-addons {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.rbc-lookup-addon-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}

.rbc-lookup-total {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.0625rem;
  font-weight: 800;
}

.rbc-lookup-total span:last-child {
  font-size: 1.25rem;
}

.rbc-lookup-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: #f9fafb;
}

.rbc-lookup-payment-item {
  display: grid;
  gap: 0.15rem;
  font-size: 0.8125rem;
}

.rbc-lookup-payment-item span {
  color: var(--rbc-text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rbc-lookup-payment-paid strong {
  color: #166534;
}

.rbc-lookup-payment-pending strong {
  color: #b45309;
}

.rbc-lookup-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .rbc-lookup-actions {
    justify-content: flex-end;
  }
}

.rbc-lookup-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: #111;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

@media (min-width: 640px) {
  .rbc-lookup-view-btn {
    width: auto;
    min-width: 12rem;
  }
}

.rbc-lookup-view-btn:hover {
  background: #333;
  color: #fff;
}

.rbc-lookup-payment-paid {
  color: #166534;
  font-weight: 700;
}

.rbc-lookup-payment-pending {
  color: #b45309;
  font-weight: 700;
}
