/* TMWC Booking Buttons Container */
.tmwc-booking-buttons,
.tmwc-buttons-wrapper .tmwc-booking-buttons {
  margin: 30px 0;
  padding: 30px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: flex !important;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

/* Add subtle pattern overlay */
.tmwc-booking-buttons::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  transform: rotate(45deg);
  pointer-events: none;
}

/* Button styles */
.tmwc-booking-buttons button,
.tmwc-buttons-wrapper button {
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 56px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
}

/* Button icons - using text symbols instead of font icons */
.tmwc-booking-buttons button .button-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
}

.tmwc-booking-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Primary button (Book Now) */
.tmwc-booking-buttons.premium .tmwc-btn-primary,
.tmwc-booking-buttons .tmwc-book-now {
  background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
  color: #1A1A1A;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

/* Remove icon pseudo elements since we'll use HTML */

/* Shimmer effect for Book Now */
.tmwc-booking-buttons .tmwc-book-now::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.8s ease;
}

.tmwc-booking-buttons.premium .tmwc-btn-primary:hover:not(:disabled),
.tmwc-booking-buttons .tmwc-book-now:hover:not(:disabled) {
  background: linear-gradient(135deg, #B8941F 0%, #D4AF37 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.45);
  color: #FFFFFF;
}

.tmwc-booking-buttons .tmwc-book-now:hover::after {
  transform: translateX(100%) rotate(45deg);
}

/* Secondary button (Add to Cart) */
.tmwc-booking-buttons.premium .tmwc-btn-secondary,
.tmwc-booking-buttons .tmwc-add-cart {
  background: linear-gradient(135deg, #21386B 0%, #318CE7 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(33, 56, 107, 0.25);
  font-weight: 700;
}


.tmwc-booking-buttons.premium .tmwc-btn-secondary:hover:not(:disabled),
.tmwc-booking-buttons .tmwc-add-cart:hover:not(:disabled) {
  background: linear-gradient(135deg, #1A2B52 0%, #2A7ACC 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(33, 56, 107, 0.35);
}

/* Active state */
.tmwc-booking-buttons button:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

/* Price Display */
.tmwc-price-display {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.tmwc-price-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tmwc-price-amount {
  font-size: 24px;
  font-weight: 800;
  color: #D4AF37;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: baseline;
}

.tmwc-price-amount .woocommerce-Price-currencySymbol {
  font-size: 18px;
  margin-right: 2px;
  opacity: 0.8;
}

/* Messages */
.tmwc-booking-messages {
  margin-top: 20px;
  width: 100%;
}

.tmwc-message {
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tmwc-message .message-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.tmwc-message.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #b1dfbb;
}

.tmwc-message.success .message-icon::before {
  content: '✓';
}

.tmwc-message.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f1aeb1;
}

.tmwc-message.error .message-icon::before {
  content: '✕';
}

.tmwc-message.warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border: 1px solid #ffd700;
}

.tmwc-message.warning .message-icon::before {
  content: '⚠';
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Hide Original Tourmaster Buttons */
.tourmaster-tour-booking-bar-button-wrap,
.tourmaster-tour-booking-proceed-button,
.tourmaster-tour-booking-bar-wrap .tourmaster-button,
.gdlr-core-button[href*="proceed-booking"],
a[href*="proceed-booking"],
.tourmaster-button[value="Proceed Booking"],
.tourmaster-tour-booking-submit-input,
.tourmaster-tour-booking-bar-button {
  display: none !important;
}

/* Make buttons visible in all possible locations */
.tourmaster-tour-content .tmwc-booking-buttons,
.tourmaster-single-header .tmwc-booking-buttons,
.tourmaster-tour-booking-bar .tmwc-booking-buttons,
.tmwc-buttons-wrapper {
  display: flex !important;
  visibility: visible !important;
}

/* Ensure wrapper is visible */
.tmwc-buttons-wrapper {
  width: 100%;
  max-width: 100%;
}

/* Override any theme styles that might hide our buttons */
.tmwc-injected-buttons,
.tmwc-replaced-button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important
}
@media (min-width: 768px) {
  .wts-booking-buttons .wts-date-selection,
  .wts-booking-buttons .wts-participants-selection {
    display: inline-block;
    width: calc(50% - 10px);
  }
  .wts-booking-buttons .wts-date-selection:first-child,
  .wts-booking-buttons .wts-participants-selection:first-child {
    margin-right: 20px;
  }
}
.wts-booking-buttons .wts-deposit-selection {
  padding: 15px;
  background: rgba(49, 140, 231, 0.05);
  border-radius: 5px;
  margin-top: 15px;
}
.wts-booking-buttons .wts-deposit-selection > label:first-child {
  margin-bottom: 10px;
}
.wts-booking-buttons .wts-deposit-selection .wts-payment-option {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 5px;
  background: #FFFFFF;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wts-booking-buttons .wts-deposit-selection .wts-payment-option:hover {
  border-color: #318CE7;
}
.wts-booking-buttons .wts-deposit-selection .wts-payment-option:last-child {
  margin-bottom: 0;
}
.wts-booking-buttons .wts-deposit-selection .wts-payment-option input[type=radio] {
  margin-right: 10px;
  flex-shrink: 0;
}
.wts-booking-buttons .wts-deposit-selection .wts-payment-option span {
  flex: 1;
}
.wts-booking-buttons .wts-deposit-selection .wts-payment-option strong {
  color: #21386B;
  margin-left: auto;
}
.wts-booking-buttons .wts-deposit-selection .wts-payment-option small {
  display: block;
  color: #9D9D9C;
  font-size: 12px;
  margin-top: 2px;
}
.wts-booking-buttons .wts-deposit-selection .wts-payment-option:has(input:checked) {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.05);
}
.wts-booking-buttons .wts-action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
@media (max-width: 480px) {
  .wts-booking-buttons .wts-action-buttons {
    flex-direction: column;
  }
}
.wts-booking-buttons .wts-action-buttons button {
  flex: 1;
}
.wts-booking-buttons .wts-action-buttons .wts-book-now {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  background: linear-gradient(135deg, #D4AF37 0%, #aa8c2c 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.wts-booking-buttons .wts-action-buttons .wts-book-now:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.wts-booking-buttons .wts-action-buttons .wts-book-now:focus {
  outline: 2px solid #318CE7;
  outline-offset: 2px;
}
.wts-booking-buttons .wts-action-buttons .wts-book-now:hover:not(:disabled) {
  background: linear-gradient(135deg, #c3a232 0%, #9b7f28 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.wts-booking-buttons .wts-action-buttons .wts-book-now:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.wts-booking-buttons .wts-action-buttons .wts-book-now .button-price {
  display: inline-block;
  margin-left: 10px;
  font-size: 18px;
  font-weight: 700;
}
.wts-booking-buttons .wts-action-buttons .wts-add-cart {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  background: #9D9D9C;
  color: #030F91;
}
.wts-booking-buttons .wts-action-buttons .wts-add-cart:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.wts-booking-buttons .wts-action-buttons .wts-add-cart:focus {
  outline: 2px solid #318CE7;
  outline-offset: 2px;
}
.wts-booking-buttons .wts-action-buttons .wts-add-cart:hover:not(:disabled) {
  background: #848483;
}
.wts-booking-buttons .wts-booking-messages {
  margin-top: 15px;
}
.wts-booking-buttons .wts-booking-messages .wts-message {
  padding: 10px 15px;
  border-radius: 3px;
  font-size: 14px;
}
.wts-booking-buttons .wts-booking-messages .wts-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.wts-booking-buttons .wts-booking-messages .wts-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.wts-booking-buttons .wts-booking-messages .wts-message.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}
.wts-booking-buttons[data-style=minimal] {
  border: none;
  box-shadow: none;
  padding: 15px;
  background: transparent;
}
.wts-booking-buttons[data-style=minimal] .wts-action-buttons .wts-book-now {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  background: #030F91;
  color: #FFFFFF;
}
.wts-booking-buttons[data-style=minimal] .wts-action-buttons .wts-book-now:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.wts-booking-buttons[data-style=minimal] .wts-action-buttons .wts-book-now:focus {
  outline: 2px solid #318CE7;
  outline-offset: 2px;
}
.wts-booking-buttons[data-style=minimal] .wts-action-buttons .wts-book-now:hover:not(:disabled) {
  background: #020961;
}
.wts-booking-buttons[data-style=minimal] .wts-action-buttons .wts-add-cart {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  background: transparent;
  color: #030F91;
  border: 2px solid #030F91;
}
.wts-booking-buttons[data-style=minimal] .wts-action-buttons .wts-add-cart:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.wts-booking-buttons[data-style=minimal] .wts-action-buttons .wts-add-cart:focus {
  outline: 2px solid #318CE7;
  outline-offset: 2px;
}
.wts-booking-buttons[data-style=minimal] .wts-action-buttons .wts-add-cart:hover:not(:disabled) {
  background: #030F91;
  color: #FFFFFF;
}

.wts-loading {
  position: relative;
}
.wts-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #FFFFFF;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  .tmwc-booking-buttons,
  .tmwc-buttons-wrapper .tmwc-booking-buttons {
    padding: 20px 15px;
    gap: 15px;
    flex-direction: column;
    align-items: stretch;
  }
  
  .tmwc-booking-buttons button,
  .tmwc-buttons-wrapper button {
    width: 100%;
    padding: 14px 30px;
    font-size: 14px;
  }
  
  .tmwc-price-display {
    margin-left: 0;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
  }
  
  .tmwc-price-amount {
    font-size: 20px;
  }
  
  .wts-booking-buttons {
    padding: 15px;
  }
  
  .wts-booking-buttons .wts-tour-options label {
    font-size: 13px;
  }
  
  .wts-booking-buttons .wts-tour-options select,
  .wts-booking-buttons .wts-tour-options input[type=number] {
    font-size: 14px;
    padding: 8px 10px;
  }
  
  .wts-booking-buttons .wts-action-buttons button {
    padding: 10px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .tmwc-booking-buttons::before {
    display: none; /* Hide pattern on very small screens */
  }
  
  .tmwc-booking-buttons button::before {
    display: none; /* Hide icons on very small screens to save space */
  }
  
  .tmwc-booking-buttons button {
    padding: 12px 25px;
    font-size: 13px;
    letter-spacing: 0.5px;
  }
}
@media print {
  .wts-booking-buttons {
    display: none;
  }
}