/*#region Main panel*/
.sun-configure-product {
    display: flex;
    display: -webkit-flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    padding: 5px;
    margin-bottom: 5%;
    box-shadow: 0 8px 8px -11px #dedede;
    line-height: normal !important;
}

.sun-configure-product-panel {
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    -webkit-flex-direction: row;
    height: auto;
    width: 100%;
    position: relative;
    margin-top: 5%;
}

.sun-go-back{
    margin-right: 20px !important;
}

.sun-configure-product-panel #sun-configure-panel-go-back{
    display: none;
}
/*#endregion*/

/*#region Left panel*/
.sun-configure-product-panel-left {
    display: flex;
    display: -webkit-flex;
    float: left;
    width: 40%;
    height: auto;
    flex-direction: column;
    -webkit-flex-direction: column;
    /* box-shadow: 8px 0 8px -11px #dedede; */
    padding: 10px;
    max-height: 80vh;
    overflow: hidden;
    overflow-y: auto;
}

.sun-configure-product-panel-left:empty {
    padding: 0;
}

.sun-configure-product-panel .sun-attr-thumbnail{
    display: flex;
    position: relative;
    display: -webkit-flex;
    width: 100%;
    height: 75%;
    min-height: 75%;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    border-bottom: 1px solid #eaeaea;
}

.sun-configure-product-panel .sun-attr-thumbnail > img{
    width: 100%;
    max-height: 100%;
    display: block !important;
    border-radius: 0 !important;
    object-fit: contain;
}

.sun-configure-product-chosen-attr {
    width: 95%;
    /*height: 100px;*/
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    justify-content: center;
    -webkit-justify-content: center;
    margin-bottom: 5%;
    box-shadow: 0 0 10px 0 rgb(154 154 154 / 32%);
    border-radius: 2px;
}

.sun-configure-product-chosen-attr-title {
    width: 90%;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: break-word;
}

.sun-configure-product-chosen-attr-content {
    display: flex;
    display: -webkit-flex;
    width: 100%;
    height: 100%;
    font-weight: 700;
    font-size: 15px;
    padding: 20px 25px;
    align-items: center;
    -webkit-align-items: center;
    justify-content: space-between;
    -webkit-justify-content: space-between;
}

.sun-configure-product-chosen-attr-content #attr-name {
    width: 75%;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: break-word;
}

.sun-configure-product-chosen-attr-footer {
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    -webkit-flex-direction: row;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    height: auto;
    border-bottom: 1px solid #eaeaea;
    align-items: center;
    -webkit-align-items: center;
    padding: 10px 25px;
}

.sun-configure-product-chosen-attr-footer-right > span:hover{
    cursor: pointer;
}
/*#endregion*/

/*#region Right panel*/
.sun-configure-product-panel .sun-configure-product-panel-right {
    width: 100%;
    height: 100%;
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
}

.sun-configure-product-panel .sun-configure-panel-right-name {
    padding: 0 2% 2% 0;
    text-transform: uppercase;
    display: flex;
    display: -webkit-flex;
    font-size: 2.5vh;
    flex-direction: row;
    -webkit-flex-direction: row;
}

.sun-configure-product-panel .sun-configure-panel-content {
    width: 100%;
    height: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-gap: 16px;
    grid-auto-rows: 140px;
    overflow-y: auto;
    padding: 4% 0;
}

.sun-configure-product-panel .sun-configure-panel-content.select-open {
    overflow-y: hidden;
    height: 400px;
    grid-auto-rows: 400px;
}

.sun-configure-product-panel .sun-configure-panel-right-title {
    width: 100%;
    display: flex;
    display: -webkit-flex;
    font-size: 2.5vh;
}

.sun-configure-product-panel .sun-panel-right-title-padding{
    padding-right: 5%;
}
/*#endregion*/

/*#region Attributes and terms*/
.sun-configure-product-panel .sun-attr-reference{
    display: none;
}

.sun-configure-product-panel .sun-attr-name {
    display: flex;
    display: -webkit-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    text-align: center;
    font-size: 15px;
    line-height: 14px;
    word-break: break-word;
}

.sun-configure-product-panel .attribute-description{
    position: absolute;
    font-size: 20px;
    width: auto;
    height: auto;
    background: #fff;
    border-radius: 50%;
    left: -3px;
    top: -9px;
    cursor: pointer;
}

.sun-configure-product-panel .sun-attribute-description{
    width: 100%;
    height: 100%;
    position: absolute;
    display: none;
    cursor: default;
}

.sun-configure-product-panel .sun-attribute-description-panel{
    width: 100%;
    height: 100%;
    background: #ededed;
    padding: 10px 3px 0 3px;
    overflow: auto;
}

.sun-configure-product-panel .attribute-description-price, .sun-configure-product-panel .attribute-description-text{
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.sun-configure-product-panel .attribute-description-price >label, .sun-configure-product-panel .attribute-description-text >label{
    margin-bottom: 1%;
    font-weight: bold;
}

.sun-configure-product-panel .attribute-description-price .sun-attr-info,
.sun-configure-product-panel .attribute-description-text .sun-attr-info {
    font-size: 15px;
}

.sun-configure-product-panel .attribute-description-price .sun-attr-info >p, .sun-configure-product-panel .attribute-description-text .sun-attr-info >p {
    margin: 0;
}

.sun-configure-product-panel .sun-configure-panel-content .sun-attr-info,
.sun-configure-product-panel .sun-configure-panel-content .sun-tc-attr-info {
    display: flex;
    position: relative;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
    -webkit-align-items: center;
    border: 1px solid #efefef;
    border-radius: 3px;
}

.sun-configure-product-panel .sun-configure-panel-content .sun-attr-info:hover,
.sun-configure-product-panel .sun-configure-panel-content .sun-tc-attr-info:hover {
    cursor: pointer;
    box-shadow: 0 0 4px #bbbbbb;
}

.sun-configure-product-panel .sun-attribute-description-panel::-webkit-scrollbar {
    width: 5px;
}

.sun-configure-product-panel .sun-attribute-description-panel::-webkit-scrollbar-track {
    background: #dddddd;
}

.sun-configure-product-panel .sun-attribute-description-panel::-webkit-scrollbar-thumb {
    background: #a9a9a9;
}

.sun-configure-product-panel .sun-attribute-description-panel::-webkit-scrollbar-thumb:hover {
    border-radius: 5px;
    transition: width 2s;
}

.sun-configure-product-panel .sun-default-image{
    content:url(../../assets/img/dashboard/Default.png);
}
/*#endregion*/

/*#region Extra fields*/
.single_variation_wrap, .sun-pages{
    margin: 20px 0;
}

.sunpics-extra-pages,
.sunpics-project-name,
.extra_price,
.sunpics-calendar-fields > select,
.sunpics-countries-wrap,
.sunpics-countries-wrap > select,
.sunpics-choose-add-holidays-wrap,
.sunpics-choose-add-holidays-wrap > * {
    margin: 7px 0;
}

.sunpics-calendar-hebrew-component {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.sunpics-calendar-hebrew-component input[type="radio"] {
    display: none;
}

.sunpics-calendar-hebrew-days,
.sunpics-calendar-hebrew-shabbat {
    display: flex;
    margin-top: 6px;
}

.sunpics-calendar-hebrew-days label,
.sunpics-calendar-hebrew-shabbat label {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 15px;
}

.sunpics-calendar-hebrew-days label:hover,
.sunpics-calendar-hebrew-shabbat label:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.sunpics-calendar-hebrew-days input[type="radio"]:checked + label,
.sunpics-calendar-hebrew-shabbat input[type="radio"]:checked + label {
    background-color: #3a3a3a;
    color: #FFFFFF;
    border-color: #3a3a3a;
}
/*#endregion*/


/*#region custom fields extra styles */
.sun-go-next-parent {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
    padding: 0 10px 20px 0;
}

.sun-go-next-parent .button {
    width: auto;
}

.sun-go-next.button {
    float: right;
    margin-right: 20px;
}

.sun-warning-message {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
    padding: 0 10px 20px 0;
    margin-top: -10px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.sun-warning-message .warning-message-text {
    font-size: 14px;
    color: #5c5c5c;
    width: auto;
    padding: 14px;
    background-color: #e1e1e1;
    box-shadow: #c5c5c5 0 0 5px;
}

.sun-warning-message.visible {
    opacity: 1;
}

.sun-configure-product-panel .variations_form .woocommerce-variation.single_variation,
.sun-configure-product-panel .variations_form .woocommerce-variation-add-to-cart .wapf-product-totals,
.sun-configure-product-panel .variations_form .woocommerce-variation-add-to-cart > *:not(.wapf) {
    display: none !important;
}

.sunpics-bundle-item[data-sunpics]:not([data-sunpics=""]) .variations_form .wapf-wrapper:not(.inside-sun-configure) {
    display: none !important;
}

.variations_form .wapf.inside-sun-configure {
    display: block;
}

.variations_form .wapf.inside-sun-configure .wapf-product-totals.inside-sun-configure {
    display: none !important;
}

.variations_form .wapf .wapf-product-totals {
    /*display: block !important;  needs to control with important because wapf is putting as display none directly in DOM */
}

.variations_form .wapf .wapf-field-container.cf-hidden {
    display: inherit !important;
    visibility: hidden !important;
    max-height: 1px;
    padding: 0;
}
/*#endregion*/



.sun-go-next-float {
    display: none !important;
    opacity: 0 !important;
    position: absolute !important;
    z-index: 2;
    top: -25px;
    right: -40px;
    transition: opacity 1s ease-in-out;
}

.wapf-swatch.wapf-checked {
    position: relative;
}

.sun-configure-product-panel .sun-configure-panel-content.custom-select-configure-panel .sun-attr-thumbnail {
    height: 100%;
    min-width: 80px;
    max-width: 30%;
    padding: 15px 0 15px 30px;
    width: auto;
}

.sun-configure-product-panel .sun-configure-panel-content.custom-select-configure-panel {
    grid-template-columns: none;
}

.sun-configure-product-panel .sun-configure-panel-content.custom-select-configure-panel .sun-attr-name {
    width: 100%;
    height: 100% !important;
    margin: 0;
    text-align: left;
    -webkit-justify-content: flex-start;
    padding-left: 20px;
}

.sun-configure-product-panel .sun-configure-panel-content.custom-select-configure-panel .sun-attr-info {
    flex-direction: row;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
}

.sun-configure-panel-content .custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
    min-width:100%;
    padding-bottom: 24px;
}

.sun-configure-panel-content .custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 100%;
}

.sun-configure-panel-content .custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    cursor: pointer;
    transition: all 0.5s;

    min-height: 40px;
    width: 100%;
    font-size: 14px;
    line-height: 1.8;
    padding: 6px 12px;
    vertical-align: middle;
    background-color: transparent;
    color: #333;
    border: 1px solid #ddd;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    border-radius: 3px;
}

.sun-configure-panel-content .custom-select.open .custom-select__trigger {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.sun-configure-panel-content .custom-select.open .custom-options {
    display: block;
    opacity: 1;
    flex: 1;
    visibility: visible;
    pointer-events: all;
    overflow-y: auto;
}

.sun-configure-panel-content .custom-select.open .arrow {
    transform: rotate(225deg);
    -webkit-transform: rotate(225deg);
}

.sun-configure-panel-content .custom-options {
    display: none;
    left: 0;
    right: 0;
    border: 1px solid #707070;
    border-top: none;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2;
}

.sun-configure-panel-content .custom-option {
    position: relative;
    display: block;
    padding: 0 10px 0 10px;
    line-height: 25px;
    cursor: pointer;
    transition: all 0.5s;
}

.sun-configure-panel-content .arrow {
    position: relative;
    border: solid black;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.sun-configure-panel-content .arrow::before,
.sun-configure-panel-content .arrow::after {
    font-family: "Font Awesome 5 Free";
    font-size: 20px;
    font-weight: 700;
    color: #394a6d;
    position: absolute;
    bottom: 0;
}

.sun-configure-panel-content .custom-select .attribute-description {
    left: 10px;
    top: 10px;
}