.hora-tickets-purchase-wrapper {
  padding: 40px 0;
  background: #f5f5f5;
  min-height: 100vh;
}

.hora-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  background: #333;
  color: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transform: translateX(400px);
  transition: transform 0.3s;
  z-index: 9999;
}

.hora-notification.show {
  transform: translateX(0);
}

.hora-notification.success {
  background: #4caf50;
}

.hora-notification.error {
  background: #f44336;
}

.form-error {
  display: block;
  color: #f44336;
  font-size: 14px;
  margin-top: 5px;
}

.hora-validation-error {
  display: block;
  color: #f44336;
  font-size: 14px;
  margin-top: 5px;
  font-weight: bold;
}

.hora-validation-error-group {
  border: 2px solid #f44336;
  border-radius: 4px;
  padding: 10px;
  background-color: rgba(244, 67, 54, 0.1);
}

input.error,
select.error,
textarea.error {
  border-color: #f44336;
}

.hora-tickets-purchase-wrapper .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.cart-empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cart-empty-message h4 {
  font-size: 22px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 140%;
}
.cart-empty-message p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.hora-tickets-main .hidden {
  display: none !important;
}

/* Progress Steps */
.hora-progress-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hora-progress-steps .step {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 30px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.hora-progress-steps .step.active {
  opacity: 1;
}

.hora-progress-steps .step.completed {
  opacity: 1;
}

.hora-progress-steps .step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 50%;
  right: -30px;
  width: 60px;
  height: 2px;
  background: #ddd;
  transform: translateY(-50%);
}

.hora-progress-steps .step.completed:after {
  background: #4caf50;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ddd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
}

.step.active .step-number {
  background: #2196f3;
}

.step.completed .step-number {
  background: #4caf50;
}

.step-label {
  font-weight: 500;
  color: #666;
}

.step.active .step-label {
  color: #333;
}

/* Main Layout */
.hora-tickets-row {
  display: flex;
  gap: 30px;
}

.hora-tickets-left {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hora-tickets-right {
  width: 350px;
}

/* Ticket Types */
.hora-ticket-types {
  display: grid;
  gap: 20px;
}

.hora-ticket-type-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.3s;
}

.hora-ticket-type-card.unavailable {
  order: 999;
}

.hora-ticket-type-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ticket-type-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 15px;
}

.ticket-type-header h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.ticket-type-price {
  font-size: 24px;
  font-weight: bold;
  color: #2196f3;
}

.price-free {
  color: #4caf50;
}

.ticket-type-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.ticket-type-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-availability {
  font-size: 14px;
}

.availability-warning {
  color: #ff9800;
  font-weight: 500;
}

.availability-sold-out {
  color: #f44336;
  font-weight: 500;
}

.ticket-type-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.quantity-selector button {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-selector button .hora-events-loader {
  margin-right: 0;
}

.quantity-selector button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.quantity-selector button:hover {
  background: #e0e0e0;
}

.quantity-input {
  width: 50px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 16px;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Buttons */
.btn-add-ticket,
.btn-proceed,
.btn-checkout-submit,
.btn-apply-coupon {
  padding: 10px 20px;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add-ticket:hover,
.btn-proceed:hover,
.btn-checkout-submit:hover,
.btn-apply-coupon:hover {
  background: #1976d2;
}

.btn-sold-out {
  padding: 10px 20px;
  background: #ccc;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: not-allowed;
}

.btn-back {
  padding: 10px 20px;
  background: #666;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-back:hover {
  background: #555;
}

/* Cart Summary */
.hora-cart-summary {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hora-cart-summary h3 {
  margin: 0 0 20px;
  font-size: 20px;
  color: #333;
  border-bottom: 2px solid #2196f3;
  padding-bottom: 10px;
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  flex: 1;
}

.item-name {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.item-quantity {
  color: #666;
  font-size: 14px;
}

.cart-item-price {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #333;
}

.btn-remove-item {
  width: 24px;
  height: 24px;
  border: none;
  background: #f44336;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.3s;
}

.btn-remove-item:hover {
  background: #d32f2f;
}

.cart-empty {
  text-align: center;
  color: #999;
  padding: 20px 0;
}

/* Cart Totals */
.cart-totals {
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}

.cart-total-row.discount {
  color: #4caf50;
}

.cart-total-row.total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* Coupon */
.cart-coupon {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.cart-coupon input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.btn-apply-coupon {
  padding: 8px 16px;
  font-size: 14px;
}

.cart-actions {
  margin-top: 20px;
}

.btn-proceed {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* Checkout Form */
.hora-checkout-form {
  max-width: 600px;
}

.form-section {
  margin-bottom: 30px;
}

.form-section h3 {
  margin: 0 0 20px;
  font-size: 18px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.form-col {
  flex: 1;
}

.form-col label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.required {
  color: #f44336;
}

.form-col input,
.form-col select,
.form-col textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-col input:focus,
.form-col select:focus,
.form-col textarea:focus {
  outline: none;
  border-color: #2196f3;
}

/* Payment Methods */
.payment-section {
  margin-bottom: 30px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.payment-section h3 {
  margin: 0 0 25px;
  font-size: 20px;
  color: #333;
  border-bottom: 2px solid #2196f3;
  padding-bottom: 10px;
}

.payment-options {
  background: white;
  border-radius: 6px;
  padding: 20px;
  border: 1px solid #dee2e6;
}

.woocommerce-payment-methods {
  display: grid;
  gap: 12px;
}

.payment-method {
  position: relative;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
}

.payment-method:hover {
  border-color: #2196f3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.payment-method input[type="radio"] {
  position: absolute;
  top: 15px;
  left: 15px;
  margin: 0;
  z-index: 2;
}

.payment-method input[type="radio"]:checked ~ .payment-method-label {
  background: #f0f8ff;
  border-left: 4px solid #2196f3;
}

.payment-method input[type="radio"]:checked ~ .payment-method-description {
  display: block;
}

.payment-method-label {
  display: flex;
  align-items: center;
  padding: 15px 15px 15px 45px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 60px;
  background: #fff;
}

.payment-method-label:hover {
  background: #f8f9fa;
}

.payment-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.payment-icon img {
  max-height: 30px;
  max-width: 50px;
  object-fit: contain;
}

.payment-title {
  font-weight: 500;
  color: #333;
  font-size: 15px;
}

.payment-method-description {
  display: none;
  padding: 15px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.payment-method-description p {
  margin: 0;
}

/* Payment method specific styles */
.payment-method[data-gateway="stripe"] .payment-icon {
  color: #635bff;
}

.payment-method[data-gateway="paypal"] .payment-icon {
  color: #0070ba;
}

.payment-method[data-gateway="cod"] .payment-icon {
  color: #28a745;
}

.payment-method[data-gateway="bacs"] .payment-icon {
  color: #6c757d;
}

/* Payment method error/info notices */
.woocommerce-notice {
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
  font-size: 14px;
}

.woocommerce-notice--info {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  color: #1565c0;
}

.notice-warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  color: #856404;
}

/* Payment methods loading state */
.payment-options.loading {
  position: relative;
  min-height: 100px;
}

.payment-options.loading:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.hora-newsletter-field .optional,
.hora-form-field .optional,
.hora-company-toggle .optional {
  display: none;
}

/* Success Page */
.hora-success-message {
  text-align: center;
  padding: 60px 20px;
}

.success-icon {
  color: #4caf50;
  margin-bottom: 30px;
}

.hora-success-message h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
}

.hora-success-message p {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.order-details {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-view-event,
.btn-view-tickets {
  display: inline-block;
  padding: 12px 30px;
  background: #2196f3;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-view-event:hover,
.btn-view-tickets:hover {
  background: #1976d2;
}

/* Custom Ticket Purchase Form - Ticket-specific styles only */
#hora-ticket-purchase-form {
  max-width: none;
}

/* Form Submit - Ticket purchase specific */
.btn-place-order {
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 200px;
  font-family: inherit;
}

.btn-place-order:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-place-order:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hora-tickets-row {
    flex-direction: column;
  }

  .hora-tickets-right {
    width: 100%;
    margin-top: 30px;
  }

  .hora-cart-summary {
    position: static;
  }

  .hora-progress-steps {
    flex-direction: column;
    align-items: center;
  }

  .hora-progress-steps .step {
    padding: 10px 0;
  }

  .hora-progress-steps .step:not(:last-child):after {
    display: none;
  }

  .form-row {
    flex-direction: column;
  }

  .form-field.half {
    flex: 1;
  }

  .success-actions {
    flex-direction: column;
  }

  .btn-view-event,
  .btn-view-tickets {
    width: 100%;
    text-align: center;
  }

  .btn-place-order {
    width: 100%;
    min-width: auto;
  }
  .order-details-item strong {
    text-align: right;
  }
}

/* Benefits Toggle Styles */
.benefits-hidden {
  display: none !important;
}

.benefits-toggle {
  background: transparent;
  border: none;
  color: #0073aa;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  padding: 5px 0;
  margin-top: 5px;
}

.benefits-toggle:hover {
  color: #005a87;
}

.benefits-toggle:focus {
  outline: 1px solid #0073aa;
  outline-offset: 2px;
}

/* Template Parts - Different Display Modes */

/* Ticket Types Component Modes */
.hora-ticket-types.mode-preview .ticket-type-header h3 {
  font-size: 18px;
}

.hora-ticket-types.mode-preview .ticket-type-description {
  display: none;
}

.hora-ticket-types.mode-preview .ticket-sale-interval {
  font-size: 12px;
}

.hora-ticket-types.mode-minimal .ticket-status,
.hora-ticket-types.mode-minimal .ticket-type-description,
.hora-ticket-types.mode-minimal .ticket-benefits,
.hora-ticket-types.mode-minimal .ticket-availability {
  display: none;
}

.hora-ticket-types.mode-minimal .ticket-type-header h3 {
  font-size: 16px;
}

.hora-ticket-types.mode-minimal .hora-ticket-type-card {
  padding: 15px;
}

/* Cart Summary Component Modes */
.hora-cart-summary.mode-compact h3 {
  font-size: 16px;
  margin-bottom: 15px;
}

.hora-cart-summary.mode-compact .cart-item {
  padding: 8px 0;
}

.hora-cart-summary.mode-minimal {
  padding: 15px;
}

.hora-cart-summary.mode-minimal .cart-item {
  padding: 5px 0;
  font-size: 14px;
}

.hora-cart-summary.mode-minimal .cart-total-row {
  padding: 5px 0;
  font-size: 14px;
}

/* Link Mode Styles */
.ticket-type-actions .btn-view-tickets {
  display: inline-block;
  padding: 10px 20px;
  background: #2196f3;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.ticket-type-actions .btn-view-tickets:hover {
  background: #1976d2;
  color: white;
}

/* Responsive adjustments for template parts */
@media (max-width: 768px) {
  .hora-ticket-types.mode-preview .hora-ticket-type-card,
  .hora-ticket-types.mode-minimal .hora-ticket-type-card {
    margin-bottom: 15px;
  }

  .hora-cart-summary.mode-compact,
  .hora-cart-summary.mode-minimal {
    margin-top: 20px;
  }
}
