#cpo-frontend-area {
    margin-bottom: 25px;
    clear: both;
}

.yith-wapo-addon {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.addon-header {
    padding: 15px;
    background: #ffcd05;
    border-bottom: 1px solid #f0f0f0;
}

.wapo-addon-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.options-container {
    padding: 15px;
}

.wapo-addon-description {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.yith-wapo-option {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.yith-wapo-option.selected {
    background-color: #fcfcfc;
}

.radio-button-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radiobutton {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.radiobutton.checked {
    border-color: #333;
}

.radiobutton.checked::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.yith-wapo-label {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
}

.cpo-opt-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.cpo-opt-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.cpo-linked-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.cpo-linked-item {
    border: 1px solid #7a7a7a;
    border-radius: 6px;
    padding: 10px;
    position: relative;
    transition: all 0.2s;
    cursor: pointer;
}

.cpo-linked-item.active {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    border-color: #ffcd05;
    background-color: #faf9f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cpo-linked-click-area {
    cursor: pointer;
    display: block;
}

.cpo-linked-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.cpo-linked-img {
    text-align: center;
    margin-bottom: 8px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cpo-linked-img img {
    max-height: 100%;
    width: auto;
    border-radius: 4px;
}

.cpo-linked-details {
    text-align: center;
}

.cpo-linked-details .cpo-linked-price {
    color: #000;
}

.cpo-linked-title {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 4px;
    font-weight: 500;
}

.cpo-linked-price {
    display: block;
    font-size: 12px;
    color: #555;
    font-weight: bold;
}


.cpo-linked-qty-wrap {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 8px;
    text-align: center;
}

.cpo-linked-qty-wrap label {
    font-size: 11px;
    display: block;
    margin-bottom: 3px;
}

.cpo-qty-controller {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.cpo-qty-btn {
    background: #f1f1f1;
    border: none;
    color: #333;
    font-weight: bold;
    width: 30px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

@media (hover: hover) {

    .cpo-qty-btn:hover {
        background-color: #aea36f;
    }
}


.options-container .cpo-linked-qty {
    width: 40px !important;
    height: 35px !important;
    text-align: center;
    font-size: 13px;
    color: #000;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    margin: 0 !important;
    padding: 0 !important;
    -moz-appearance: textfield;
}

.cpo-linked-qty::-webkit-outer-spin-button,
.cpo-linked-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cpo-totals-box {
    margin-top: 20px;
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.cpo-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.cpo-row.total {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.cpo-linked-item.active::after {
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    width: 18px;
    height: 18px;
    content: '\2714';
    background-size: 50%;
    border-radius: 50%;
    display: block;
    position: absolute;
    background-color: #ffcd05;
    border: 0.5px solid #000;
    top: -9px;
    right: -9px;
}

.cpo-group-image {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 450px;
    height: 200px;
    margin: 0 auto 15px;
    overflow: hidden;
}

.cpo-group-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}