.devvn-pdv-wrap,
.note-wrap,
.pdv-photo-list-container{
    --text-color: #111827;
    --icon-size: 16px;
    --text-size: 14px;
    --heading-color: #e33b54;
    --primary-color: #2ebd85;
    --primary-bg-color: #0bcdac26;
    --second-color: #dc2626;
    --second-bg-color: #ff000021;
    --note-bg-color: #4caf5042;
    color: var(--text-color);
    font-size: var(--text-size);
}
.devvn-pdv-wrap,
.devvn-pdv-wrap *{
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.pdv-banner {
    position: relative;
    overflow: hidden;
    padding-top: 40%;
    height: auto;
    background-position: 50% 50%;
    background-size: cover;
    margin-bottom: 20px;
}
.pdv-banner img {
    right: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    top: 0;
    position: absolute;
    object-position: 50% 50%;
    object-fit: cover;
}
.pdv-banner-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    z-index: 3;
}
.pdv-banner:after {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.pdv-banner h1 {
    color: #fff;
    margin: 0 0 10px;
}
.pdv-nav-action {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}
label.pdv-button > span,
button.pdv-button{
    display: inline-flex;
    align-items: center;
    margin: 0;
    border: 0;
    gap: 0.25rem;
    min-height: unset;
    padding: 2px 12px;
    border-radius: 25px;
    cursor: pointer;
}
label.pdv-button svg,
button.pdv-button svg{
    width: var(--icon-size);
}
.pdv-filter-nav {
    display: flex;
    align-items: center;
    align-content: center;
    gap: .25rem;
}

.pdv-list-photos {
    margin: 0 -5px;
}
.pdv-list-photos > .pdv-photo-item {
    width: 25%;
    float: left;
    padding: 0 5px;
    margin-bottom: 10px;
}
.pdv-photo-item img {
    width: 100%;
}
label.pdv-button > input {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

label.pdv-button > span:hover,
label.pdv-button > span.active,
label.pdv-button input:checked ~ span,
button.pdv-button:hover,
button.pdv-button.active,
.pdv-photo-box button.note-button.hasnote,
.like-container button.add-note.hasnote
{
    background: var(--primary-bg-color) !important;
    color: var(--primary-color) !important;
}
label.pdv-button{
    font-size: unset;
    margin: 0;
    line-height: 1;
}

.loading {
    position: relative;
    pointer-events: none;
}
.loading:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    background: rgb(255 255 255 / 50%);
    width: 100%;
    height: 100%;
    z-index: 99999999999;
}
.loading:after {
    position: fixed;
    content: '';
    top: 50%;
    margin-top: -25px;
    left: 50%;
    margin-left: -25px;
    width: 50px;
    height: 50px;
    -webkit-animation: devvn_loading .6s linear;
    animation: devvn_loading .6s linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    border-radius: 50%;
    border-color: var(--primary-color,#00c48c) transparent transparent;
    border-style: solid;
    border-width: .3em;
    box-shadow: 0 0 0 1px transparent;
    z-index: 99999999999;
}
.heart-loading:after {
    position: absolute;
    content: '';
    top: 50%;
    margin-top: -16px;
    left: 50%;
    margin-left: -16px;
    width: 32px;
    height: 32px;
    -webkit-animation: devvn_loading .6s linear;
    animation: devvn_loading .6s linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    border-radius: 50%;
    border-color: var(--primary-color, #00c48c) transparent transparent;
    border-style: solid;
    border-width: .3em;
    box-shadow: 0 0 0 1px transparent;
}
@-webkit-keyframes devvn_loading {
    from {
        -webkit-transform: rotate(0);
        transform: rotate(0)
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

@keyframes devvn_loading {
    from {
        -webkit-transform: rotate(0);
        transform: rotate(0)
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

.is-modern .f-thumbs__slide__button{
    max-width: unset;
}
.fancybox__container {
    z-index: 999999;
}

.like-container button,
.pdv-photo-box button,
.like-container a.download-button{
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto;
    line-height: 1;
    width: 35px;
    height: 35px;
    color: #fff !important;
    transition: all .3s linear;
}
.like-container button svg,
.like-container a.download-button svg{
    width: 25px;
    height: 25px;
}
.like-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.like-container button.like-1 {
    color: var(--second-color) !important;
    background: var(--second-bg-color) !important;
}

.like-container button {
    background: #94949485 !important;
    border-radius: 50% !important;
}

[data-tippy-root]{
    z-index: 9999999 !important;
}


.pdv-photos-action {
    position: fixed;
    z-index: 999999999;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    bottom: 80px;
}

@media (min-width: 768px){
    .pdv-photos-action {
        right: 10px;
        transform: unset;
        left: auto;
    }
}

.pdv-list-photos.loading:before {
    display: none;
}
.pdv-list-photos.loading:after {
    position: absolute !important;
    bottom: 0;
    top: unset;
}
.pdv-photo-box button,
.pdv-photo-box a.download-button{
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    background: #9494945e !important;
    border-radius: 50% !important;
    padding: 0 !important;
}
.pdv-photo-box a.download-button {
    top: auto;
    bottom: 10px;
    right: 48px;
}
.like-container a.download-button,
.pdv-photo-box a.download-button{
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: #9494945e !important;
    border-radius: 50%;
}
.pdv-photo-box button:hover {
    transform: scale(1.1);
}
.pdv-photo-box button.like-1 {
    color: var(--second-color) !important;
    background: var(--second-bg-color) !important;
}
.pdv-photo-box button.note-button svg,
.pdv-photo-box a.download-button svg{
    width: 20px;
    height: 20px;
}
.pdv-photo-box button.note-button {
    bottom: 10px;
    top: auto;
}
.note-wrap {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    padding: 20px;
}
.devvn-pdv-page .note-box > h3 {
    color: var(--heading-color);
    margin: 0 0 20px 0;
}
.pdv-form-row input[type="password"],
.pdv-form-row textarea{
    width: 100%;
    box-shadow: none;
    border-radius: 5px;
    height: 40px;
    font-size: 16px;
}
.pdv-form-row textarea{
    height: 150px;
}
.pdv-form-row.pdv-form-submit {
    text-align: center;
}
button.pdv-submit {
    margin: 0;
    background: var(--primary-color) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    align-content: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: none;
    font-size: 14px;
    min-height: auto;
    line-height: 1;
}
.pdv-form-row label {
    font-size: var(--text-size);
}
button.pdv-submit svg {
    width: 20px;
}
.pdv-form-hide{
    display: none !important;
}
.pdv-action-update.spin > svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.lock,
.locked .unlock{
    display: none;
}
.locked .lock{
    display: block;
}
button.locked {
    background: var(--second-color) !important;
    color: #fff !important;
}

.fancybox__container.note-popup {
    z-index: 999999999;
}

.pdv-photo-list-container {
    width: 100%;
    max-width: 660px;
    border-radius: 8px;
    padding: 20px;
}

.pdv-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

.pdv-tabs:after {
    content: "";
    background: #f0f0f0;
    height: 2px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.pdv-tab-item {
    padding: 0 0 5px 0;
    margin: 0 10px 0 0;
    border: 0;
    border-radius: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: normal;
    text-transform: none;
    z-index: 2;
    border-bottom: 2px solid transparent;
}

.pdv-tab-item.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color) !important;
}

button.pdv-tab-item svg {
    width: 16px;
}

.pdv-format-options {
    margin-bottom: 5px;
}

.pdv-format-choices {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.pdv-file-list {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-break: break-all;
    background-color: #e7e5e4 !important;
    color: #6b7280 !important;
}

.pdv-tab-content {
    display: none;
}

.pdv-tab-content.active {
    display: block;
}

.pdv-actions {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    align-items: center;
}

.pdv-actions button svg {
    width: 20px;
}

.pdv-copy-btn {
    background: #007cba;
    color: #fff;
    border: none;
}

.pdv-download-btn {
    background: #fff;
    color: #007cba;
    border: 1px solid #007cba;
}

.fancybox__content > h3 {
    color: var(--heading-color);
    font-size: 20px;
    margin: 0 0 15px 0;
}

.pdv-format-options label {
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}
.pdv-format-choices label {
    display: flex;
    align-content: center;
    align-items: center;
}
.pdv-format-choices input {
    margin: 0 5px 0 0;
}

.pdv-actions button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 15px;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    font-size: 14px;
    letter-spacing: normal;
    text-transform: none;
    color: var(--primary-color) !important;
    background: #0bcdac26 !important;
    border: 0;
    border-radius: 25px;
}

.pdv-list-top {
    background: var(--note-bg-color);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pdv-list-top p:last-child{
    margin-bottom: 0;
}

.pdv-password-form {
    text-align: center;
    width: 100%;
    max-width: 385px;
    margin: 50px auto 100px;
}
form#password_form input#album-password {
    width: 100%;
    border: 1px solid #ccc;
    box-shadow: none;
    border-radius: 5px;
    height: 40px;
    margin: 20px 0 5px 0;
}
button.pdv-submit-password {
    min-height: auto;
    width: 100%;
    border: 0;
    line-height: 1.3;
    color: #fff;
    background-color: var(--primary-color);
    padding: 10px;
    border-radius: 5px;
    letter-spacing: normal;
    text-transform: none;
    margin: 10px 0 0;
}

.devvn-pdv-page .row.content-layout-wrapper.align-items-start {
    width: 100%;
    display: block;
    margin: 0 auto;
}

@media (max-width: 991px){
    .pdv-list-photos > .pdv-photo-item{
        width: 33.333%;
    }
}

@media (max-width: 549px){
    .pdv-list-photos > .pdv-photo-item{
        width: 50%;
    }
    .pdv-tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        line-height: 1.5;
    }
    .pdv-format-choices {
        flex-wrap: wrap;
        gap: 10px;
    }
    .pdv-nav-action {
        flex-direction: column;
        gap: 10px;
    }
}

/*Fix width woodmart*/
.global-color-scheme-light .fancybox__content {
    background: #000;
}
.theme-woodmart.global-color-scheme-light.devvn-pdv-page button.is-close-btn {
    padding: 0 !important;
    min-height: auto;
}
form#note_form textarea {
    margin-bottom: 20px;
}
.theme-woodmart.global-color-scheme-light.devvn-pdv-page .fancybox__container button:not(.pdv-submit) {
    padding: 0;
    background: transparent;
    color: #fff;
    text-transform: none;
}
.theme-woodmart.global-color-scheme-light.devvn-pdv-page .fancybox__container .is-modern.is-resting .f-thumbs__slide__button {
    border-radius: 3px;
}