.senim-pdf-slider{
  position: relative;
  width: 100%;
  padding: 10px 0;
}

.senim-pdf-swiper{
  width: 100%;
  overflow: visible;
}

.senim-pdf-slide{
  width: 320px; /* overridden by Elementor control */
  aspect-ratio: 1/1.35; /* overridden */
  box-sizing: border-box;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.senim-pdf-btn{
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Thumbnail as background (recommended for PDF covers) */
.senim-pdf-thumb{
  position: absolute;
  inset: 0;
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.senim-pdf-btn img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.senim-pdf-caption{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.75);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.2;
  color: #111;
  backdrop-filter: blur(6px);
}

/* Arrows */
.senim-pdf-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 54px;
  height: 54px;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	padding: 0;
}

.senim-pdf-prev{ left: -10px; }
.senim-pdf-next{ right: -10px; }

.senim-pdf-nav svg path{ fill: #111; }

/* Modal */
.senim-pdf-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.65);
  z-index: 99999;
}

.senim-pdf-modal.is-open{
  display: flex;
}

.senim-pdf-modal__dialog{
  width: 90%;
  height: 85vh;
  max-width: 1100px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  outline: none;
}

.senim-pdf-modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: #FFFFFFD9;
  font-size: 26px;
  line-height: 42px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
	padding:0;
	color:#000000;
}

.senim-pdf-modal__close:hover {
	background: #ffffff;
}

.senim-pdf-modal__frame{
  flex: 1;
  width: 100%;
  border: 0;
}

.senim-pdf-modal__footer{
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.senim-pdf-modal__footer a{
  text-decoration: none;
  font-size: 14px;
}

html.senim-pdf-modal-open{
  overflow: hidden;
}

/* NAV buttons above slides */
.senim-pdf-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:auto;
  color:#000; /* важно для currentColor */
}

.senim-pdf-prev{ left:10px; }
.senim-pdf-next{ right:10px; }

/* FORCE svg to be visible */
.senim-pdf-nav svg{
  width:22px !important;
  height:22px !important;
  min-width:22px;
  min-height:22px;
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
}

.senim-pdf-nav svg path{
  opacity:1 !important;
  visibility:visible !important;
}