/* =====================================================================
   Templum Gift Card — Single Product Hero
   Scope: .tam-gift-card-page only (body class is added by the mu-plugin
   only when viewing the gift card product). Safe to enqueue globally —
   every selector is nested under .tam-gift-card-page, so it does
   nothing on any other product page.
   ===================================================================== */

.tam-gift-card-page {
  --tam-ink: #1a1a1a;
  --tam-gold: #c9a84c;
  --tam-rose: #b85c7a;
  --tam-cream: #faf7f2;
}

/* ---- Hero shell, full-bleed -------------------------------------- */
/* Breaks out of the theme's boxed container. If your theme wraps
   content in an element with overflow:hidden, this trick won't
   escape it — in that case hook the hero output one level earlier
   (e.g. woocommerce_before_main_content) instead. */
.tam-gift-card-page .tam-gc-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: linear-gradient(135deg, #f9e4e8 0%, #f3d9de 45%, #eecdd6 100%);
  padding: 64px 5vw 110px;
  position: relative;
  min-height: 500px;
  background-size: 100% 100%;
}

.tam-gc-hero__decor {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}
.tam-gc-hero__decor--left  { top: -80px;  left: -80px; background: var(--tam-gold); }
.tam-gc-hero__decor--right { bottom: -100px; right: -60px; background: var(--tam-rose); }

.tam-gc-hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  /* display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; */
  align-items: center;
  max-width: 1320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* .tam-gc-hero__details {
  max-width: 520px;
  margin-left: auto;
  padding: 40px;
  text-align: right;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08),
      0 4px 12px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--tam-rose);
} */
.tam-gc-hero__details {
  backdrop-filter: blur(12px);
  background: rgb(255 255 255 / 41%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 20px;
  box-sizing: border-box;
  height: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border-top: 5px solid var(--tam-rose);
  border-radius: 10px;
}

/* ---- Visual side (image + overlaid script copy) ------------------- */
.tam-gc-hero__visual { position: relative; text-align: right; padding-right: 85px; flex:0 0 60%;}
.tam-gc-hero__img { max-width: 100%; height: auto; }

/* .tam-gc-hero__copy {
  position: absolute;
  top: 8%;
  left: 0;
  text-align: left;
  z-index: 2;
} */
.tam-gc-hero__eyebrow {
  font-weight: 600;
  margin: 0 0 14px;
  font-family: 'Great Vibes', cursive;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.tam-gc-hero__title {
  font-family: 'Great Vibes', cursive;
  font-size: 72px;
  line-height: 1;
  color: var(--tam-rose);
  margin: 0;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ---- Details side --------------------------------------------------*/
.tam-gc-hero__occasion {
  font-family: 'Great Vibes', cursive;
  font-size: 34px;
  margin: 0 0 15px;
  color: #222;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.5px;
}
.tam-gc-hero__range {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: var(--tam-rose);
  margin: 0 0 20px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(186, 64, 115, 0.1);
  font-weight: 700;
}
/* .tam-gc-hero__rule {
  width: 220px;
  border: none;
  border-top: 1px solid rgba(26, 26, 26, 0.15);
  margin: 0 0 20px;
} */
.tam-gc-hero__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  max-width: 34ch;
  margin: 0;
}

/* ---- Wave divider ---------------------------------------------------*/
.tam-gc-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}
.tam-gc-hero__wave svg { width: 100%; height: 90px; display: block; }
.tam-gc-hero__wave path { fill: var(--tam-cream); }
/* .single-product .product-type-pw-gift-card {
  z-index: 9;
  margin-top: -100px;
} */
.single-product div.product.product_cat-gift-card .woocommerce-tabs .panel {
  background: #ffff;
  font-size: 14px;
}
.single-product.woocommerce div.product.product_cat-gift-card form.cart .woocommerce-variation-add-to-cart {
  position: relative;
}
.single-product.woocommerce div.product.product_cat-gift-card form.cart div.quantity,
.single-product.woocommerce div.product.product_cat-gift-card form.cart div.quantity input[type="number"] {
    height: 51px;
    position: absolute;
    bottom: 0;
}
/* ---- Responsive -------------------------------------------------- */
@media (max-width: 900px) {
  .tam-gc-hero__inner   { grid-template-columns: 1fr; text-align: center; }
  .tam-gc-hero__copy    { position: static; margin-bottom: 24px; }
  .tam-gc-hero__title   { font-size: 42px; }
  /* .tam-gc-hero__rule    { margin-left: auto; margin-right: auto; } */
  .tam-gc-hero__desc    { margin-left: auto; margin-right: auto; }
}

/* =====================================================================
   Restyled purchase form (below hero) — default WooCommerce markup is
   untouched in PHP; this only changes appearance, scoped to this page.
   ===================================================================== */
.tam-gift-card-page .woocommerce div.product form.cart {
  max-width: 640px;
  margin: 48px auto 0;
  padding: 0 20px 60px;
}

.tam-gift-card-page .woocommerce div.product form.cart label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--tam-rose);
  display: block;
  margin-bottom: 8px;
}

.tam-gift-card-page .woocommerce div.product form.cart input[type="text"],
.tam-gift-card-page .woocommerce div.product form.cart input[type="email"],
.tam-gift-card-page .woocommerce div.product form.cart textarea,
.tam-gift-card-page .woocommerce div.product form.cart select {
  width: 100%;
  border: 1px solid rgba(26, 26, 26, 0.15);
  background: #fff;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  border-radius: 2px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.tam-gift-card-page .woocommerce div.product form.cart .single_add_to_cart_button {
  background: var(--tam-rose);
  border-color: var(--tam-rose);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.tam-gift-card-page .woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: #a24d68;
}
.tam-gift-card-page .body_wrap .page_wrap {
  background: #faf7f2;
}
.tam-gift-card-page .tam-gc-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 170px;
    pointer-events: none;
    background-image: url("gift-card-hero-wave-border.svg");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 2;
}
/* Service Package Gift Card CSS */
.tam-sgc-email-delivery-dates {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  column-gap: 15px;
}
.tam-sgc-email-delivery-dates input.tam-sgc-date-input {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #E7D3C8;
}
/* .single-product.woocommerce div.product.product_cat-gift-card form.cart div.quantity, .woocommerce-page div.product form.cart div.quantity {
    display: none;
} */
/* Gift Card Single Page Grid Style */
/* .woocommerce div.product.product_cat-gift-card,
.woocommerce div.product.product_cat-gift-card.product_cat-service-package {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
} */
/* .woocommerce div.product.product_cat-gift-card .gift-card-product-description.images.woocommerce-product-gallery {
  width: 100%;
  grid-column: 1 / 2;
}
.woocommerce div.product.product_cat-gift-card div.summary {
  width: 100%;
  grid-column: 2 / 3;
  padding: 0px;
}
.woocommerce.single-product div.product.product_cat-gift-card .related {
  width: 100%;
  grid-column: 1 / -1;
  margin-top: 0px;
} */
.woocommerce div.product.product_cat-gift-card,
.woocommerce div.product.product_cat-gift-card.product_cat-service-package {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.woocommerce div.product.product_cat-gift-card div.summary {
  width: 100%;
  grid-column: 1 / -1;
  padding: 0px;
  order: 2;
}
.woocommerce div.product.product_cat-gift-card .woocommerce-tabs.wc-tabs-wrapper {
  grid-column: 1 / -1;
  order: 1;
}
.woocommerce.single-product div.product.product_cat-gift-card .related {
  width: 100%;
  grid-column: 1 / -1;
  margin-top: 0px;
  order: 3;
}
.woocommerce div#pwgc-purchase-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.woocommerce div.product.product_cat-gift-card button.single_add_to_cart_button.button.alt {
  float: right;
}
/** Date CSS */
/* Main Container - The outer wrapper */
.woocommerce .pika-single {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Calendar Header (Month/Year and Nav) */
.woocommerce .pika-title {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.woocommerce .pika-label {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  border: 1px solid #cdcdcd;
  padding: 5px 8px;
  margin: 5px;
  order: 2;
}

/* Navigation Buttons (Prev/Next) */
.woocommerce .pika-prev {
  order: 1;
}
.woocommerce .pika-next {
  order: 3;
}
.woocommerce .pika-prev, 
.woocommerce .pika-next {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.woocommerce .pika-prev:hover, .pika-next:hover {
  opacity: 1;
}

/* Table Header (Days of the week) */
.woocommerce .pika-table th {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  padding: 5px 0;
}
.woocommerce .pika-table .pika-row td:not(.is-selected) button.pika-button.pika-day {
  background: #efeaea;
  color: #555;
}
/* Individual Days */
.woocommerce .pika-button {
  background: #f8f9fa;
  color: #444;
  border-radius: 4px;
  text-align: center;
  transition: all 0.2s ease;
}

/* Hover Effect on Days */
.woocommerce .pika-button:hover {
  background: #e9ecef;
  color: #000;
}

/* Selected Day */
.woocommerce .is-selected .pika-button {
  background: #ba4073; /* Change this to your brand color */
  color: #fff;
  box-shadow: none;
}

/* Today's Highlight */
.woocommerce .is-today .pika-button {
  color: #fff;
  font-weight: bold;
}

/* Disabled Days */
.woocommerce .is-disabled .pika-button {
  opacity: 0.3;
  cursor: default;
  background: transparent;
}