/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* #region ROOT */
:root {
  --primary: #b8860b; /* gold - dark */
  --secondary: #ffd700; /* gold - light */
  --font-size-base: 1rem;
  --wagreen: #25D366;
  --wadarkgreen: #075e54;
  --walightgreen: #dcf8c6;
  --chotublack: #111;
  --lightblack: #555;
  --lightgrey: #fafafa;
}

body {
  max-width: 480px;
  margin: 0 auto;
}
/* #endregion */

/* #region CTA Buttons */
.cta-button, .cta-button-outline{
  padding: 0.25rem 1rem;
  border-radius: 99px;
  font-weight: thin;
  font-size: 1rem;
  height: 2rem;
  text-decoration: none !important;
  box-shadow: 0 0.05rem 0.05rem rgba(0, 0, 0, 0.1);
  width: fit-content;
  align-items: center;   /* vertical center */
  display: flex;
}

.cta-button {
  background-color: var(--primary);
  color: white !important;
}

.cta-button-outline {
    background-color: white;
    color: var(--primary);
    border: 0.5px solid var(--primary);
}

.cta-button:active,
.cta-button-outline:active  
{
  background-color: var(--secondary) !important;
  color: white !important;
  transform: scale(0.95);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}
/* #endregion */

/* #region FAQ RELATED */

.faq {
  margin: 1rem 0;
}

.faq-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 1rem;
  background-color: white;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  font-size: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0.75rem 1rem;
  background-color: white;
  border-top: 1px solid #eee;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* #endregion */

/* #region HEADINGS */

h1{
    font-size: 1.5rem !important;
}

h2{
    font-size: 1.25rem !important;
}

h3{
    font-size: 1rem !important;
}

label{
  display:block; 
  margin-bottom:.5rem;
}
/* #endregion */

/* #region DIVs */

.fixedBottom {
  height: 12% !important;
  margin-bottom: 0;
  z-index: 999;
  position: fixed; 
  bottom: 0; 
  left: 0; 
  right: 0;
  width: 100%;
  display: grid;
  text-align: center;
  align-items: center;
  justify-content:center; 
  background-color: black;
  color: var(--primary);
  padding: 1rem 0;
  box-shadow: 0 -0.05rem 0.05rem rgba(0, 0, 0, 0.1);
}

.fixedBottom .cta-button {
  height: 3rem;
}

.price{
    color: var(--chotublack);
    font-size:2rem;
}

sup{
    top: -0.25em !important;
}


.vertical-wrapper {
  display: flex;
  flex-direction: column; 
  gap: 1.5rem;            
}

/** hide next/previous post navigation */
.navigation.post-navigation {
  display: none;
}

.wpc-filters-open-widget{
  height: 2rem !important;
  background-color: var(--primary) !important;
  color: white !important;
  border-radius: 0.5rem !important;
  border: none !important;
  margin: 0 auto;
}
/* #endregion */

/* #region disabled */
:is(input, select, textarea, button):disabled {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}
/* #endregion */

/* #region SPINNER */
.spinner {
  border: 0.25rem solid #f6f6f6;
  border-top: 0.25rem solid var(--primary);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* #endregion */

/* #region GLOBAL */
a.no-underline {
  text-decoration: none;
}
a.no-underline,
a.no-underline:hover,
a.no-underline:focus,
a.no-underline:active {
  text-decoration: none;
}
/* #endregion */

/* #region shop-template-card */

.shop-card{
  border-radius: 0.5rem;
  padding: 0;
  box-shadow: 0 0.05rem 0.05rem rgba(0, 0, 0, 0.15);
  background-color: white;
  height: auto !important;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.shop-content{
  padding: 0.5rem;
}

.shop-excerpt{
  color: var(--lightblack) !important;
  font-size: small;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-bottom{
  display: flex; 
  flex-direction: row;
  justify-content: space-between;
  color: var(--primary) !important;
}

.shop-thumb {
  aspect-ratio: 40 / 21;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0.5rem 0.5rem 0 0;
}
/* #endregion */

/* #region FORM */

/* Text inputs stacked full width */
#shop-form input[type="text"],
#shop-form input[type="tel"],
#coupon-code {
  display: block;
  width: 100%;
  padding: 0.65rem 0.75rem;
  background-color: white;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#shop-form input::placeholder {
  color: #999;
}

#shop-form input[type="text"]:focus,
#shop-form input[type="tel"]:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
  outline: none;
}

/* Checkbox row */
#shop-form label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 0.5rem;
}

#shop-form input[type="checkbox"] {
  transform: scale(1.3);
  margin-right: 0.5rem;
}

/* Links */
#shop-form a {
  color: #0073aa;
  text-decoration: underline;
  font-weight: 500;
}

#shop-form a:hover {
  text-decoration: none;
}

/* #endregion */

/* #region GRID */

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.term-item a {
  text-decoration: none;
  color: inherit;
}
.term-thumb {
  position: relative;
  padding-top: 52.5%; /* aspect ratio */
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
}
.term-name {
  position: absolute;
  bottom: 2rem;
  width: 100%;
  background: rgb(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-weight: 600;
}

/* #endregion */