.cc-widget {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cc-widget-header {
  padding: 16px;
  color: #000;
  background: #fff;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.cc-widget-header .cc-widget-dates{
  margin-top: 4px;
  color: #555;
  font-size: 0.9rem;
}

.cc-widget-loading,
.cc-widget-error {
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
}

.cc-widget-error {
  color: #dc3545;
}

.cc-widget-content {
  padding: 16px;
  background: white;
}

.cc-ticket-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cc-ticket-item {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cc-ticket-item:hover {
  background-color: #f8f9fa;
}

.cc-ticket-item.selected {
  background-color: #e9f5ff;
  border-left: 4px solid #007bff;
}

.cc-ticket-info {
  flex: 1;
}

.cc-ticket-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.cc-ticket-description {
  color: #6c757d;
  font-size: 0.875rem;
}

.cc-price-container {
  text-align: right;
}

.cc-main-price {
  font-weight: bold;
  font-size: 1.125rem;
}

.cc-tax-breakdown {
  color: #6c757d;
  margin-top: 2px;
  font-size: 0.75rem;
}

.cc-tax-breakdown app-currency {
  font-family: inherit;
}

.cc-tax-breakdown app-currency[data-currency="EUR"]:before { content: "€"; }
.cc-tax-breakdown app-currency[data-currency="USD"]:before { content: "$"; }
.cc-tax-breakdown app-currency[data-currency="GBP"]:before { content: "£"; }

.cc-widget-footer {
  padding: 16px;
  background: #f8f9fa;
  text-align: center;
}

.cc-purchase-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 1rem;
}

.cc-purchase-btn:hover {
  background-color: #0069d9;
}

.cc-purchase-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.cc-powered-by img {
  max-height: 32px;
  width: auto;
  margin: 0 auto;
}

/* Checkout form styles */
.cc-checkout-form {
  margin-top: 16px;
}

.cc-form-group {
  margin-bottom: 16px;
}

.cc-form-label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.cc-form-input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

#cc-payment-element {
  margin-top: 16px;
  margin-bottom: 16px;
}

.cc-payment-message {
  color: #dc3545;
  margin-top: 8px;
  display: none;
}

.cc-payment-message.visible {
  display: block;
}

.cc-back-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
  font-size: 1rem;
}

.cc-back-btn:hover {
  background-color: #5a6268;
}

.cc-success-message {
  text-align: center;
  padding: 20px;
}

.cc-success-message h3 {
  color: #28a745;
  margin-bottom: 1rem;
}

.cc-form-error {
  color: #dc3545;
  margin-top: 5px;
  display: none;
  font-size: 0.75rem;
}

/* Cart specific styles */
.cc-quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-qty-btn {
  background-color: #007bff;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-qty-btn:hover {
  background-color: #0056b3;
}

.cc-quantity {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

.cc-cart-summary {
  margin-top: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 4px;
  line-height: 1.6;
}

.cc-summary-line {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.cc-affiliate-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #f8f9fa;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
}

.cc-affiliate-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #cfd6de;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cc-affiliate-row input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.cc-affiliate-row button {
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background: #1f2937;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.cc-affiliate-row button:hover {
  background: #111827;
}

.cc-affiliate-row button:disabled {
  background: #9aa3ae;
  cursor: not-allowed;
  transform: none;
}

.cc-affiliate-message {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #0f766e;
}

.cc-affiliate-message.error {
  color: #dc3545;
}

/* Attendee form styles */
.cc-instructions {
  margin-bottom: 16px;
  color: #6c757d;
  font-size: 0.875rem;
}

.cc-attendee-form {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #f8f9fa;
}

.cc-attendee-form h4 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 1rem;
}

.cc-attendee-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cc-attendee-phone::placeholder {
  color: #9aa3ae;
}

@media (max-width: 600px) {
  .cc-attendee-fields {
    grid-template-columns: 1fr;
  }
  
  .cc-attendee-fields .cc-form-group:last-child {
    grid-column: 1;
  }
}

/* Payment form attendee summary */
.cc-attendee-summary {
  margin: 16px 0;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 4px;
}

.cc-attendee-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.cc-attendee-list li {
  padding: 4px 0;
  font-size: 0.875rem;
}

.cc-static-footer {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
  border: 1px solid #eee;
  border-top: none;
  padding-top: 2em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
