/* File: mt-share-modal/assets/mt-share-modal.css */

/* Sichtbarkeit erzwingen (Theme-Konflikte abfangen) */
.mt-share-btn{
  display:inline-flex !important;
  align-items:center !important;
  gap:.5rem !important;

  padding:.5rem .75rem !important;

  border:0 !important;              /* ohne Border */
  background:transparent !important; /* darf transparent bleiben */
  color:inherit !important;          /* Textfarbe = Theme-Textfarbe */
  opacity:1 !important;
  visibility:visible !important;

  cursor:pointer !important;
  font:inherit !important;
  line-height:1.2 !important;
}

.mt-share-btn__label{
  display:inline !important;
}

.mt-share-btn__icon{
  display:inline-block !important;
  width:22px;
  height:22px;
}


.mt-share-btn__icon{ display:inline-block; vertical-align:middle; }
.mt-share-btn__label{ font-weight:600; }

/* Modal (Bootstrap-ähnliche Optik, aber ohne Bootstrap-Abhängigkeit) */
.mt-share-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
}
.mt-share-modal.is-open{ display:block; }

.mt-share-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.5);
}

.mt-share-modal__panel{
  position:relative;
  max-width:520px;
  margin:10vh auto 0;
  background:#fff;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  overflow:hidden;
      margin-top: 100px;
}

.mt-share-modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:5px;
  border-bottom:1px solid rgba(0,0,0,.1);
}

.mt-share-modal__title{
  margin:0;
  font-size:1.1rem;
}

.mt-share-modal__close{
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:1.5rem;
  line-height:1;
  padding:0 6px;
}

.mt-share-modal__body{
  padding:16px 18px 18px;
}

.mt-share-modal__desc{
  margin:0 0 12px;
  color:#666;
  font-size:.9rem;
}

/* Liste */
.mt-share-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mt-share-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:5px 6px;
  border-radius:10px;
  text-decoration:none;
  color:inherit; /* Text als Textfarbe (erbt Theme) */
  background:#f7f7f7;
}

.mt-share-item:hover,
.mt-share-item:focus{
  background:#efefef;
  outline:none;
}

.mt-share-item--button{
  width:100%;
  border:0;
  cursor:pointer;
  font:inherit;
  text-align:left;
}

/* NUR SVG-Container hat Hintergrundfarbe */
.mt-share-icon{
  width:40px;
  height:40px;
  border-radius:10px;
  background:#263D59; /* nur Icon-Hintergrund */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.mt-share-icon svg{
  width:22px;
  height:22px;
  display:block;
}

.mt-share-text{
  font-weight:600;
}

.mt-share-hint{
  margin-top:12px;
  font-size:.9rem;
  color:#1a7f37;
  min-height:1.2em;
}

/* Mobile */
@media (max-width: 560px){
  .mt-share-modal__panel{ margin:8vh 12px 0; }
}
