.saleOff {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(to bottom, #e65c00, #b63e00); /* Stronger gradient */
    color: #fff;
    font-weight: bold;
    text-transform: none;
    font-size: 14px;
    padding: 7px 12px;
    border-radius: 6px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    text-align: center;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap; /* Prevents wrapping */
    max-width: 110px;
}

/* Add Arrow for Desktop Only */
@media (min-width: 769px) {
    .saleOff::after {
        content: "";
        position: absolute;
        bottom: -6px;
        right: 12px; /* Keeps it aligned */

        border-width: 6px 6px 0 6px;
        border-style: solid;
        border-color: #b63e00 transparent transparent transparent; /* Matches the darker gradient color */
    }
}

/* Add "Just Reduced" for Desktop */
@media (min-width: 769px) {
    .saleOff::before {
        content: "Just Reduced \A"; /* Adds a break before the percentage */
        font-weight: bold;
        white-space: pre; /* Allows line break */
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .saleOff {
        font-size: 12px;
        padding: 5px 10px;
        max-width: 85px;
    }

    .saleOff::before {
        content: "Reduced \A"; /* Adds a break before the percentage */
        font-weight: bold;
        white-space: pre;
    }

    /* Remove the arrow on mobile */
    .saleOff::after {
        display: none;
    }
}

/* Universal onHold styling - works in grids, product pages, and all contexts */
.onHold {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(to bottom, #f39c12, #e67e22); /* Orange gradient to match your image */
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 10;
}

/* Product page specific positioning - slightly more spacing */
#product .onHold {
    top: 12px;
    right: 12px;
}

/* Card/grid positioning - consistent top-right */
.card.specialThumb .onHold {
    top: 10px;
    right: 10px;
}

@media (min-width: 769px) {
    .onHold {
        font-size: 18px;
        padding: 8px 14px;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .onHold {
        font-size: 12px;
        padding: 4px 8px;
    }
}



/* Add or modify the CSS for the buttons */
.btn.btn-success, .btn.btn-front {
    /* min-height: 60px; /* Ensures a minimum height for the button */
    padding: 10px 15px; /* Adds padding for better spacing */
    white-space: normal; /* Allows text to wrap if necessary */
    text-align: center; /* Centers the text */
    word-wrap: break-word; /* Prevents text overflow */
    transition: all 0.2s ease-in-out; /* Smooth transition for height changes */
}



/* popup overlay */
.newsletter-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  /* hide by default */
  .hidden {
    display: none;
  }
  
  /* modal box */
  .newsletter-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
  }
  
  /* the image */
  .newsletter-image {
    border-radius: 15px;
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1rem;
  }
    
  /* form inputs */
  #newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0 1rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
  }
  
  #newsletter-form button {
    padding: 0.5rem 1rem;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 0.25rem;
    cursor: pointer;
  }
  #newsletter-form button:hover {
    background: #0056b3;
  }
  
  /* badge-style footer */
  .newsletter-footer {
    font-size: 0.95rem;
    background: #fafcff;    /* light blue background */
    color: #0f2842;         /* matching blue text */
    border: 1px solid #007bff;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
  }
  
  /* ensure other p’s inside .newsletter-content stay normal */
  .newsletter-content > p:not(.newsletter-footer) {
    margin: 0.5rem 0 1rem;
    font-size: 1.4rem;
  }
  

  .close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    
    /* sizing */
    width: 4rem;
    height: 4rem;
    
    /* circle */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    
    /* center the “×” */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* make the × big enough */
    font-size: 3.25rem;
    line-height: 1;
    
    /* slight shadow to lift it */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    
    cursor: pointer;
    z-index: 1001;
  }
  .close-btn:hover {
    background: #f5f5f5;
  }
  

  /* Put this AFTER the Termly script or in your main stylesheet */

/*  make the grey placeholder a positioning context */
#acuity-placeholder{position:relative;}

/*  nudge Termly's "Enable this content?" card to the top-center */
#acuity-placeholder [data-termly-blocked-content]{
    top: 12px !important;          /* distance from the top of the grey area   */
    left: 50%  !important;
    transform: translateX(-50%) !important; /* kill the default -50%/-50% combo */
}

/* Recently Sold cards (What's New pages) */
.sold .soldCard { opacity: 0.92; }
.sold .thumb-wrap { position: relative; }
.soldThumb { filter: grayscale(100%); opacity: 0.72; }
.soldBadge {
    position: absolute; top: 8px; left: 8px;
    background: linear-gradient(to bottom, #9aa0a6, #6c757d);
    color: #fff; font-weight: bold; font-size: 13px; letter-spacing: 1px;
    text-transform: uppercase; padding: 6px 10px; border-radius: 6px;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.2); line-height: 1.2; white-space: nowrap; z-index: 10;
}
.soldText {
    display: block; text-align: center; color: #6c757d;
    font-weight: bold; letter-spacing: 1px; text-transform: uppercase;
}
@media (min-width: 769px) {
    .soldBadge { font-size: 16px; padding: 8px 14px; border-radius: 8px; }
}
