/* Our Cookie Party — Round 7, Update 9: visual icon consistency only.
   Keep the approved thin Guest Emails chevron and the existing navigation
   direction conventions. No JavaScript or form behavior changes. */

/* 1. The original multiplication-sign glyph has a variable text baseline on
   iOS. Render the X as a 22px vector centered within the existing button.
   Preserve the semantic aria-label and the parent button's positioning. */
:is(.ocp6g-close, .ocp6g2-detail-close, .ocp6g3-share-close,
    .host-scan-close, .host-qr-close, .party-qr-close,
    .guest-photo-image-x, .ocp-award-row-actions button[data-award-delete]) {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  padding:0 !important;
  font-size:0 !important;
  line-height:0 !important;
  text-indent:0 !important;
  text-align:center !important;
}
/* Draw the X in CSS instead of a data: SVG image. The site's strict
   Content-Security-Policy correctly blocks data: images, making the icon
   disappear. Two overlapping CSS lines remain visible without relaxing CSP. */
:is(.ocp6g-close, .ocp6g2-detail-close, .ocp6g3-share-close,
    .host-scan-close, .host-qr-close, .party-qr-close,
    .guest-photo-image-x, .ocp-award-row-actions button[data-award-delete])::before,
:is(.ocp6g-close, .ocp6g2-detail-close, .ocp6g3-share-close,
    .host-scan-close, .host-qr-close, .party-qr-close,
    .guest-photo-image-x, .ocp-award-row-actions button[data-award-delete])::after {
  content:"";
  display:block;
  flex:0 0 22px;
  width:22px;
  height:2.5px;
  border-radius:3px;
  background:currentColor;
}
:is(.ocp6g-close, .ocp6g2-detail-close, .ocp6g3-share-close,
    .host-scan-close, .host-qr-close, .party-qr-close,
    .guest-photo-image-x, .ocp-award-row-actions button[data-award-delete])::before {
  margin-right:-22px;
  transform:rotate(45deg);
}
:is(.ocp6g-close, .ocp6g2-detail-close, .ocp6g3-share-close,
    .host-scan-close, .host-qr-close, .party-qr-close,
    .guest-photo-image-x, .ocp-award-row-actions button[data-award-delete])::after {
  transform:rotate(-45deg);
}
/* Same tap target and icon scale on check-in sheets, guest lists and share dialogs. */
.ocp6g2-drawer-heading .ocp6g-close,
.ocp6g2-detail-close, .ocp6g3-share-close,
.host-scan-close, .host-qr-close, .party-qr-close {
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  flex:0 0 44px;
}
.ocp6g-close {border-radius:50%;}
.ocp6g2-drawer-heading .ocp6g-close {margin:0;}
/* Host/helper camera controls already have a dark evergreen background. */
.host-qr-close {border:1px solid rgba(255,255,255,.6);background-color:transparent;color:white;border-radius:50%;cursor:pointer;}
/* Give the guest camera stop button the same reserved space and border. */
.party-qr-close {border:1px solid #d9ccba;border-radius:50%;background-color:#faf7ef;color:#173f35;cursor:pointer;}

/* 2. Thin disclosure chevrons: the previously approved Guest Emails appearance
   is the reference. Keep native details behavior and focus styles intact. */
.ocp7b2-panel>summary::after,
.ocp7d-more>summary::after {
  content:"";
  display:block;
  width:9px;
  height:9px;
  box-sizing:border-box;
  font-size:0;
  border:0;
  border-right:1.5px solid #173f35;
  border-bottom:1.5px solid #173f35;
  background:transparent;
  transform:rotate(45deg);
}
.ocp7b2-panel>summary::after {right:21px;top:22px;}
.ocp7b2-panel[open]>summary::after {transform:translateY(5px) rotate(225deg);}
.ocp7d-more>summary::after {display:inline-block;margin:0 4px 4px 8px;vertical-align:middle;}
.ocp7d-more[open]>summary::after {transform:translateY(5px) rotate(225deg);}
/* Do not override the more specific, already-correct Guest Emails disclosure. */
#guest-emails .ocp7d-more>summary::after {width:9px;height:9px;}
/* The My Parties history disclosure previously used a font-drawn glyph. */
.ocp-past-chevron {
  display:block;
  box-sizing:border-box;
  flex:0 0 9px;
  width:9px;
  height:9px;
  margin:0 6px 5px auto;
  border-right:1.5px solid #173f35;
  border-bottom:1.5px solid #173f35;
  font-size:0 !important;
  line-height:0;
  transform:rotate(45deg);
}
.ocp-past-parties[open] .ocp-past-chevron {transform:translateY(5px) rotate(225deg);}
/* Recently added host disclosures use the same size and stroke. */
.ocp7r8-more-options>summary::after,
.ocp7r6-lineup>summary::after,
.ocp7r6-lineup-cookie>summary::after,
.host-5b-disclosure>summary::after,
.host-advanced>summary::after {width:9px;height:9px;border-right-width:1.5px;border-bottom-width:1.5px;}
/* Preserve established external-link arrow (↗) and forward/back (→/←)
   meanings. Those are actions, not expand/collapse controls. */
@media(prefers-reduced-motion:reduce){
  .ocp-past-chevron,.ocp7b2-panel>summary::after,.ocp7d-more>summary::after{transition:none;}
}
