.ds-combo-size-wrapper {
    margin: 0 0 18px;
}

.ds-combo-size-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    color: #192a3d;
}

.ds-combo-size-group {
    margin: 0 0 16px;
}

.ds-combo-size-group-title {
    display: block;
    margin: 0 0 8px;
    font-weight: 800;
    color: #192a3d;
}

.ds-combo-size-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.ds-combo-size-wrapper .ds-combo-size-button {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 47px;
    margin: 0;
    padding: 10px;
    border: 1px solid #7a7a7a;
    border-radius: 4px;
    background: #fff;
    color: #192a3d;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.ds-combo-size-wrapper .ds-combo-size-button:hover,
.ds-combo-size-wrapper .ds-combo-size-button:focus-visible {
    border-color: #192a3d;
    outline: none;
}

.ds-combo-size-wrapper .ds-combo-size-button.is-selected {
    border-color: var(--yith-wapo-accent-color-color, #2872fa);
    background: #fff;
    color: #192a3d;
}

.ds-combo-size-wrapper .ds-combo-size-button.is-selected::after {
    content: "\2713";
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--yith-wapo-accent-color-color, #2872fa);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}

.ds-combo-summary {
    margin: 4px 0 16px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #f2f6ff;
    border: 1px solid var(--yith-wapo-accent-color-color, #2872fa);
    color: #192a3d;
    font-weight: 700;
}

.ds-combo-error {
    display: none;
    margin: 0 0 14px;
    color: #af2323;
    font-weight: 700;
}

.ds-combo-error.is-visible {
    display: block;
}

body.single-product #yith-wapo-container.ds-combo-yith-hidden {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.single-product form.cart #ds-combo-size-wrapper .ds-combo-size-options > .ds-combo-size-button,
body.single-product form.cart #ds-combo-size-wrapper span.ds-combo-size-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 47px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid #7a7a7a !important;
    border-radius: 4px !important;
    background: #fff !important;
    background-image: none !important;
    color: #192a3d !important;
    font: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-align: center !important;
    text-transform: none !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

body.single-product form.cart #ds-combo-size-wrapper .ds-combo-size-button:hover,
body.single-product form.cart #ds-combo-size-wrapper .ds-combo-size-button:focus,
body.single-product form.cart #ds-combo-size-wrapper .ds-combo-size-button:active {
    background: #fff !important;
    color: #192a3d !important;
    border-color: #192a3d !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

body.single-product form.cart #ds-combo-size-wrapper .ds-combo-size-button.is-selected,
body.single-product form.cart #ds-combo-size-wrapper .ds-combo-size-button.is-selected:hover,
body.single-product form.cart #ds-combo-size-wrapper .ds-combo-size-button.is-selected:focus,
body.single-product form.cart #ds-combo-size-wrapper .ds-combo-size-button.is-selected:active {
    background: #fff !important;
    color: #192a3d !important;
    border-color: var(--yith-wapo-accent-color-color, #2872fa) !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

@media (max-width: 768px) {
    .ds-combo-size-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
