.accordion-group { margin-bottom: 15px; }
.popup-content { text-align: right; }
.popup-buttons { margin-top: 15px; }
.popup-buttons button { 
    cursor: pointer; 
}
.popup-content {
    text-align: right;
}
#custom-addon-popup {
    position: fixed;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #221b3a;
    padding: 20px;
    border-radius: 7px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 999999;
}
#custom-addon-popup .accordion {
    background-color: var(--border-light-pckala);
    color: #fff;
    line-height: 1;
    border-radius: 7px;
    padding: 10px;
    width: 100%;
    text-align: right;
    border: none;
    outline: none;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
}
#custom-addon-popup button#add-to-cart-with-options {
    background: var(--gradiant-pckala);
    border: 0px;
    border-radius: 7px;
    color: #fff;
    font-family: 'IRANSansnum';
}
#custom-addon-popup button#add-to-cart-with-options:hover {
    border: 0px;
}
#custom-addon-popup button#close-popup {
    background: #e439a4;
    font-family: 'IRANSansnum';
    border: 0px;
    border-radius: 10px;
    color: #fff;
}
.accordion::after {
    content: '';
    background: url(/wp-content/uploads/2024/12/down-arrow.svg);
    left: 0;
    top: 20%;
    width: 20px;
    height: 20px;
    position: absolute;
    background-position: center;
    background-size: contain;
    filter: invert(1);
}
.popup-content> h4 {
    color: gold;
    font-size: 18px !important;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 15px;
    font-family: 'kalame';
}
.popup-buttons {
    display: flex;
    gap: 10px;
}
.accordion.active:after {
    transform: rotateZ(179deg);
    transition: ease-in0.3s;
}
#custom-addon-popup .panel {
    display: none;
    background-color: var(--bgcolor);
    padding: 5px;
    flex-direction: column;
    gap: 5px;
    border-radius: 5px;
    overflow-y: auto;
}
#custom-addon-popup .panel label {
    color: #333;
    border-bottom: 1px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    line-height: 2;
}
.panel label:hover {
    color: var(--main-color-pckala);
}
body.noscroll {
    overflow: hidden;
}

#overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: #000000b5;

}
/**************** larg device *******************/
@media only screen and (min-width: 769px) {
    #overlay {
    top: auto;
    bottom: 0;
    left: 0;
}
#custom-addon-popup {
    top: 50%;
    width: 600px;
}
.game .panel label {
    width: calc(33% - 2px);
}
#custom-addon-popup .panel {
    max-height: 300px;
}
.popup-buttons {
    justify-content: space-between;
}
.popup-buttons button { 
    padding: 10px 20px; 
}
}
/**************** mobile *******************/
@media only screen and (max-width: 768px) {
#overlay {
    top: 0;
    bottom: 0;
    left: 0;
}
.game .panel label {
    width: calc(50% - 3px);
    font-size: 11px !important;
}
.popup-buttons button { 
    padding: 5px 10px; 
}
#custom-addon-popup .panel {
    max-height: 230px;
}
#custom-addon-popup {
    top: 50%;
    width: 95%;
}
.popup-buttons {
    justify-content: flex-start;
}
}
/***** with img ***********/
.game .panel label {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    padding: 2px;
    border-radius: 5px;
}
#custom-addon-popup .game .panel {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
}
.game label input {
    display: none;
}
.game label img {
    border-radius: 5px;
}
.game .panel label:has(input:checked) {
    background: #d3ffd3;
}
.panel::-webkit-scrollbar-thumb {
    background: #777;
}
div#ajax-loader {
    position: absolute;
    top: 50%;
    z-index: 999999999;
    right: 50%;
}
#custom-addon-popup label span {
    padding-right: 5px;
}
.accordion-group.pack label {
    display: flex;
    flex-direction: column;
}
label.pack-windows {
    display: flex;
    flex-direction: column;
}
.accordion-group.console label {
    flex-direction: column;
}