<div class="sidebar_title">
    <h2>{{localize "PF2E.ArmorClassLabel"}}</h2>
    <button type="button" class="modifiers_button hover" data-tooltip-content="#{{options.id}}-armor-modifiers">
        <i class="fas fa-eye"></i> {{localize "PF2E.ModifiersTitle"}}
    </button>
</div>
<div class="armor-class">
    <div class="shield ac">
        <div class="data-value">
            <h2>{{data.attributes.ac.value}}</h2>
        </div>
        <span class="sidebar_label">{{localize "PF2E.ArmorClassShortLabel"}}</span>
    </div>
    <div class="shield hp">
        <div class="data-value">
            <input id="{{@root.options.id}}-shield-hp" type="number" placeholder="0" name="system.attributes.shield.hp.value" value="{{data.attributes.shield.hp.value}}" title="{{localize "PF2E.ShieldCurrentTitle"}}" />
        </div>
        <label for="{{@root.options.id}}-shield-hp" class="sidebar_label">{{localize "PF2E.ShieldCurrentLabel"}}</label>
    </div>
    <div class="shield-stats">
        <ol>
            <li>
                <div class="shield-label">
                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.9 14">
                        <path
                            d="M5.9 13.5c-.9-.4-1.9-1-2.7-1.6-.7-.5-1.3-1.1-1.9-1.7C.8 9.6.5 8.9.5 8.1v-6L6 .5l5.4 1.6v6c0 .7-.3 1.5-.8 2.1-.6.7-1.2 1.3-1.9 1.7-.9.6-1.8 1.2-2.8 1.6z"
                            fill="#fff"
                        />
                        <text x="6" y="8.5" font-family="Verdana" text-anchor="middle" font-size="5" fill="black">{{localize "PF2E.ArmorClassShortLabel"}}</text>
                    </svg>
                </div>
                <span class="data-value" title="{{localize "PF2E.ShieldACBonusTitle"}}">
                    <input type="number" placeholder="0" value="{{data.attributes.shield.ac}}" title="{{localize "PF2E.ShieldACBonusTitle"}}" readonly="readonly" />
                </span>
            </li>
            <li>
                <div class="shield-label">
                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.9 14">
                        <path
                            d="M5.9 13.5c-.9-.4-1.9-1-2.7-1.6-.7-.5-1.3-1.1-1.9-1.7C.8 9.6.5 8.9.5 8.1v-6L6 .5l5.4 1.6v6c0 .7-.3 1.5-.8 2.1-.6.7-1.2 1.3-1.9 1.7-.9.6-1.8 1.2-2.8 1.6z"
                            fill="#fff"
                        />
                        <text x="6" y="8.5" font-family="Verdana" text-anchor="middle" font-size="5" fill="black">{{localize "PF2E.ShieldHardnessShortLabel"}}</text>
                    </svg>
                </div>
                <span class="data-value" title="{{localize "PF2E.ShieldHardnessTitle"}}">
                    <input type="number" placeholder="0" value="{{data.attributes.shield.hardness}}" readonly="readonly" />
                </span>
            </li>
            <li>
                <div class="shield-label">
                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.9 14">
                        <path
                            d="M5.9 13.5c-.9-.4-1.9-1-2.7-1.6-.7-.5-1.3-1.1-1.9-1.7C.8 9.6.5 8.9.5 8.1v-6L6 .5l5.4 1.6v6c0 .7-.3 1.5-.8 2.1-.6.7-1.2 1.3-1.9 1.7-.9.6-1.8 1.2-2.8 1.6z"
                            fill="#fff"
                        />
                        <text x="6" y="8.5" font-family="Verdana" text-anchor="middle" font-size="5" fill="black">{{localize "PF2E.ShieldBTShortLabel"}}</text>
                    </svg>
                </div>
                <span class="data-value" title="{{localize "PF2E.ShieldBTTitle"}}">
                    <input type="number" value="{{data.attributes.shield.brokenThreshold}}" readonly="readonly" />
                </span>
            </li>
        </ol>
    </div>
    <div class="armor_footer">
        <div class="shield-max">
            <label for="{{@root.options.id}}-shield-max" class="sidebar_label" title="{{localize "PF2E.ShieldMaxTitle"}}">
                {{localize "PF2E.ShieldLabel"}}<br />{{localize "PF2E.MaxHitPointsShortLabel"}}
            </label>
            <span class="data-value" title="{{localize "PF2E.ShieldMaxTitle"}}">
                <input id="{{@root.options.id}}-shield-max" type="number" placeholder="0" value="{{data.attributes.shield.hp.max}}" readonly="readonly" />
            </span>
        </div>
        <div class="shield-status">
            {{#if data.attributes.shield.destroyed}}
                <span class="sidebar_label">{{localize "PF2E.Item.Physical.Destroyed"}}</span>
                <i class="far fa-times-circle"></i>
            {{else}}
                <span class="sidebar_label">{{localize "PF2E.Item.Physical.Broken"}}</span>
                {{#if data.attributes.shield.broken}}<i class="far fa-times-circle"></i>{{else}}<i class="far fa-circle"></i>{{/if}}
            {{/if}}
        </div>
    </div>
</div>
{{#with data.attributes.ac}}
    {{> "systems/pf2e/templates/actors/character/partials/modifiers-tooltip.hbs" title="PF2E.ArmorClassLabel"}}
{{/with}}
