.eamcn-detalhes{border:0;border-bottom:1px solid var(--eamcn-border-color,#ddd);margin:0 0 12px;padding:0;background:transparent}
.eamcn-detalhes>summary{display:flex;align-items:center;gap:var(--eamcn-icon-gap,18px);padding:var(--eamcn-padding-y,16px) 0;cursor:pointer;list-style:none;user-select:none}
.eamcn-detalhes>summary::-webkit-details-marker{display:none}
.eamcn-detalhes>summary::marker{content:''}
.eamcn-detalhes-heading{margin:0!important;padding:0!important;color:var(--eamcn-title-color,var(--theme-palette-color-1,currentColor))!important;font-weight:var(--eamcn-title-weight,700)!important;font-size:var(--eamcn-title-size,inherit);line-height:1.35;text-transform:none}
.eamcn-detalhes-icon{display:inline-block;flex:0 0 12px;width:12px;height:12px;position:relative;transition:transform .25s ease}
.eamcn-detalhes.icon-chevron .eamcn-detalhes-icon::before{content:'';position:absolute;left:2px;top:2px;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.eamcn-detalhes.icon-chevron[open] .eamcn-detalhes-icon{transform:rotate(90deg)}
.eamcn-detalhes.icon-plus .eamcn-detalhes-icon::before,.eamcn-detalhes.icon-plus .eamcn-detalhes-icon::after{content:'';position:absolute;background:currentColor;left:0;top:5px;width:12px;height:2px}
.eamcn-detalhes.icon-plus .eamcn-detalhes-icon::after{transform:rotate(90deg);transition:transform .25s ease}
.eamcn-detalhes.icon-plus[open] .eamcn-detalhes-icon::after{transform:rotate(0)}
.eamcn-detalhes-content{padding:0 0 18px calc(12px + var(--eamcn-icon-gap,18px));font-size:var(--eamcn-content-size,16px);line-height:1.55}
.eamcn-detalhes-content>*{font-size:inherit}
.eamcn-detalhes-content>*:first-child{margin-top:0!important}
.eamcn-detalhes-content>*:last-child{margin-bottom:0!important}
.eamcn-detalhes-content>*+*{margin-block-start:8px}
.eamcn-detalhes-title-input{display:block;width:100%;font:inherit;font-weight:inherit;color:inherit;background:transparent;border:1px dashed transparent;padding:0;outline-offset:4px}
.eamcn-detalhes-title-input:focus{border-color:#aaa;outline:1px solid #aaa}
.eamcn-detalhes-editor .eamcn-detalhes-content{min-height:50px}
@media(prefers-reduced-motion:reduce){.eamcn-detalhes-icon,.eamcn-detalhes.icon-plus .eamcn-detalhes-icon::after{transition:none}}
/* Evitar que o campo de título seja cortado no editor Gutenberg. */
.eamcn-detalhes>summary{min-width:0}
.eamcn-detalhes-heading{min-width:0;flex:1 1 auto;overflow-wrap:anywhere;white-space:normal}
.eamcn-detalhes-title-input{box-sizing:border-box;min-width:0;max-width:100%;height:auto;line-height:1.35;white-space:normal}
/* Neutralizar os grandes espaçamentos do editor entre blocos internos. */
.eamcn-detalhes-content{--wp--style--block-gap:8px;--theme-content-spacing:8px}
.eamcn-detalhes-content>*,.eamcn-detalhes-content>.block-editor-inner-blocks>.block-editor-block-list__layout>*{margin-block-start:0!important;margin-block-end:8px!important}
.eamcn-detalhes-content>*+*,.eamcn-detalhes-content>.block-editor-inner-blocks>.block-editor-block-list__layout>*+*{margin-block-start:8px!important;margin-top:8px!important}
.eamcn-detalhes-content>.block-editor-inner-blocks>.block-editor-block-list__layout>*:last-child{margin-bottom:0!important}
.eamcn-detalhes-editor .eamcn-detalhes-content .block-editor-block-list__layout.is-layout-flow>*+*,.eamcn-detalhes-editor .eamcn-detalhes-content .block-editor-block-list__layout.is-layout-constrained>*+*{margin-block-start:8px!important;margin-top:8px!important}

/* Parágrafos vazios intencionais funcionam como linha em branco. */
.eamcn-detalhes-content p:empty,
.eamcn-detalhes-content p:has(> br:only-child){min-height:1.55em!important;display:block!important}
.eamcn-detalhes-content p:empty::before{content:"\00a0";white-space:pre}
.eamcn-detalhes-content p:has(> br:only-child) br{display:block}

.eamcn-detalhes-editor .eamcn-detalhes-content p:empty{min-height:1.55em!important}

/* Campo RichText: permite selecionar e formatar parte do título. */
.eamcn-detalhes-title-richtext{flex:1 1 auto;min-width:0;outline-offset:3px;cursor:text}
.eamcn-detalhes-title-richtext[contenteditable="true"]{user-select:text;-webkit-user-select:text}
