.git-tour-options {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

/* Hide add to cart when there are restrictions */
.git-login-required ~ .cart,
.git-purchase-denied ~ .cart,
.git-deadline-passed ~ .cart,
.git-login-required .single_add_to_cart_button,
.git-purchase-denied .single_add_to_cart_button,
.git-deadline-passed .single_add_to_cart_button,
.git-login-required .woocommerce-variation-add-to-cart,
.git-purchase-denied .woocommerce-variation-add-to-cart,
.git-deadline-passed .woocommerce-variation-add-to-cart,
.git-login-required .quantity,
.git-purchase-denied .quantity,
.git-deadline-passed .quantity,
.git-login-required .variations_form,
.git-purchase-denied .variations_form,
.git-deadline-passed .variations_form {
  display: none !important;
}

/* Error message styles */
.git-login-required,
.git-purchase-denied,
.git-deadline-passed {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  color: #721c24;
}

.git-login-required a.button {
  background: #007cba;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  margin-top: 10px;
}

.git-login-required a.button:hover {
  background: #005a87;
  color: white;
}

.git-tour-options h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
}

.git-login-required,
.git-purchase-denied,
.git-deadline-passed {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

.git-login-required .button {
  background: #007cba;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 10px;
}

.git-login-required .button:hover {
  background: #005a87;
}

.git-purchase-restriction {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  color: #856404;
}

.git-purchase-restriction-notice {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.git-purchase-restriction-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.git-purchase-restriction p {
  margin: 0 0 15px 0;
  font-size: 16px;
  line-height: 1.5;
}

.git-restriction-button {
  display: inline-block;
  padding: 12px 24px;
  background: #007cba;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.git-restriction-button:hover {
  background: #005a87;
  color: white;
  text-decoration: none;
}

.git-purchase-restriction-notice .git-restriction-button {
  background: #007cba;
}

.git-purchase-restriction-notice .git-restriction-button:hover {
  background: #005a87;
}

.git-purchase-restriction-error .git-restriction-button {
  background: #6c757d;
}

.git-purchase-restriction-error .git-restriction-button:hover {
  background: #545b62;
}

.git-tour-catalog {
  margin: 20px 0;
}

.git-tour-catalog-header,
.git-tour-catalog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.git-tour-catalog-footer {
  margin-top: 30px;
}

.git-tour-category-selector {
  flex: 0 0 auto;
}

.git-category-dropdown {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px 40px 10px 16px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  min-width: 200px;
  transition: border-color 0.3s ease;
}

.git-tour-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.git-tour-price-spec {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.git-category-dropdown:hover {
  border-color: #d4af37;
}

.git-category-dropdown:focus {
  outline: none;
  border-color: #d4af37;
}

.git-tour-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.git-pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 16px;
  color: #3a3a3a;
  text-decoration: none;
  transition: all 0.3s ease;
}

.git-pagination-page:hover {
  color: #d4af37;
}

.git-pagination-page.active {
  background-color: #d4af37;
  color: #000;
}

body .git-tour-catalog .git-pagination-next {
  color: #d4af37;
  text-decoration: underline;
  font-size: 16px;
  padding: 0 8px;
  transition: color 0.3s ease;
  font-weight: bold;
}

body .git-tour-catalog .git-pagination-next:hover {
  color: #b8941f;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .git-tour-catalog-header,
  .git-tour-catalog-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .git-tour-category-selector {
    width: 100%;
  }

  .git-category-dropdown {
    width: 100%;
  }

  .git-tour-pagination {
    justify-content: center;
  }
}

.git-tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.git-tours-columns-1 { grid-template-columns: 1fr; }
.git-tours-columns-2 { grid-template-columns: repeat(2, 1fr); }
.git-tours-columns-3 { grid-template-columns: repeat(3, 1fr); }
.git-tours-columns-4 { grid-template-columns: repeat(4, 1fr); }
.git-tours-columns-5 { grid-template-columns: repeat(5, 1fr); }
.git-tours-columns-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 768px) {
    .git-tours-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .git-tours-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

.git-tour-item {
  background: white;
  border: 1px solid #dee2e6;
  overflow: hidden;
  border-radius: 4px;
}

.git-tour-item:not(:last-child) {
  margin-bottom: 5px;
}

.git-tour-row,
.git-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.git-tour-thumbnail {
  overflow: hidden;
}

.git-tour-thumbnail img {
  width: 100%;
  height: 286px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.git-tour-item:hover .git-tour-thumbnail img {
  transform: scale(1.05);
}

.git-tour-content {
  padding: 20px;
}

.git-tour-content h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.git-tour-content h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.git-tour-content h3 a:hover {
  color: #007cba;
}

.git-tour-price {
  font-size: 20px;
  font-weight: bold;
  color: #28a745;
  margin-bottom: 10px;
}

.git-tour-excerpt {
  color: #6c757d;
  line-height: 1.5;
}

.git-user-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.git-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.git-stat-box {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.git-stat-box h3 {
  margin: 0 0 10px 0;
  color: #495057;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.git-stat-box p {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

.git-recent-orders {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}

.git-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.git-orders-table th,
.git-orders-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.git-orders-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.git-unavailable-products {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}

.git-unavailable-products ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.git-unavailable-products li {
  padding: 10px 0;
  border-bottom: 1px solid #f8f9fa;
}

.git-unavailable-products li:last-child {
  border-bottom: none;
}

.git-unavailable-products a {
  color: #007cba;
  text-decoration: none;
}

.git-unavailable-products a:hover {
  text-decoration: underline;
}

.git-form-group {
  margin-bottom: 15px;
}

.git-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #495057;
}

.git-form-group input {
  width: 100%;
  max-width: 300px;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

#git-discount-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

#git-discount-message.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

#git-discount-message.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

#git-policy-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.git-policy-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.git-policy-content {
  background: white;
  padding: 30px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.git-policy-checkbox {
  padding: 15px;
  background: #f8f9fa;
}

.git-commission-summary {
  padding: 15px 0;
}

.git-policy-close {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  font-size: 25px;
  font-weight: bold;
  color: #0a0a0a99;
  z-index: 1000;
}

.git-policy-content h3 {
  margin-top: 0;
  color: #2c3e50;
}

.git-policy-summary {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.git-policy-summary h4 {
  margin-top: 0;
  color: #495057;
}

.git-policy-terms {
  margin-bottom: 20px;
}

.git-policy-terms ul {
  margin: 10px 0;
  padding-left: 20px;
}

.git-policy-actions {
  text-align: right;
  margin-top: 15px;
}

.git-policy-actions .button {
  margin-left: 10px;
}

@media (max-width: 768px) {
  body .git-tours-grid {
    grid-template-columns: 1fr !important;
  }

  .git-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .git-orders-table {
    font-size: 14px;
  }

  .git-orders-table th,
  .git-orders-table td {
    padding: 8px;
  }

  .git-policy-content {
    padding: 20px;
    margin: 20px;
  }
}
