/************************************************************************************************/
/* AT Price List Widget */
/************************************************************************************************/

.at-price-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr; /* Elementor overrides this per breakpoint */
    align-items: start; /* Items align to top of row — not stretched to tallest */
}

.at-price-list__item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 0 0 15px 0; /* No top padding — ensures all items in the same row start at the same height */
    border-bottom: 1px solid #dddddd;
}

.at-price-list__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/************************************************************************************************/
/* Image */
/************************************************************************************************/

.at-price-list__image {
    flex-shrink: 0;
}

.at-price-list__image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/************************************************************************************************/
/* Image position variants */
/************************************************************************************************/

/* Right — content first, image last */
.at-price-list__item--img-right {
    flex-direction: row;
}

/* Above — stack vertically, image on top */
.at-price-list__item--img-above {
    flex-direction: column;
}

.at-price-list__item--img-above .at-price-list__image,
.at-price-list__item--img-above .at-price-list__image img {
    width: 100%;
    height: auto;
}

/* Below — stack vertically, image on bottom */
.at-price-list__item--img-below {
    flex-direction: column;
}

.at-price-list__item--img-below .at-price-list__image,
.at-price-list__item--img-below .at-price-list__image img {
    width: 100%;
    height: auto;
}

/* Beside description — title full-width, then description + image side by side */
.at-price-list__item--img-beside-desc {
    display: block; /* override flex — content fills full width */
}

.at-price-list__item--img-beside-desc .at-price-list__content {
    width: 100%;
}

.at-price-list__body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    margin-top: 6px;
}

.at-price-list__body .at-price-list__description {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.at-price-list__body .at-price-list__image {
    flex-shrink: 0;
}

.at-price-list__body .at-price-list__image img {
    width: 100%;
    height: auto;
    display: block;
}

/************************************************************************************************/
/* Content */
/************************************************************************************************/

.at-price-list__content {
    flex: 1;
    min-width: 0;
}

.at-price-list__header {
    display: flex;
    align-items: baseline;
    width: 100%;
}

.at-price-list__title {
    flex-shrink: 0;
    font-weight: 600;
}

.at-price-list__sep {
    flex: 1;
    border-bottom: 2px dotted #aaaaaa;
    margin: 0 8px;
    align-self: flex-end;
    margin-bottom: 5px;
    min-width: 10px;
}

.at-price-list__price {
    flex-shrink: 0;
    font-weight: 700;
    white-space: nowrap;
}

.at-price-list__description {
    margin: 6px 0 0;
    line-height: 1.5;
}

/************************************************************************************************/
/* Dietary Badges */
/************************************************************************************************/

.at-price-list__badges {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0 4px;
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
}

.at-price-list__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: default;
    color: #fff;
}

.at-badge--v  { background-color: #4CAF50; }
.at-badge--ve { background-color: #2E7D32; }
.at-badge--gf { background-color: #F59E0B; }
.at-badge--df { background-color: #3B82F6; }
.at-badge--n  { background-color: #F97316; }
.at-badge--s  { background-color: #EF4444; }
.at-badge--h  { background-color: #14B8A6; }
.at-badge--k  { background-color: #8B5CF6; }

/************************************************************************************************/
/* Legend */
/************************************************************************************************/

.at-price-list__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.at-price-list__legend--above {
    margin-bottom: 12px;
}

.at-price-list__legend--below {
    margin-top: 12px;
}

.at-price-list__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}
