/* @group @variables */

[class*="m-sale-list"] {
--sale-list-gap: 1.5rem;
}

@media all and (min-width: 48em) {

[class*="m-sale-list"] {
--sale-list-grid-template-columns: repeat(2, 1fr);
}

}

/* @end @variables */

/* @group @m-sale-list */

[class*="m-sale-list"] {
display: grid;
grid-template-columns: var(--sale-list-grid-template-columns);
grid-template-rows: var(--sale-list-grid-template-rows);
gap: var(--sale-list-gap);
}

/* @end @m-sale-list */

/* -------------------------------------------------------- */

/* @group @m-sale-detail */

[class*="m-sale-detail"] {
/*display: grid;
grid-template-rows: auto 1fr auto auto;*/
background-color: hsl(0deg 0% 100%);
}

/* @end @m-sale-detail */

/* @group @a-sale-detail-header */

[class*="a-sale-detail-header"] {
display: grid;
grid-auto-flow: row;
gap: .75rem;
padding: .75rem;
}

[class*="a-sale-detail-header"] :where(h3, h4, p, dl) {
margin-bottom: 0;
}

[class*="a-sale-detail-header"] h3,
[class*="a-sale-detail-header"] h4 {
font-size: 1rem;
line-height: 1.5;
}

/* @end @a-sale-detail-header */

/* @group @a-sale-detail-school-info */

[class*="a-sale-detail-school-info"] {
display: grid;
align-items: center;
grid-template-columns: auto 1fr;
gap: .5rem;
}

[class*="a-sale-detail-school-info"] dt {
box-sizing: border-box;
display: grid;
justify-content: center;
align-items: center;
height: 1.5rem;
padding: 0 .375rem;
border: 1px solid currentColor;
border-radius: 99rem;
color: hsl(198deg 59% 65%);
font-size: .625rem;
}

[class*="a-sale-detail-school-info"] dd {
font-size: .75rem;
}

/* @end @a-sale-detail-school-info */

/* @group @a-sale-detail-footer */

[class*="a-sale-detail-footer"] {
padding: 1.5rem calc((100% - 15rem) / 2);
border: solid hsl(220deg 20% 85%);
border-width: 1px 0 0;
}

/* @end @a-sale-detail-footer */

/* @group @variables */

[class*="a-sale-detail-contents"] {
--sale-contents-max-height: 10rem;
--sale-contents-background-image: linear-gradient(180deg, hsl(0deg 0% 100% / 0%) 0%, hsl(0deg 0% 100%) 100%);
}
input:checked ~ [class*="a-sale-detail-contents"] {
--sale-contents-max-height: 100rem;
--sale-contents-background-image: transparent;
}

[class*="a-capitolo-button"] {
--sale-contents-button-background-color: hsl(0deg 0% 100%);
--sale-contents-button-color: hsl(0deg 0% 20%);
--sale-contents-button-background-action-color: hsl(0deg 0% 20%);
--sale-contents-button-action-color: hsl(0deg 0% 100%);
}

/* @end @variables */

/* @group @a-sale-detail-contents */

[class*="a-sale-detail-contents"] {
box-sizing: border-box;
position: relative;
overflow: clip;
max-height: var(--sale-contents-max-height);
padding: .75rem;
border: solid hsl(220deg 20% 85%);
border-width: 1px 0 0;
transition: var(--max-height-transition); 
}

[class*="a-sale-detail-contents"]:before {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 4.5rem;
background-image: var(--sale-contents-background-image);
background-size: 100$rem 100%;
background-position: bottom center;
background-repeat: repeat-x;
pointer-events: none;
}

/* @end @a-sale-detail-contents */

/* @group @a-sale-detail-contents */

[class*="a-sale-detail-contents"] {
padding: .75rem;
font-size: .875rem;
line-height: 1.71428571;
}

/* @end @a-sale-detail-contents */

/* @group @a-sale-toggle */
input:checked ~ [class*="a-sale-toggle"] {
display: none;
}

[class*="a-sale-toggle"] label {
display: grid;
justify-content: center;
align-items: center;
grid-auto-flow: column;
gap: .375rem;
padding: .75rem 0;
font-size: .75rem;
text-align: center;
cursor: pointer;
transition: var(--link-proto-transition);
}

[class*="a-sale-toggle"] label:hover,
[class*="a-sale-toggle"] label:focus {
color: hsl(0deg 0% 33%);
}

[class*="a-sale-toggle"] svg {
width: 1rem;
height: auto;
fill: currentColor;
}

/* @end @a-sale-toggle */

/* @group @defalut */
[color="blue"] {
color: hsl(220deg 85% 65%);
}
[color="red"] {
color: hsl(0deg 85% 65%);
}

/* @end@defalut */
