/* Public menu styling (shortcodes) */

/* Wrapper(s) */
.aem-public-menus{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

.aem-public-menu{
  background: #fff;
  border-radius: 16px;
  padding: 50px;
  margin: 0 auto;
	width:85%;

  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 10px 28px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

/* alignment helpers */
.aem-align-left{ text-align: left; }
.aem-align-center{ text-align: center; }
.aem-align-right{ text-align: right; }

/* =========================================================
   HEADER (title + PDF)
   - Center title nicely even when PDF button exists
   - On mobile: stack vertically
   ========================================================= */

.aem-public-menu-header{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.aem-public-menu-title{
  grid-column: 2;
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.aem-public-menu-pdf{
  grid-column: 1;
  justify-self: start;
  display: flex;
  justify-content: flex-start;
}

.aem-public-menu-category-desc {
	font-size: 11pt;
	color:#666;
	margin: 2pt 0 10pt 0;
	text-align: center !important;
}

/* When the header is explicitly left/right aligned, use flex */
.aem-public-menu-header.aem-align-left,
.aem-public-menu-header.aem-align-right{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

/* Description */
.aem-public-menu-description{
  margin: 8px 0 16px 0;
  color: rgba(0,0,0,0.70);
  max-width: 70ch;
}
.aem-public-menu-description.aem-align-center{
  margin-left: auto;
  margin-right: auto;
}
.aem-public-menu-description p{
  margin: 0.45em 0;
}

.aem-public-menu-body{
  margin-top: 10px;
}

/* =========================================================
   PDF button (pill style)
   ========================================================= */

.aem-public-menu-pdf a {
	color: white;
}

.aem-public-menu-pdf-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(12, 63, 96, 0.95);

  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
  text-decoration: none;

  font-weight: 750;
  font-size: 0.95rem;
  line-height: 1;

  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.aem-public-menu-pdf-link::before{
  content: "";
		color: white;
  width: 16px;
  height: 16px;
  display: inline-block;
  background: currentColor;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M6 2h5l5 5v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm5 1.5V7h3.5L11 3.5ZM7 11h6v1.5H7V11Zm0 3h6v1.5H7V14Zm0-6h6v1.5H7V8Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M6 2h5l5 5v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm5 1.5V7h3.5L11 3.5ZM7 11h6v1.5H7V11Zm0 3h6v1.5H7V14Zm0-6h6v1.5H7V8Z'/%3E%3C/svg%3E") no-repeat center / contain;

  opacity: 0.88;
}

.aem-public-menu-pdf-link:hover{
  border-color: rgba(0,0,0,0.24);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.aem-public-menu-pdf-link:active{
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}

/* =========================================================
   LOGO + TEXT + SEPARATOR
   ========================================================= */

.aem-public-menu-logo{
  margin: 12px 0 18px;
}

.aem-public-menu-logo img{
  display: inline-block;
  max-width: min(280px, 80vw);
  width: auto;
  height: auto;
}

.aem-public-menu-text{
  margin: 12px 0;
  color: rgba(0,0,0,0.82);
}

.aem-public-menu-text p{
  margin: 0.5em 0;
}

/* Pagebreak: spacer only (no visible line) */
.aem-public-menu-sep{
  border: 0;
  height: 18px;     /* adjust: 10–30px seems good / safe */
  margin: 18px 0;   /* keeps rhythm between blocks */
  background: transparent;
}


/* =========================================================
   CATEGORIES + DISHES
   ========================================================= */

.aem-public-menu-category{
  margin-top: 22px;
}

.aem-public-menu-category-title{
  margin: 0 0 12px 0;
  padding-bottom: 8px;

  border-bottom: 1px solid rgba(0,0,0,0.12);

  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.aem-public-menu-dishes{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aem-public-menu-dish{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;

  padding: 10px 10px;
  border-radius: 12px;
}

.aem-public-menu-dish:hover{
  background: rgba(0,0,0,0.03);
}

.aem-public-menu-dish-left{
  min-width: 0;
}

.aem-public-menu-dish-title{
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.aem-public-menu-dish-desc{
  margin-top: 4px;
  color: rgba(0,0,0,0.70);
  line-height: 1.35;
}

.aem-public-menu-dish-right{
  text-align: right;
  white-space: nowrap;
  padding-left: 6px;
}

.aem-public-menu-dish-price{
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* =========================================================
   COLLECTION LAYOUTS (accordion + select)
   ========================================================= */

.aem-public-menus-accordion{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aem-public-menus-acc-item{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;

  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 8px 22px rgba(0,0,0,0.06);
}

.aem-public-menus-acc-title{
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  letter-spacing: -0.01em;
}

.aem-public-menus-acc-title::-webkit-details-marker{
  display:none;
}

.aem-public-menus-acc-body{
  margin-top: 12px;
}

.aem-public-menus-select{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0 16px;
}

.aem-public-menus-select select{
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
}

.aem-public-menus-select button{
  padding: 8px 12px;
  border-radius: 10px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px){
  .aem-public-menus{
    max-width: 100%;
    padding: 12px;
  }

	.aem-public-menu-sep{
    height: 12px;
    margin: 12px 0;
  }
	
  .aem-public-menu{
    padding: 16px;
    border-radius: 14px;
  }

  .aem-public-menu-header{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .aem-public-menu-title{
    font-size: 1.6rem;
  }

  .aem-public-menu-pdf{
    justify-content: stretch;
  }

  .aem-public-menu-pdf-link{
    width: 100%;
    justify-content: center;
  }

  .aem-public-menu-dish{
    padding: 8px 8px;
    gap: 12px;
  }
}
