/* Modal Background */
#lw-share-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  font-family: "Inter", sans-serif;
}

/* custom block */
.lw-modal-content.lw-modal-wide {
    max-width: 620px;
    min-width: 0;
    width: 98vw;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(60, 72, 88, 0.18);
    padding: 20px;
    background: #fff;
    overflow: visible;
}

.lw-modal-section.lw-modal-section-link {
    background: #e8fff2;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.lw-modal-section.lw-modal-section-email {
    background: e8fff2;
    padding: 14px;
    border-radius: 10px;
}

.lw-modal-meta-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  justify-content: center;
}

.lw-modal-details-centered {
  text-align: left;
}

.lw-modal-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.lw-modal-qr-container {
  flex-shrink: 0;
}

.lw-modal-meta-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}



/* Modal Box */
.lw-modal-content {
  background: #fff;
  width: 650px;
  max-width: 95%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 24px;
  position: relative;
}

/* Close Button */
.lw-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* Flex Layout */
.lw-modal-flex {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

/* QR */
.lw-modal-qr {
  width: 100px;
  height: 100px;
  border-radius: 6px;
}

/* Text Details */
.lw-modal-details {
  flex: 1;
}

/* Filename */
.lw-modal-filename {
  font-size: 12px;
  font-weight: 600;
  color: #111;
}

/* Meta Info */
.lw-modal-filemeta {
  font-size: 10px;
  color: #666;
  margin-bottom: 16px;
}

/* Permissions */
.lw-modal-permission {
  margin-bottom: 10px;
}

.lw-modal-permission-label {
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.lw-modal-permission-select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* Toggle Row */
.lw-modal-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.lw-modal-toggle-label {
  font-size: 14px;
  font-weight: 500;
}

/* Toggle Switch */
.lw-modal-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.lw-modal-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lw-modal-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 34px;
}

.lw-modal-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.lw-modal-toggle input:checked + .lw-modal-toggle-slider {
  background-color: #00b36b;
}

.lw-modal-toggle input:checked + .lw-modal-toggle-slider:before {
  transform: translateX(18px);
}

/* Note Text */
.lw-modal-sharing-note,
.lw-modal-link-desc,
.lw-modal-email-desc {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
  margin-bottom: 12px;
}

/* Section Titles */
.lw-modal-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

/* Link Row */
.lw-modal-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lw-modal-link,
.lw-modal-email {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.lw-modal-copy,
.lw-modal-send {
  background-color: #00b36b;
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* AdSense areas */
.lw-modal-adsense {
  margin: 16px 0;
  min-height: 60px;
}

/* Responsive */
@media (max-width: 600px) {
  .lw-modal-flex {
    flex-direction: column;
  }

  .lw-modal-qr {
    margin-bottom: 16px;
  }
}
