
/* --- Automatic Display Styles --- */
.wpt-share-auto-display {
  margin: 1rem 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.wpt-share-auto-display-top {
  margin-bottom: 1rem;
}

.wpt-share-auto-display-bottom {
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  
  .wpt-share-auto-display-top {
    margin-bottom: 1rem;
  }
  
  .wpt-share-auto-display-bottom {
    margin-top: 1rem;
  }
}

/* WooCommerce specific styles */
.woocommerce .wpt-share-auto-display {
  margin: 1rem 0!important;
}

.woocommerce .wpt-share-auto-display-summary {
  margin: 1rem 0 2rem 0!important;
}

.woocommerce .wpt-share-auto-display-content {
  margin: 2rem 0 1rem 0!important;
}

/* --- popup sheet style --- */
.wpt-share-desktop-sheet {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 9999;
  max-width: 100%!important;
}
.wpt-share-desktop-sheet.wpt-share-visible {
  opacity: 1;
  pointer-events: auto;
}
.absolute.input-share-ab {
    z-index: 1;
    width: 155px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, #fff 21%) !important;
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    height: 35px;
    right: 3px;
    top: 3px;
}
.relative {
    position: relative;
}
.absolute {
    position: absolute;
}
.wpt-share-content {
  background: #fff;
  padding: 20px 22px;
  border-radius: 12px;
  min-width: 320px;
  max-width: 480px;
  width: calc(100% - 40px);
  text-align: left;
  position: relative;
  box-shadow: 0 10px 30px rgba(2,6,23,0.25);
}
.wpt-share-close-sheet {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
  border: none;
  background: none;
  color: #666;
}
.wpt-share-close-sheet:hover {
  color: #000;
}

.wpt-share-copy-section {
  margin-top: 10px;
}

/* inline input + button */
.wpt-share-copy-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.wpt-share-content .wpt-share-copy-section .wpt-share-copy-url-input {
  flex: 1 1 auto;
  padding: 2px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fbfbfd;
  color: #111;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  font-size: 0.70em;
  line-height: 1.2;
  min-height: 40px;
  height: 40px;
}
.wpt-share-content .wpt-share-copy-section .wpt-share-copy-url-input[readonly] {
  caret-color: transparent;
}
.wpt-share-content .wpt-share-copy-section .wpt-share-copy-url-button {
      flex: 0 0 auto;
    padding: 6px 10px;
    cursor: pointer;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    right: 4px;
    font-size: 0.63em;
    z-index: 2;
    min-height: auto;
    position: absolute;
}
.wpt-share-copy-url-button .icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}
.wpt-share-title{
      font-size: 0.85em;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.wpt-share-desc{
  margin:6px 0 12px;color:#666;
  font-size:0.71em;
  font-weight: 400;
}
.wpt-share-copy-url-button:hover { opacity: 0.85; }
/* .wpt-share-copy-url-button.copied {
  background: #222;
  color: #fff;
} */


.wpt-share-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    max-width:350px;
    margin: 0 auto;
  margin-top: 15px;
}
.wpt-share-grid .wpt-share-item {
  text-align: center;
  font-size: 12px;
  color: #333;
}
.wpt-share-grid .wpt-share-link {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  
}
.wpt-share-grid .wpt-share-icon-wrap {
    width: 4em;
    height: 4em;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(2,6,23,0.08);
      -o-transition: all .2s;
    -webkit-transition: all .2s;
    transition: all .2s;
}
.wpt-share-grid .wpt-share-icon-wrap svg {
  width: 26px;
  height: 26px;
  display: block;
}
.wpt-share-grid .wpt-share-label {
  display: block;
  font-size: 12px;
  line-height: 1;
}
.wpt-share-item.x svg {
    width: 20px;
    height: 20px;
}

/* platform colors (can be customized by options later) */
.wpt-share-item.facebook .wpt-share-icon-wrap { background: #1877f2; }
.wpt-share-item.x .wpt-share-icon-wrap { background: #000; }
.wpt-share-item.line .wpt-share-icon-wrap { background: #00c300; }
.wpt-share-item.email .wpt-share-icon-wrap { background: #6b7280; }

.wpt-share-grid .wpt-share-link:focus .wpt-share-icon-wrap,
.wpt-share-grid .wpt-share-link:hover .wpt-share-icon-wrap {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(2,6,23,0.14);
}

/* --- share button styles --- */
.wpt-share-button {
  font-family: inherit;
  font-size: 14px;
  line-height: 1!important;
  text-decoration: none;
  border: none;
  outline: none!important;
box-shadow: none;
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.wpt-share-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.wpt-share-button:active {
  transform: translateY(0);
}

.wpt-share-button:focus {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.wpt-share-text-before{
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    color: #000000;
}

.wpt-share-icon {
  flex-shrink: 0;
}

.wpt-share-icon svg {
  width: 16px;
  height: 16px;
}
.wpt-share-close-sheet svg {
    width: 0.95em;
    height: 0.95em;
}




@media (max-width: 1024px) {
  .wpt-share-content .wpt-share-copy-section .wpt-share-copy-url-input {
  font-size: 0.75em;
}
  .wpt-share-grid .wpt-share-icon-wrap {
    width: 3.5em;
    height: 3.5em;
}
.absolute.input-share-ab {
    width: 135px;
}
.wpt-share-grid {
    gap: 4px;
}
.wpt-share-grid .wpt-share-icon-wrap svg {
    width: 22px;
    height: 22px;
  }

      .wpt-share-grid .wpt-share-item.x .wpt-share-icon-wrap svg {
        width: 18px;
        height: 18px;
    }
  .wpt-share-content {
    min-width: auto;
    max-width: 80%;
    width: 100%;
}
  .wpt-share-button {
    font-size: 13px;
  }
  
  .wpt-share-icon svg {
    width: 14px;
    height: 14px;
  }
}
/* end for Mobile */

/* Button Alignment Styles */
.wpt-share-align-left {
  text-align: left;
}

.wpt-share-align-center {
  text-align: center;
  justify-content: center;
}

.wpt-share-align-right {
  text-align: right;
  justify-content: flex-end;
}

