#downloadPNGpopupPremium:not(.grid-popup-mode) {
  /* Single-listing / default positioning (inside .detail-body) */
  top: 164px;
    right: auto;
    left: -56px !important;
    height: 450px;
    max-width: 500px;
    width: 500px;
}

.detail-body #downloadPNGpopupPremium:not(.grid-popup-mode) .modal-dialog {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

#downloadPNGpopupPremium.grid-popup-mode {
  position: absolute;
  top: calc(100% + -52px);
  left: 42%;
  transform: translateX(-50%);
  right: auto;
  height: auto;
  max-width: none;
  width: 226px !important;
  z-index: 140;
  overflow: visible !important;
}

.icon-block--extend > #downloadPNGpopupPremium.grid-popup-mode{
    top: calc(100% + -78px);
}

#downloadPNGpopupPremium.grid-popup-mode .modal-dialog {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  max-width: 100% !important;
  width: 100% !important;
}

#downloadPNGpopupPremium.grid-popup-mode .modal-content {
  width: 100% !important;
}

/* #downloadPNGpopupPremium.grid-popup-mode .premium-section, #downloadPNGpopupPremium.grid-popup-mode .bottom-section{
    padding: 18px 20px 41px !important;
} */
#downloadPNGpopupPremium.grid-popup-mode .premium-section{
    padding: 18px 20px 33px !important;
}
#downloadPNGpopupPremium.grid-popup-mode .bottom-section{
    padding: 27px 20px 33px !important;
}
#downloadPNGpopupPremium.grid-popup-mode .premium-section h4{
    font-size: 16px !important;
    margin-bottom: 2px;
}
#downloadPNGpopupPremium.grid-popup-mode .gpsc-desc{
    font-size: 12px;
}
#downloadPNGpopupPremium.grid-popup-mode .btn-close{
    height: 20px !important;
    width:20px !important;
    font-size: 13px !important;
    top: 10px;
    right: 10px;
}
#downloadPNGpopupPremium.grid-popup-mode .downloadPNG-btn{
    height: 40px;
    font-size: 12px;
}
#downloadPNGpopupPremium.grid-popup-mode .download-btn img {
    left: 15px;
}
#downloadPNGpopupPremium.grid-popup-mode .downloadPNG-btn img {
    left: 15px;
}
#downloadPNGpopupPremium.grid-popup-mode .btn-green{
    height: 40px;
    font-size: 12px;
}
#downloadPNGpopupPremium.grid-popup-mode .divider-pill{
    width: 150px;
}
#downloadPNGpopupPremium.grid-popup-mode .attribution-text{
    text-align: center;
    white-space: normal;
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 10px;
    flex-direction: column;
    gap: 0px;
}

#downloadPNGpopupPremium.grid-popup-mode .unique-copy-attribution-btn span{
    font-size: 11px;
    margin-left: 15px;
}

#downloadPNGpopupPremium.grid-popup-mode .attribution-text span {
    margin-left: 4px;
}
#downloadPNGpopupPremium.grid-popup-mode .divider-pill.copied{
    text-align: center;
}

.icons-grid .icon-block.constant {
  z-index: 100;
  overflow: visible;
}

.collection-single__icon-card.constant {
  z-index: 100;
  overflow: visible;
}

body.png-grid-popup-open,
body.png-grid-popup-open.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

#downloadPNGpopupPremium .modal-content {
  background: #fff;
  border-radius: 8px;
  width: 450px;
  box-shadow: 0px 4px 50px 0px rgba(0, 0, 0, 0.15);
}

#downloadPNGpopupPremium .downloadPopUp-wrap {
  /* background: #fff; */
}
#downloadPNGpopupPremium .premium-section {
    width: 100%;
    padding: 0px;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 25px 40px 40px;
}
/* Add any future tweaks here, but always scope with #downloadPNGpopupPremium */

.download-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.download-btn img {
    position: absolute;
    left: 30px;
    width: 16px;
    height: 16px;
}

#downloadPNGpopupPremium .downloadPNG-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height:60px;
    background: rgba(44, 75, 184, 1);
    font-size: 14px;
    font-weight: 600;
}

#downloadPNGpopupPremium .downloadPNG-btn img {
    position: absolute;
    left: 30px;
    width: 16px;
    height: 16px;
}

#downloadPNGpopupPremium .gpsc-desc{
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    color:rgba(91, 122, 139, 1);
}

#downloadPNGpopupPremium .modal-body{
    padding: 0px;
}

    #downloadPNGpopupPremium .divider-section {
    position: relative;
    height: 1px;
}

#downloadPNGpopupPremium .divider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(245, 132, 49, 1);
    transition: border-color 0.2s ease;
}

#downloadPNGpopupPremium .divider-pill {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: #fff; /* popup background */
    padding: 2px 12px;
    border: 1px solid rgba(245, 132, 49, 1);
    border-radius: 50px;
    font-size: 12px;
    color: rgba(245, 132, 49, 1);
    transition: border-color 0.2s ease, color 0.2s ease;
}

#downloadPNGpopupPremium .divider-section.copied::before {
    border-top-color: rgba(33, 157, 117, 1);
}

#downloadPNGpopupPremium .divider-pill.copied {
    border-color: rgba(33, 157, 117, 1);
    color: rgba(33, 157, 117, 1);
}

#downloadPNGpopupPremium .unique-copy-attribution-btn.copied {
    animation: copyButtonPulse 0.35s ease-out;
}

@keyframes copyButtonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


        .bottom-section {
      padding: 30px 40px 40px;
    }
    
    #downloadPNGpopupPremium .attribution-text {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    color: rgba(19, 65, 85, 1);
    margin: 0 0 10px;
}

#downloadPNGpopupPremium .attribution-text span {
    color: #2EAE79;
    font-weight: 600;
}

    #downloadPNGpopupPremium .attribution-text span {
    color: #2EAE79;
    font-weight: 600;
    margin: 0;
    padding: 0;
    letter-spacing: normal;
    word-spacing: normal;
    margin-left: -10px;
}
 
    #downloadPNGpopupPremium .btn-ghost {
      background: rgba(250, 250, 251, 1);
      color: rgba(19, 65, 85, 1);
      border: 1px solid rgba(229, 229, 229, 1);
      font-family: Inter;
        font-weight: 600;
        font-size: 12px;
        line-height: 100%;
        letter-spacing: 0%;

    }
 
    #downloadPNGpopupPremium .btn-ghost i {
      color: #868e96;
      font-size: 16px;
    }
 
    #downloadPNGpopupPremium .btn-ghost:hover { background: #e9ecef; color: rgba(19, 65, 85, 1); border-color: rgba(209, 209, 209, 1); }

    #downloadPNGpopupPremium .modal-body h4{
        margin-bottom: 5px;
    }
    #downloadPNGpopupPremium .btn-green{
        font-size: 14px;
        font-weight: 600;
        margin-top: 12px;
    }

@media (max-width: 767px) {
    #downloadPNGpopupPremium.grid-popup-mode {
        max-width: calc(100vw - 24px);
    }

    #downloadPNGpopupPremium.grid-popup-mode .modal-content {
        width: min(450px, calc(100vw - 24px));
    }
    #downloadPNGpopupPremium:not(.grid-popup-mode){
        width: 100%;
        left: 0 !important;
    }
}

@media(max-width:1370px){
      #downloadPNGpopupPremium:not(.grid-popup-mode) {
        position: absolute;
        top: 150px;
        right: auto;
        left: -118px !important;
        height: 450px;
        width: 450px !important;
    }

}
@media(max-width:786px){
    #downloadPNGpopupPremium:not(.grid-popup-mode) {
        top: 157px !important;
        left: 0px !important;
        height: 450px;
        width: 100% !important;
    }
}
