.receipt-form-scope {
  padding: 2.5rem;
  background: #f3f4f6;
  color: #111827;
  font-family: inherit;
  line-height: 1.6;
}
.receipt-form-scope,
.receipt-form-scope * {
  box-sizing: border-box;
}
.receipt-form-scope img {
  display: block;
}
.receipt-form-scope .hidden {
  display: none !important;
}
.receipt-form-scope .rf-container {
  width: 70%;
  max-width: none;
  margin: 0 auto;
}
.receipt-form-scope .rf-view {
  font-size: 1.6rem;
}
.receipt-form-scope .rf-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.receipt-form-scope .rf-logo {
  justify-self: start;
}
.receipt-form-scope .rf-logo-img {
  max-width: 16rem;
  height: auto;
}
.receipt-form-scope .rf-title {
  justify-self: center;
  text-align: center;
  font-weight: 600;
  font-size: 2rem;
}
.receipt-form-scope .rf-header-spacer {
  justify-self: end;
}
.receipt-form-scope .rf-message {
  margin-bottom: 1rem;
  color: #374151;
}
.receipt-form-scope {
  font-size: 1.6rem;
}
.receipt-form-scope .rf-message {
  font-size: 1.6rem;
}
.receipt-form-scope .rf-message .rf-note-indent {
  margin: 0;
  padding-left: 1em;
  text-indent: -1em;
}
.receipt-form-scope .rf-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(17, 24, 39, 0.1), 0 4px 6px -4px rgba(17, 24, 39, 0.1);
}
.receipt-form-scope .rf-card--form,
.receipt-form-scope .rf-card--details {
  margin-bottom: 1rem;
}
.receipt-form-scope .rf-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}
.receipt-form-scope .rf-helper-text {
  font-weight: 400;
  color: #6b7280;
}
.receipt-form-scope .rf-input {
  width: 100%;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 1.6rem;
  color: #111827;
  background: #ffffff;
}
.receipt-form-scope .rf-name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.receipt-form-scope .rf-name-field {
  min-width: 0;
}
.receipt-form-scope #last-name::placeholder,
.receipt-form-scope #first-name::placeholder,
.receipt-form-scope #pnr::placeholder,
.receipt-form-scope #receipt-name::placeholder,
.receipt-form-scope #birth::placeholder,
.receipt-form-scope #tel::placeholder,
.receipt-form-scope #receipt-note::placeholder,
.receipt-form-scope #remarks::placeholder,
.receipt-form-scope #email::placeholder,
.receipt-form-scope #individual-receipt-name::placeholder {
  opacity: 0.5;
}
.receipt-form-scope .rf-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  outline: none;
}
.receipt-form-scope .rf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.receipt-form-scope .rf-button--primary {
  width: 100%;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
}
.receipt-form-scope .rf-button--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.receipt-form-scope .rf-button--primary:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}
.receipt-form-scope .rf-button--ghost {
  width: 100%;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
}
.receipt-form-scope .rf-button--ghost:hover {
  background: #f9fafb;
}
.receipt-form-scope .rf-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0;
}
.receipt-form-scope .rf-loading-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.receipt-form-scope .rf-spinner {
  width: 2rem;
  height: 2rem;
  color: #e5e7eb;
  fill: #2563eb;
  animation: rf-spin 1s linear infinite;
}
.receipt-form-scope .rf-loading-text {
  color: #2563eb;
  font-weight: 600;
}
.receipt-form-scope .rf-subtitle {
  font-weight: 600;
  margin-bottom: 1rem;
}
.receipt-form-scope .rf-detail-grid {
  display: grid;
  gap: 1rem;
}
.receipt-form-scope .rf-detail-item {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 1rem;
}
.receipt-form-scope .rf-detail-label {
  color: #6b7280;
  margin-bottom: 0.35rem;
}
.receipt-form-scope .rf-detail-value {
  color: #111827;
  font-weight: 600;
  margin-top: 1.35rem;
}
.receipt-form-scope .rf-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.receipt-form-scope .rf-privacy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.receipt-form-scope .rf-privacy .rf-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}
.receipt-form-scope .rf-privacy input[type="checkbox"] {
  appearance: auto;
  accent-color: #2563eb;
  width: 1.1rem;
  height: 1.1rem;
}
.receipt-form-scope .rf-privacy input[type="checkbox"]:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 50%;
}
.receipt-form-scope .rf-privacy a {
  color: #2563eb;
  text-decoration: underline;
}
.receipt-form-scope .rf-hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .receipt-form-scope .rf-name-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .receipt-form-scope {
    padding: 1.5rem;
  }
  .receipt-form-scope .rf-container {
    width: 100%;
  }
  .receipt-form-scope .rf-header {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .receipt-form-scope .rf-title {
    justify-self: start;
    text-align: left;
  }
}
@media (min-width: 640px) {
  .receipt-form-scope .rf-button--ghost {
    width: auto;
  }
}
@keyframes rf-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
