body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f5f5;
}

.container {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

h1 {
  color: #333;
  margin-bottom: 10px;
}

.info {
  background: #e8f4f8;
  border-left: 4px solid #0074d9;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.code-block {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  margin: 15px 0;
  overflow-x: auto;
}

code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.payment-section {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  background: #fafafa;
}

.payment-section h3 {
  margin-top: 0;
  color: #666;
}

cloudbeds-payment-element {
  display: block;
  margin: 20px 0;
}

.payment-control-bar {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.validate-btn,
.submit-btn {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.validate-btn:disabled,
.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.validate-btn {
  background: #4caf50;
  color: white;
}

.validate-btn:hover:not(:disabled) {
  background: #45a049;
}

.submit-btn {
  background: #0074d9;
  color: white;
}

.submit-btn:hover:not(:disabled) {
  background: #0063c7;
}

.result-display {
  margin-top: 20px;
  padding: 20px;
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: 8px;
  display: none;
}

.result-display h4 {
  margin-top: 0;
  color: #2e7d32;
}

.result-display code {
  font-size: 14px;
  color: #1b5e20;
  word-break: break-all;
  display: block;
  padding: 10px;
  background: white;
  border-radius: 4px;
  margin-top: 10px;
}

.error-display {
  margin-top: 20px;
  padding: 15px;
  background: #ffebee;
  border: 2px solid #f44336;
  border-radius: 8px;
  display: none;
  color: #c62828;
}

.validation-success {
  margin-top: 20px;
  padding: 15px;
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: 8px;
  display: none;
  color: #2e7d32;
  font-weight: 500;
}

.loading-indicator {
  display: none;
  color: #0074d9;
  margin: 10px 0;
}

.props-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.props-table th {
  background: #0074d9;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.props-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.93em;
}

.props-table tr:hover {
  background: #f9f9f9;
}

.props-table .prop-name {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #0074d9;
}

.props-table .prop-type {
  font-family: 'Courier New', monospace;
  color: #666;
  font-size: 13px;
}

.props-table .prop-required {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.props-table .required-yes {
  background: #ffebee;
  color: #c62828;
}

.props-table .required-no {
  background: #e8f5e9;
  color: #2e7d32;
}

.props-table .prop-default {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #333;
}

.props-section {
  margin: 30px 0;
}

.props-section h2 {
  color: #333;
  border-bottom: 2px solid #0074d9;
  padding-bottom: 10px;
}

.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.accordion-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accordion-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 0.5fr;
  gap: 12px;
  padding: 14px 16px;
  background: #fafafa;
  cursor: pointer;
  align-items: center;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: #f0f0f0;
}

.accordion-header.active {
  background: #e8f4f8;
  border-bottom: 1px solid #d0d0d0;
}

.accordion-toggle {
  font-size: 18px;
  color: #0074d9;
  transition: transform 0.2s;
  justify-self: end;
}

.accordion-toggle.expanded {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: white;
}

.accordion-content.expanded {
  max-height: 1000px;
  transition: max-height 0.4s ease-in;
}

.accordion-body {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
}

.prop-detail-section {
  margin-bottom: 20px;
}

.prop-detail-section:last-child {
  margin-bottom: 0;
}

.prop-detail-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prop-current-value {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 4px;
  padding: 10px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #2e7d32;
  word-break: break-all;
}

.prop-examples {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.prop-example {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
}

.prop-example-title {
  font-weight: 600;
  color: #0074d9;
  margin-bottom: 8px;
  font-size: 13px;
}

.prop-example-code {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 10px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #333;
  overflow-x: auto;
  white-space: pre;
}

.prop-description-expanded {
  color: #555;
  line-height: 1.6;
  font-size: 14px;
}

.prop-allowed-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prop-allowed-values code {
  background: #f0f0f0;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  padding: 4px 8px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #333;
}

.accordion-headers-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 0.5fr;
  gap: 12px;
  padding: 12px 16px;
  background: #0074d9;
  color: white;
  font-weight: 600;
  font-size: 14px;
}