/*
 * Purchase funnel styles, matching the donor's visual language
 * (teal #08B0BF section headers, orange #EE6A28 CTAs, flat tables,
 * root font-size 10px conventions from style.css).
 */

#purchase {
  padding: 40px 0px 80px;
  background: #fff;
}

#purchase .gp-cal td.gp-past {
  background: #f0f0f0;
  color: #bbb;
  text-decoration: line-through;
}

#purchase .gp-teal {
  background: #08B0BF;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 14px 20px;
  margin: 0 0 25px;
}

#purchase .gp-sub {
  color: #08B0BF;
  font-size: 2rem;
  font-weight: 700;
  border-left: 6px solid #08B0BF;
  padding-left: 10px;
  margin: 35px 0 18px;
}

#purchase .gp-step {
  margin-bottom: 20px;
}

#purchase .gp-label {
  font-weight: 700;
  margin: 22px 0 8px;
}

#purchase .gp-note {
  color: #666;
  font-size: 1.3rem;
  margin: 6px 0 0;
}

/* plan tabs */
#purchase .gp-plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#purchase .gp-plan-tab {
  flex: 1 1 300px;
  background: #fff;
  border: 2px solid #08B0BF;
  border-radius: 10px;
  color: #086d76;
  font-size: 1.7rem;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

#purchase .gp-plan-tab-on {
  background: #08B0BF;
  border-color: #08B0BF;
  color: #fff;
}

#purchase .gp-areas {
  margin: 10px 0 0;
  color: #333;
  font-size: 1.4rem;
}

/* calendar */
#purchase .gp-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 8px 0 10px;
}

#purchase .gp-cal-nav button {
  background: #fff;
  border: 2px solid #08B0BF;
  border-radius: 8px;
  color: #08B0BF;
  font-size: 1.8rem;
  line-height: 1;
  width: 40px;
  height: 34px;
  cursor: pointer;
}

#purchase .gp-cal-nav button:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: default;
}

#purchase .gp-cal-title {
  font-size: 1.9rem;
  font-weight: 700;
  min-width: 150px;
  text-align: center;
}

#purchase .gp-cal {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  text-align: center;
}

#purchase .gp-cal th {
  border: 1px solid #ddd;
  background: #f4f4f4;
  font-weight: 700;
  padding: 6px 2px;
  font-size: 1.3rem;
}

#purchase .gp-cal td {
  border: 1px solid #ddd;
  padding: 0;
  height: 44px;
  font-size: 1.5rem;
}

#purchase .gp-cal td.color2 {
  background-color: #fddbdb;
}

#purchase .gp-cal td.color5 {
  background-color: #cfcece;
}

#purchase .gp-cal td.gp-sold {
  color: #888;
  text-decoration: line-through;
}

#purchase .gp-cal td.gp-selected span {
  background: #08B0BF;
  color: #fff;
  border-radius: 50%;
}

#purchase .gp-cal .gp-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
}

#purchase .gp-cal .gp-day:hover {
  background: #cbf6ff;
}

#purchase .gp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 0 0;
  font-size: 1.3rem;
  color: #333;
}

#purchase .gp-legend .gp-sw {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #ccc;
  margin-right: 4px;
  vertical-align: -2px;
}

#purchase .gp-sw-wd {
  background: #fff;
}

#purchase .gp-sw-we {
  background: #fddbdb;
}

#purchase .gp-sw-cl {
  background: #cfcece;
}

/* entry time slots */
#purchase .gp-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#purchase .gp-slot {
  background: #fff;
  border: 2px solid #08B0BF;
  border-radius: 8px;
  color: #086d76;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s;
}

#purchase .gp-slot-on {
  background: #08B0BF;
  color: #fff;
}

#purchase .gp-slot:disabled {
  border-color: #ccc;
  color: #bbb;
  background: #f5f5f5;
  cursor: default;
  text-decoration: line-through;
}

/* quantity steppers */
#purchase .gp-qty-lines {
  max-width: 560px;
}

#purchase .gp-qty-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 2px;
}

#purchase .gp-qty-line > span:first-child {
  font-size: 1.6rem;
}

#purchase .gp-qty-price {
  font-weight: 400;
  color: #666;
  font-size: 1.4rem;
  margin-left: 10px;
}

#purchase .gp-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#purchase .gp-stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 2px solid #08B0BF;
  border-radius: 6px;
  color: #08B0BF;
  cursor: pointer;
  padding: 0;
}

#purchase .gp-stepper button:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: default;
}

#purchase .gp-stepper input {
  width: 44px;
  height: 30px;
  text-align: center;
  font-size: 1.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* totals */
#purchase .gp-total {
  margin: 26px 0 0;
  border: 2px solid #08B0BF;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  background: #fff;
}

#purchase .gp-total-label {
  font-size: 1.7rem;
  font-weight: 700;
}

#purchase .gp-total-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: #EE6A28;
}

#purchase .gp-rate-tag {
  display: inline-block;
  margin-left: 10px;
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
  background: #EE6A28;
  border-radius: 4px;
  padding: 2px 8px;
  vertical-align: 4px;
}

/* CTAs - same visual language as the donor's #ticket .entrybtn-red */
#purchase .entrybtn-red {
  border-radius: 0.75rem;
  cursor: pointer;
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 2.5rem auto 2rem;
  padding: 0;
  position: relative;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  width: 100%;
  max-width: 560px;
}

#purchase .entrybtn-red:before {
  content: "";
  background-color: #EE6A28;
  border: 2px solid #000;
  border-radius: inherit;
  box-sizing: border-box;
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition: all 0.2s;
  width: 100%;
}

#purchase .entrybtn-red .front {
  color: #fff;
  display: block;
  padding: 12px 20px;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

#purchase .entrybtn-red:hover:before {
  background-color: #f97e3d;
}

#purchase .entrybtn-red:disabled:before {
  background-color: #bbb;
  border-color: #999;
}

#purchase .entrybtn-red:disabled {
  cursor: default;
}

#purchase .gp-back {
  display: block;
  margin: 0 auto 10px;
  background: #fff;
  border: 2px solid #999;
  border-radius: 0.75rem;
  color: #333;
  font-size: 1.6rem;
  padding: 10px 30px;
  cursor: pointer;
}

/* identity + summary */
#purchase .gp-form {
  max-width: 460px;
  margin: 0 auto;
}

#purchase .gp-form label {
  display: block;
  margin-bottom: 14px;
}

#purchase .gp-form label span {
  display: block;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

#purchase .gp-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1.6rem;
  padding: 10px 12px;
}

#purchase .gp-identity-note {
  text-align: center;
  color: #666;
  font-size: 1.4rem;
  margin: 0 0 20px;
}

#purchase .flat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 20px;
}

#purchase .flat-table th,
#purchase .flat-table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  font-size: 1.5rem;
}

#purchase .flat-table th {
  background: #f4f4f4;
  font-weight: 700;
  width: 32%;
}

#purchase .gp-error {
  color: #c00;
  font-weight: 700;
  margin: 12px 0 0;
}

@media (max-width: 767px) {
  #purchase {
    padding: 6vw 0px 12vw;
  }

  #purchase .gp-teal {
    font-size: 4vw;
    padding: 3vw 4vw;
    border-radius: 2vw;
  }

  #purchase .entrybtn-red {
    font-size: 3.75vw;
  }

  #purchase .gp-cal {
    max-width: 100%;
  }

  #purchase .gp-cal td {
    height: 9vw;
    font-size: 3.4vw;
  }

  #purchase .gp-total-value {
    font-size: 5vw;
  }
}
