/* DZ Portal universal share action — scoped, RTL, no overlays */
.dz-share-slot{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0 8px;position:relative;z-index:1;max-width:100%;box-sizing:border-box}
.dz-share-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #006233;border-radius:12px;background:#006233;color:#fff;font:700 15px/1.4 Tajawal,Arial,sans-serif;padding:11px 18px;min-height:44px;max-width:100%;cursor:pointer;transition:background .18s ease,box-shadow .18s ease;box-sizing:border-box}
.dz-share-button:hover{background:#004d28;box-shadow:0 4px 12px #004d2830}
.dz-share-button:focus-visible,.dz-share-option:focus-visible,.dz-share-close:focus-visible{outline:3px solid #daa520;outline-offset:3px}
.dz-share-button svg,.dz-share-option svg{width:18px;height:18px;flex-shrink:0}
.dz-share-slot.dz-share-in-hero .dz-share-button{background:#fff;color:#006233;border-color:#fff}
.dz-share-slot.dz-share-in-hero .dz-share-button:hover{background:#f2f8f4}
.dz-share-panel[hidden]{display:none!important}
.dz-share-panel{position:fixed;inset:0;z-index:2147483000;background:#0009;display:grid;place-items:center;padding:16px;box-sizing:border-box;direction:rtl}
.dz-share-dialog{background:#fff;color:#24372c;border-radius:16px;padding:20px;width:min(100%,420px);max-height:min(90vh,700px);overflow:auto;box-shadow:0 20px 55px #0003;font:400 16px/1.5 Tajawal,Arial,sans-serif}
.dz-share-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dz-share-dialog h2{font-size:20px;color:#006233;margin:0}
.dz-share-close{border:0;background:#f2f8f4;color:#006233;border-radius:9px;cursor:pointer;min-width:44px;min-height:44px;font-size:24px}
.dz-share-page-title{margin:10px 0;overflow-wrap:anywhere}
.dz-share-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dz-share-option{min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d5e7db;border-radius:10px;background:#f2f8f4;color:#006233;text-decoration:none;font:700 14px Tajawal,Arial,sans-serif;cursor:pointer}
.dz-share-status{font-size:13px;color:#006233;min-height:20px;margin:12px 0 0}
@media(max-width:767px){.dz-share-slot{width:100%;margin:14px 0 8px;justify-content:stretch}.dz-share-button{width:100%;font-size:14px;padding:11px 12px}.dz-share-dialog{padding:16px}}
@media(prefers-reduced-motion:reduce){.dz-share-button{transition:none}}

/* Optional sharing explanation; original share button appearance is unchanged. */
.dz-share-help{appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #b9d3c2;border-radius:50%;background:#f2f8f4;color:#006233;cursor:pointer;box-sizing:border-box}
.dz-share-help svg{width:21px;height:21px}
.dz-share-help:hover,.dz-share-help[aria-expanded="true"]{background:#e0f0e6}
.dz-share-help:focus-visible{outline:3px solid #daa520;outline-offset:3px}
.dz-share-hint[hidden]{display:none!important}
.dz-share-hint{position:absolute;bottom:calc(100% + 10px);right:0;z-index:20;width:max-content;max-width:min(310px,calc(100vw - 32px));padding:12px 14px;border:1px solid #d5e7db;border-radius:12px;background:#fff;color:#24372c;box-shadow:0 8px 24px #0002;font:500 14px/1.65 Tajawal,Arial,sans-serif;white-space:normal;text-align:right;direction:rtl;box-sizing:border-box}
.dz-share-hint::after{content:"";position:absolute;right:18px;bottom:-6px;width:10px;height:10px;background:#fff;border-right:1px solid #d5e7db;border-bottom:1px solid #d5e7db;transform:rotate(45deg)}
@media(max-width:767px){.dz-share-slot .dz-share-button{width:auto;flex:1 1 auto;min-width:0}.dz-share-slot{flex-wrap:nowrap}.dz-share-hint{width:min(310px,calc(100vw - 32px));max-width:calc(100vw - 32px)}}
@media(prefers-reduced-motion:reduce){.dz-share-help{transition:none}}

/* Desktop: center the existing share action and help icon together beneath hero content/search. */
@media (min-width:768px){
  .dz-share-slot{
    width:100%;
    margin-inline:auto;
    justify-content:center;
    align-self:center;
  }
  .dz-share-hint{
    right:50%;
    transform:translateX(50%);
  }
  .dz-share-hint::after{
    right:calc(50% - 5px);
  }
}
