/**
 * Tree-Ripe Reservation Form - Multi-Step Wizard
 * Brand: Georgia Bold headlines, Avenir Next body
 * Colors: Green #0F5E41 (primary), White #FFFFFF, Black #333333
 * NO orange, NO gray, NO cream/peach backgrounds
 */

:root {
  --tr-green: #0F5E41;
  --tr-white: #FFFFFF;
  --tr-black: #333333;
  --tr-shadow-sm: 0 2px 8px rgba(15, 94, 65, 0.08);
  --tr-shadow-md: 0 8px 24px rgba(15, 94, 65, 0.12);
  --tr-shadow-lg: 0 16px 48px rgba(15, 94, 65, 0.16);
  --tr-shadow-focus: 0 0 0 4px rgba(15, 94, 65, 0.15);
  --tr-radius: 12px;
  --tr-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-font-headline: Georgia, "Times New Roman", serif;
  --tr-font-body: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===========================================
   FORM CONTAINER
   =========================================== */

.tr-reserve-form {
  font-family: var(--tr-font-body);
  font-size: 15px;
  line-height: 1.6;
  background: var(--tr-white);
  color: var(--tr-black);
}

/* Reset Kadence theme global button overrides.
   Kadence uses .entry-content button:not(.menu-toggle):not(.kb-button)
   at specificity 0-3-1 which overrides normal class selectors.
   !important is required to win the specificity battle. */


/* ===========================================
   PROGRESS BAR
   =========================================== */

.tr-reserve-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(40px, 8vw, 64px);
  position: relative;
  list-style: none;
  padding: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tr-reserve-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(15, 94, 65, 0.15);
  transform: translateY(-50%);
  z-index: 1;
}

.tr-reserve-progress::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: var(--tr-green);
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: var(--progress, 0%);
}

.tr-reserve-progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tr-white);
  border: 2px solid rgba(15, 94, 65, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tr-font-headline);
  font-weight: 700;
  font-size: 14px;
  color: rgba(15, 94, 65, 0.4);
  position: relative;
  z-index: 3;
  transition: var(--tr-transition);
}

.tr-reserve-progress-step.active {
  background: var(--tr-green);
  border-color: var(--tr-green);
  color: var(--tr-white) !important;
  box-shadow: var(--tr-shadow-md);
  transform: scale(1.1);
}

.tr-reserve-progress-step.completed {
  background: var(--tr-green);
  border-color: var(--tr-green);
  color: var(--tr-white) !important;
}

.tr-reserve-progress-step.completed span {
  display: none;
}

.tr-reserve-progress-step.completed::after {
  content: '\2713';
  font-family: system-ui, sans-serif;
}

/* ===========================================
   FORM SECTIONS
   =========================================== */

.tr-reserve-section {
  display: none;
  margin-bottom: clamp(40px, 8vw, 64px);
}

.tr-reserve-section.active {
  display: block;
  animation: tr-slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes tr-slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tr-reserve-section-title {
  color: var(--tr-green);
  text-align: center;
  font-size: clamp(26px, 5vw, 34px);
  margin-bottom: 1.5em !important;
}

/* ===========================================
   FLOATING LABEL INPUTS
   =========================================== */

.tr-reserve-float-group {
  position: relative;
  margin-bottom: 20px;
}

.tr-reserve-float-group input,
.tr-reserve-float-group select {
  width: 100%;
  padding: 20px 24px 8px;
  font-family: var(--tr-font-body);
  font-size: 15px;
  color: var(--tr-black);
  background: var(--tr-white);
  border: 2px solid rgba(15, 94, 65, 0.15);
  border-radius: 100px;
  outline: none;
  transition: var(--tr-transition);
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.tr-reserve-float-group select {
  cursor: pointer;
  padding-right: 48px;
}

.tr-reserve-float-group input:hover,
.tr-reserve-float-group select:hover {
  border-color: rgba(15, 94, 65, 0.3);
}

.tr-reserve-float-group input:focus,
.tr-reserve-float-group select:focus {
  border-color: var(--tr-green);
  box-shadow: var(--tr-shadow-focus);
}

.tr-reserve-float-group input:disabled,
.tr-reserve-float-group select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(15, 94, 65, 0.03);
}

.tr-reserve-float-group label {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: rgba(51, 51, 51, 0.75);
  pointer-events: none;
  transition: var(--tr-transition);
  background: var(--tr-white);
  padding: 0 4px;
}

.tr-reserve-float-group input:focus ~ label,
.tr-reserve-float-group input:not(:placeholder-shown) ~ label,
.tr-reserve-float-group select:focus ~ label,
.tr-reserve-float-group select.has-value ~ label {
  top: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--tr-green);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tr-reserve-select-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  transition: var(--tr-transition);
}

.tr-reserve-select-arrow::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--tr-green);
  border-bottom: 2px solid var(--tr-green);
  transform: rotate(45deg);
  top: 4px;
  left: 6px;
}

.tr-reserve-float-group select:focus ~ .tr-reserve-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* Input validation checkmark */
.tr-reserve-float-group.valid input,
.tr-reserve-float-group.valid select {
  border-color: var(--tr-green);
}

.tr-reserve-float-group.valid::after {
  content: '\2713';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tr-green);
  font-size: 14px;
  animation: tr-checkPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tr-reserve-float-group:has(select).valid::after {
  right: 48px;
}

@keyframes tr-checkPop {
  0% { transform: translateY(-50%) scale(0); }
  50% { transform: translateY(-50%) scale(1.3); }
  100% { transform: translateY(-50%) scale(1); }
}

/* Field hints */
.tr-reserve-field-hint {
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  line-height: 1.4;
}

/* ===========================================
   TWO COLUMN LAYOUT
   =========================================== */

.tr-reserve-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .tr-reserve-two-col {
    grid-template-columns: 1fr;
  }
}

/* ===========================================
   PRODUCTS LIST (card grid)
   =========================================== */

.tr-reserve-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(160px, 30vw, 220px), 1fr));
  gap: clamp(14px, 3vw, 20px);
  overflow: hidden;
}

.tr-reserve-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--tr-white);
  border: 2px solid #E8F4EB;
  border-radius: 16px;
  padding: 0 0 clamp(14px, 3vw, 18px) 0;
  gap: clamp(10px, 2vw, 14px);
  transition: var(--tr-transition);
  overflow: hidden;
}

.tr-reserve-product:hover {
  border-color: #408469;
  box-shadow: var(--tr-shadow-sm);
}

.tr-reserve-product.has-qty {
  border-color: #0F5E41;
  box-shadow: 0 0 0 1px #0F5E41;
}

.tr-reserve-product.has-qty .tr-reserve-product-name {
  color: var(--tr-green);
}

.tr-reserve-product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #E8F4EB;
  overflow: hidden;
  flex-shrink: 0;
}

.tr-reserve-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tr-reserve-product-thumb:not(:has(img))::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: #E8F4EB;
}

.tr-reserve-product-info {
  min-width: 0;
  width: 100%;
  padding: 0 clamp(6px, 1.5vw, 10px);
}

.tr-reserve-product-name {
  font-weight: 700;
  font-size: clamp(14px, 3vw, 16px);
  color: var(--tr-black);
  line-height: 1.3;
  margin-bottom: 6px;
  transition: var(--tr-transition);
}

.tr-reserve-product-price {
  font-size: 14px;
  color: var(--tr-green);
  font-weight: 600;
  margin-top: 2px;
}

.tr-reserve-option-single {
  margin-top: 4px;
}

/* ===========================================
   QUANTITY CONTROLS
   =========================================== */

.tr-reserve-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-top: auto;
}

.tr-reserve-qty-btn {
  width: 44px;
  height: 44px;
  border: none !important;
  border-radius: 10px !important;
  background: rgba(15, 94, 65, 0.1) !important;
  color: #0F5E41 !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: var(--tr-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  min-height: auto !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1 !important;
}

.tr-reserve-qty-btn:hover {
  background: #0F5E41 !important;
  color: #FFFFFF !important;
  transform: scale(1.08);
}

.tr-reserve-qty-btn:active {
  transform: scale(0.95);
}

.tr-reserve-qty-value {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--tr-black);
}

/* Hidden input for form submission */
.tr-reserve-qty-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ===========================================
   ORDER TOTAL
   =========================================== */

.tr-reserve-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px clamp(16px, 4vw, 32px);
  margin-top: clamp(24px, 5vw, 36px);
}

.tr-reserve-total-note {
  flex: 1 0 100%;
  font-family: var(--tr-font-body);
  font-size: clamp(13px, 2.5vw, 15px);
  color: var(--tr-text-light, #555555);
  line-height: 1.5;
}

.tr-reserve-total-label {
  font-family: var(--tr-font-headline);
  font-weight: 700;
  font-size: clamp(18px, 4vw, 24px);
  color: var(--tr-black);
  white-space: nowrap;
}

.tr-reserve-total-amount {
  font-family: var(--tr-font-headline);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  color: var(--tr-green);
  transition: var(--tr-transition);
  white-space: nowrap;
}

.tr-reserve-total-amount.updating {
  transform: scale(1.1);
}

/* ===========================================
   NAVIGATION BUTTONS
   =========================================== */

.tr-reserve-nav {
  display: flex;
  gap: 12px;
  margin-top: clamp(32px, 6vw, 48px);
}

.tr-reserve-nav-btn {
  padding: 14px 24px !important;
  font-family: var(--tr-font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  cursor: pointer;
  transition: var(--tr-transition);
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  white-space: nowrap;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  width: auto;
}

.tr-reserve-nav-btn:only-child {
  width: 100%;
}

.tr-reserve-nav-btn.back {
  background: #FFFFFF !important;
  border: 2px solid rgba(15, 94, 65, 0.2) !important;
  color: #0F5E41 !important;
  box-shadow: none !important;
}

.tr-reserve-nav-btn.back:hover {
  border-color: #0F5E41 !important;
  background: #FFFFFF !important;
  color: #0F5E41 !important;
}

.tr-reserve-nav-btn.next {
  background: #0F5E41 !important;
  border: 2px solid #0F5E41 !important;
  color: #FFFFFF !important;
  box-shadow: var(--tr-shadow-sm) !important;
}

.tr-reserve-nav-btn.next:hover {
  background: #0F5E41 !important;
  color: #FFFFFF !important;
  box-shadow: var(--tr-shadow-md) !important;
  transform: translateY(-1px);
}

.tr-reserve-nav-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed;
  transform: none !important;
}

/* ===========================================
   REVIEW SECTION
   =========================================== */

/* Top row: Location + Contact side by side */
.tr-reserve-review-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 24px);
  margin-bottom: clamp(28px, 5vw, 40px);
}

.tr-reserve-review-card-block {
  background: var(--tr-white);
  border: 2px solid #E8F4EB;
  border-radius: 16px;
  padding: clamp(18px, 4vw, 28px);
}

.tr-reserve-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tr-reserve-review-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tr-green);
  margin-bottom: 0;
  text-align: center;
  flex: 1;
}

.tr-reserve-review-edit {
  background: none;
  border: none;
  color: var(--tr-green);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tr-reserve-review-edit:hover {
  background: #E8F4EB;
  text-decoration: none;
}

.tr-reserve-review-heading {
  font-family: var(--tr-font-headline);
  font-weight: 700;
  font-size: clamp(22px, 4.5vw, 28px);
  color: var(--tr-green);
  margin: 0;
  text-align: center;
  flex: 1;
}

.tr-reserve-review-items .tr-reserve-review-header {
  margin-bottom: clamp(16px, 3vw, 20px);
}

.tr-reserve-review-location {
  font-family: var(--tr-font-headline);
  font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 700;
  color: var(--tr-black);
  line-height: 1.3;
  margin-bottom: 12px;
  text-align: center;
}

.tr-reserve-review-address {
  font-size: 15px;
  color: var(--tr-black);
  line-height: 1.4;
  margin-bottom: 8px;
}

.tr-reserve-review-date {
  font-size: clamp(14px, 3vw, 16px);
  color: var(--tr-green);
  font-weight: 600;
}

/* Review items - card grid */
.tr-reserve-review-items {
  margin-bottom: clamp(28px, 5vw, 40px);
}

.tr-reserve-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 28vw, 200px), 1fr));
  gap: clamp(12px, 3vw, 16px);
}

.tr-reserve-review-card {
  background: var(--tr-white);
  border: 2px solid #E8F4EB;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
}

.tr-reserve-review-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.tr-reserve-review-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tr-reserve-review-card-info {
  padding: clamp(10px, 2vw, 14px);
}

.tr-reserve-review-card-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--tr-black);
  line-height: 1.3;
}

.tr-reserve-review-card-detail {
  font-size: 15px;
  font-weight: 500;
  color: var(--tr-black);
  margin-top: 4px;
}

.tr-reserve-review-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  text-align: left;
}

.tr-reserve-review-icon-row i {
  flex-shrink: 0;
  width: 16px;
  font-size: 16px;
}

.tr-reserve-review-icon-row span {
  font-size: 15px;
  color: var(--tr-black);
  line-height: 1.4;
}

.tr-reserve-review-card-price {
  font-weight: 700;
  font-size: 16px;
  color: var(--tr-green);
  margin-top: 6px;
}

/* Review total */
.tr-reserve-review-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(24px, 4vw, 32px);
  margin-bottom: clamp(24px, 4vw, 32px);
}

.tr-reserve-review-total-label {
  font-family: var(--tr-font-headline);
  font-weight: 700;
  font-size: clamp(18px, 4vw, 24px);
  color: var(--tr-black);
  white-space: nowrap;
}

.tr-reserve-review-total-amount {
  font-family: var(--tr-font-headline);
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 700;
  color: var(--tr-green);
  white-space: nowrap;
}

/* Review contact (inside card block) */
.tr-reserve-review-contact-name {
  font-family: var(--tr-font-headline);
  font-weight: 700;
  font-size: clamp(22px, 4.5vw, 28px);
  color: var(--tr-black);
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.3;
}

.tr-reserve-review-contact-detail {
  font-size: 15px;
  color: var(--tr-black);
  margin-top: 4px;
  line-height: 1.5;
}

/* ===========================================
   SUBMIT BUTTON (Kadence inherits via kb-button)
   =========================================== */

.tr-reserve-submit-note {
  margin-top: clamp(16px, 3vw, 22px);
  font-family: var(--tr-font-body);
  font-size: clamp(13px, 2.5vw, 15px);
  color: #555555;
  line-height: 1.5;
}

.tr-reserve-final-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: clamp(20px, 4vw, 28px);
}

/* Each button fills its own grid cell: Back in the "auto"
   column (compact, sized to its text), Submit in the "1fr"
   column (fills the rest). Scoped to this grid so steps 1-3
   are untouched. No flex, no !important. */
.tr-reserve-final-actions .tr-reserve-nav-btn,
.tr-reserve-final-actions .tr-reserve-submit {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  place-content: center;
  width: 100%;
  margin: 0;
}

.tr-reserve-submit {
  width: 100%;
  padding: 18px 32px !important;
  font-family: var(--tr-font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  position: relative;
  overflow: hidden;
  background: #0F5E41 !important;
  color: #FFFFFF !important;
  border: 2px solid #0F5E41 !important;
  border-radius: 9999px !important;
  cursor: pointer;
  text-transform: none !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  box-shadow: var(--tr-shadow-sm) !important;
}

.tr-reserve-submit:hover {
  background: #0F5E41 !important;
  color: #FFFFFF !important;
  box-shadow: var(--tr-shadow-md) !important;
}

.tr-reserve-submit:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed;
}

/* ===========================================
   MESSAGES
   =========================================== */

.tr-reserve-message {
  display: none;
  padding: 16px 20px;
  border-radius: var(--tr-radius);
  margin-bottom: 24px;
  font-size: 15px;
}

.tr-reserve-message.is-visible {
  display: block;
}

.tr-reserve-message.success {
  background: rgba(15, 94, 65, 0.1);
  border: 2px solid var(--tr-green);
  color: var(--tr-green);
}

.tr-reserve-message.error {
  background: rgba(175, 45, 58, 0.1);
  border: 2px solid #AF2D3A;
  color: #AF2D3A;
}

/* ===========================================
   CONFIRMATION VIEW
   =========================================== */

.tr-reserve-confirmation {
  text-align: center;
  padding: 0 clamp(16px, 4vw, 32px) clamp(40px, 8vw, 64px);
  animation: tr-slideUp 0.5s ease-out;
}

.tr-reserve-confirmation-icon {
  margin: 0 auto clamp(20px, 4vw, 28px);
}


.tr-reserve-confirmation-icon.tr-reserve-icon-success {
  width: clamp(56px, 10vw, 72px);
  height: clamp(56px, 10vw, 72px);
  background: var(--tr-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tr-white) !important;
  font-size: clamp(28px, 5vw, 36px);
}

.tr-reserve-confirmation-icon.tr-reserve-icon-success i {
  color: var(--tr-white) !important;
}

.tr-reserve-confirmation .tr-reserve-section-title {
  margin-bottom: clamp(16px, 3vw, 24px) !important;
}

.tr-reserve-confirmation-text {
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 600;
  color: var(--tr-black);
  line-height: 1.5;
  margin: 0 auto clamp(12px, 2vw, 16px);
}

.tr-reserve-confirmation-body {
  font-size: clamp(16px, 3vw, 18px);
  color: var(--tr-black);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 0;
}

.tr-reserve-confirmation-body a {
  color: var(--tr-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tr-reserve-confirmation-body a:hover {
  color: #408469;
}

/* Button group */
.tr-reserve-confirmation-actions {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 24px);
  margin-top: clamp(32px, 6vw, 44px);
  flex-wrap: wrap;
}

.tr-reserve-confirmation-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 100px !important;
  padding: 14px 28px !important;
  font-family: var(--tr-font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--tr-transition);
}

.tr-reserve-confirmation-btn-primary {
  background: #0F5E41 !important;
  color: #FFFFFF !important;
  box-shadow: var(--tr-shadow-sm);
  border: none !important;
}

.tr-reserve-confirmation-btn-primary:hover {
  background: #408469 !important;
  color: #FFFFFF !important;
  box-shadow: var(--tr-shadow-md);
  text-decoration: none !important;
}

.tr-reserve-confirmation-btn-primary i {
  font-size: 18px;
  flex-shrink: 0;
}

.tr-reserve-confirmation-btn-outline {
  background: transparent !important;
  color: #0F5E41 !important;
  border: 2px solid #0F5E41 !important;
}

.tr-reserve-confirmation-btn-outline i {
  font-size: 18px;
  flex-shrink: 0;
}

.tr-reserve-confirmation-btn-outline:hover {
  background: #E8F4EB !important;
  color: #0F5E41 !important;
  text-decoration: none !important;
}

/* Account prompt (guest users only) */
.tr-reserve-confirmation-account {
  background: #f1f8f3;
  border-radius: 12px;
  padding: clamp(24px, 4vw, 32px);
  margin: clamp(32px, 6vw, 44px) auto 0;
  max-width: 460px;
  text-align: center;
}

.tr-reserve-confirmation-account-heading {
  font-family: var(--tr-font-headline);
  font-weight: 700;
  font-size: clamp(18px, 3.5vw, 22px);
  color: var(--tr-green);
  margin-bottom: clamp(8px, 1.5vw, 12px);
}

.tr-reserve-confirmation-account-body {
  font-size: clamp(15px, 2.8vw, 16px);
  color: var(--tr-black);
  line-height: 1.6;
  margin-bottom: clamp(16px, 3vw, 24px);
}

/* ===========================================
   LOADING STATE
   =========================================== */

.tr-reserve-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
}

.tr-reserve-loading.is-visible {
  display: flex;
}

.tr-reserve-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(15, 94, 65, 0.2);
  border-top-color: var(--tr-green);
  border-radius: 50%;
  animation: tr-spin 0.8s linear infinite;
}

@keyframes tr-spin {
  to { transform: rotate(360deg); }
}

/* ===========================================
   EMPTY STATE
   =========================================== */

.tr-reserve-empty {
  padding: 32px;
  text-align: center;
  color: rgba(51, 51, 51, 0.7);
  font-size: 15px;
}

/* ===========================================
   RIPPLE EFFECT
   =========================================== */

.tr-reserve-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: tr-ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes tr-ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */

.tr-reserve-form *:focus-visible {
  outline: 3px solid rgba(15, 94, 65, 0.3);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .tr-reserve-section.active,
  .tr-reserve-progress::after,
  .tr-reserve-progress-step,
  .tr-reserve-float-group input,
  .tr-reserve-float-group select,
  .tr-reserve-float-group label,
  .tr-reserve-nav-btn,
  .tr-reserve-qty-btn,
  .tr-reserve-product,
  .tr-reserve-total-amount {
    animation: none !important;
    transition: none !important;
  }
}

/* ===========================================
   STOP SEARCH
   =========================================== */

.tr-reserve-search-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.tr-reserve-search-input-wrap {
  flex: 1;
  margin-bottom: 0;
}

.tr-reserve-search-btn {
  flex-shrink: 0;
  padding: 14px 28px !important;
  font-family: var(--tr-font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  background: #0F5E41 !important;
  border: 2px solid #0F5E41 !important;
  border-radius: 100px !important;
  cursor: pointer;
  transition: var(--tr-transition);
  min-height: 52px;
  white-space: nowrap;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

.tr-reserve-search-btn:hover {
  background: #0F5E41 !important;
  color: #FFFFFF !important;
  border-color: #0F5E41 !important;
  box-shadow: var(--tr-shadow-md) !important;
  transform: translateY(-1px);
}

.tr-reserve-search-btn:focus {
  background: #0F5E41 !important;
  color: #FFFFFF !important;
  border-color: #0F5E41 !important;
  box-shadow: var(--tr-shadow-focus) !important;
}

.tr-reserve-search-btn:disabled {
  background: #0F5E41 !important;
  color: #FFFFFF !important;
  border-color: #0F5E41 !important;
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none !important;
}

.tr-reserve-search-loading {
  padding: 32px;
  text-align: center;
  color: var(--tr-green);
  font-size: 15px;
  font-weight: 500;
}

/* ===========================================
   STOP RESULTS
   =========================================== */

.tr-reserve-results-count {
  font-size: 14px;
  font-weight: 600;
  color: #666666;
  margin-bottom: 16px;
}

.tr-reserve-stop-results-wrap {
  position: relative;
}

.tr-reserve-stop-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  /* Webkit scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #408469 #E8F4EB;
}

.tr-reserve-stop-results::-webkit-scrollbar {
  width: 8px;
}

.tr-reserve-stop-results::-webkit-scrollbar-track {
  background: #E8F4EB;
  border-radius: 100px;
}

.tr-reserve-stop-results::-webkit-scrollbar-thumb {
  background: #408469;
  border-radius: 100px;
}

.tr-reserve-stop-results::-webkit-scrollbar-thumb:hover {
  background: #0F5E41;
}

.tr-reserve-results-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 16px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: 0 0 20px 20px;
}

/* ===========================================
   STOP CARDS
   =========================================== */

.tr-reserve-stop-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  padding: 20px 24px !important;
  background: #FFFFFF !important;
  border: 2px solid rgba(15, 94, 65, 0.1) !important;
  border-radius: 20px !important;
  cursor: pointer;
  transition: var(--tr-transition);
  text-align: left;
  font-family: var(--tr-font-body) !important;
  font-size: 15px !important;
  font-weight: normal !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  line-height: 1.6 !important;
  min-height: auto !important;
  margin: 0;
  color: #333333 !important;
}

.tr-reserve-stop-card:hover {
  border-color: #0F5E41 !important;
  box-shadow: var(--tr-shadow-sm) !important;
  transform: translateY(-1px);
  background: #FFFFFF !important;
  color: #333333 !important;
}

.tr-reserve-stop-card:active {
  transform: translateY(0);
}

.tr-reserve-stop-card-info {
  flex: 1;
  min-width: 0;
}

.tr-reserve-stop-card-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--tr-black);
  margin-bottom: 4px;
}

.tr-reserve-stop-card-address {
  font-size: 14px;
  color: #666666;
  line-height: 1.4;
}

.tr-reserve-stop-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.tr-reserve-stop-card-distance {
  display: inline-block;
  padding: 4px 12px;
  background: #E8F4EB;
  color: #0F5E41;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  white-space: nowrap;
}

.tr-reserve-stop-card-dates {
  font-size: 14px;
  color: var(--tr-green);
  font-weight: 500;
  white-space: nowrap;
}

/* Date alert on a reserve stop card: own line, but only as wide as its text
   (override the shared .tr-fs-card-alert flex-basis:100% from tr-stop-alert.css).
   Scoped to the reserve card so other surfaces are unaffected. */
.tr-reserve-stop-card .tr-fs-card-alert {
  flex-basis: 100%;
  width: fit-content;
  max-width: 100%;
  border-left: none;
  border-radius: 999px;
}

/* ===========================================
   SELECTED STOP
   =========================================== */

.tr-reserve-selected-stop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 20px;
  background: #f1f8f3;
  border: 2px solid #E8F4EB;
  border-radius: 14px;
  margin-bottom: 20px;
}

.tr-reserve-selected-stop .tr-stop-alert {
  flex-basis: 100%;
  margin: 0;
}

.tr-reserve-selected-stop-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.tr-reserve-selected-stop-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tr-reserve-selected-stop-name {
  font-weight: 700;
  font-size: clamp(15px, 3.5vw, 17px);
  color: var(--tr-green);
}

.tr-reserve-selected-stop-address {
  font-size: 15px;
  color: var(--tr-black);
  line-height: 1.4;
  margin-top: 2px;
}

.tr-reserve-change-btn {
  flex-shrink: 0;
  padding: 8px 20px !important;
  font-family: var(--tr-font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0F5E41 !important;
  background: transparent !important;
  border: 2px solid rgba(15, 94, 65, 0.2) !important;
  border-radius: 100px !important;
  cursor: pointer;
  transition: var(--tr-transition);
  min-height: 44px;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

.tr-reserve-change-btn:hover {
  border-color: #0F5E41 !important;
  background: rgba(15, 94, 65, 0.05) !important;
  color: #0F5E41 !important;
}

/* ===========================================
   NO RESULTS
   =========================================== */

.tr-reserve-no-results {
  text-align: center;
  padding: 40px 20px;
}

.tr-reserve-no-results-heading {
  font-family: var(--tr-font-headline);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: var(--tr-black);
  margin-bottom: 12px;
}

.tr-reserve-no-results-detail {
  font-size: 15px;
  color: #666666;
  line-height: 1.6;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 500px) {
  .tr-reserve-form {
    padding: 0 1.5em;
  }

  .tr-reserve-search-group {
    flex-direction: column;
    align-items: stretch;
  }

  .tr-reserve-search-input-wrap,
  .tr-reserve-search-input-wrap input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .tr-reserve-search-btn {
    width: 100%;
  }

  .tr-reserve-stop-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tr-reserve-stop-card-meta {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }

  .tr-reserve-selected-stop {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tr-reserve-change-btn {
    width: 100%;
    text-align: center;
  }

  .tr-reserve-review-top {
    grid-template-columns: 1fr;
  }

  /* Mobile: stack the final-step buttons full-width. */
  .tr-reserve-final-actions {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 480px) {
  .tr-reserve-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tr-reserve-product-thumb {
    aspect-ratio: 4 / 3;
  }

  .tr-reserve-product-name {
    font-size: 13px;
  }

  .tr-reserve-product-info {
    padding: 0 6px;
  }

  .tr-reserve-option-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .tr-reserve-option-row .tr-reserve-qty {
    justify-content: center;
  }

  .tr-reserve-option-radio-label,
  .tr-reserve-option-radio-price {
    font-size: 13px;
    text-align: center;
  }
}

/* Hide number input spinners */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}


/* ========================================
   PRODUCT OPTION ROWS
   Independent quantity rows for multi-option products
   (e.g. Full Flat / Half Flat strawberries)
   ======================================== */

.tr-reserve-option-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    width: 100%;
}

.tr-reserve-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 4px;
    border-radius: 8px;
    transition: background 0.15s ease;
    min-height: 44px;
}

.tr-reserve-option-row:hover {
    background: #f1f8f3;
}

.tr-reserve-option-row.has-qty {
    background: #f1f8f3;
}

.tr-reserve-option-row-info {
    flex: 1;
    min-width: 0;
}

.tr-reserve-option-radio-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--tr-black);
    display: block;
    line-height: 1.3;
}

.tr-reserve-option-radio-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--tr-green);
}

.tr-reserve-option-row .tr-reserve-qty {
    margin-top: 0;
}

/* ===========================================
   HIGH VOLUME ORDER NOTICE
   =========================================== */

.tr-reserve-high-volume-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FFF8E1;
    border: 2px solid #E8C840;
    border-radius: 12px;
    padding: clamp(14px, 3vw, 18px);
    margin: clamp(16px, 3vw, 24px) 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--tr-black);
}

.tr-reserve-high-volume-notice i {
    color: #B8860B;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tr-reserve-high-volume-notice a {
    color: var(--tr-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tr-reserve-high-volume-notice a:hover {
    color: #0a4a32;
}

/* ===========================================
   VALIDATION HINTS
   =========================================== */

.tr-reserve-validation-hint {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tr-reserve-validation-hint.visible {
    opacity: 1;
}