/* ----------------------------------------------------
   WRS Combo Bundle
   OpenCart 2.3 + Journal 3.2
---------------------------------------------------- */

body.wrs-combo-opened {
    overflow: hidden;
}

#wrs-combo-wrapper,
#wrs-combo-wrapper * {
    box-sizing: border-box;
}

.wrs-combo-loading {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 999999;
    background: #111;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.wrs-combo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999990;
}

.wrs-combo-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px; /* беше 520px */
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    z-index: 999991;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

.wrs-combo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 18px;
    border-bottom: 1px solid #e8e8e8;
    flex: 0 0 auto;
    background: #fff;
}

.wrs-combo-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    color: #111;
}

.wrs-combo-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    box-shadow: none;
    outline: none;
}

.wrs-combo-close:hover {
    opacity: 0.75;
}

.wrs-combo-close:focus {
    outline: none;
    box-shadow: none;
}

.wrs-combo-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

.wrs-combo-item {
    border: 1px solid #ececec;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
}

.wrs-combo-item:last-child {
    margin-bottom: 0;
}

.wrs-combo-item-disabled {
    opacity: 0.55;
}

.wrs-combo-item-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.wrs-combo-item-image {
    width: 110px;
    min-width: 110px;
}

.wrs-combo-item-image img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

.wrs-combo-item-content {
    flex: 1 1 auto;
    min-width: 0;
}

.wrs-combo-item-name {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #111;
}

.wrs-combo-item-price {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #111;
}

.wrs-combo-price-special {
    color: #111;
}

.wrs-combo-price-old {
    text-decoration: line-through;
    opacity: 0.7;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 400;
}

.wrs-combo-price-normal {
    color: #111;
}

.wrs-combo-stock-error {
    color: #c0392b;
    font-size: 13px;
    line-height: 1.4;
}

.wrs-combo-options {
    margin-top: 10px;
}

.wrs-combo-option-row {
    margin-bottom: 12px;
}

.wrs-combo-option-row:last-child {
    margin-bottom: 0;
}

.wrs-combo-option-label,
.wrs-combo-option-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #111;
}

.wrs-combo-option-row select {
    display: block;
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 0 10px;
    background: #fff;
    color: #111;
    box-shadow: none;
    outline: none;
}

.wrs-combo-option-row select:focus {
    border-color: #999;
    outline: none;
    box-shadow: none;
}

.wrs-combo-option-radio-group {
    margin-top: 4px;
}

.wrs-combo-radio-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #111;
    cursor: pointer;
}

.wrs-combo-radio-line:last-child {
    margin-bottom: 0;
}

.wrs-combo-radio-line input[type="radio"] {
    margin: 2px 0 0;
    flex: 0 0 auto;
}

.wrs-required {
    color: #c0392b;
}

.wrs-combo-select-row {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.4;
}

.wrs-combo-select-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    color: #111;
}

.wrs-combo-select-label input[type="checkbox"] {
    margin: 0;
    flex: 0 0 auto;
}

.wrs-combo-item-errors {
    margin-top: 10px;
}

.wrs-combo-error-line {
    color: #c0392b;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 4px;
}

.wrs-combo-error-line:first-child {
    margin-top: 0;
}

.wrs-combo-footer {
    padding: 18px;
    border-top: 1px solid #e8e8e8;
    flex: 0 0 auto;
    background: #fff;
}

.wrs-combo-submit {
    display: block;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 99px; 
    background: #1f6f66; 
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    text-transform: uppercase;
    padding: 14px 18px;
    box-shadow: none;
    outline: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.wrs-combo-submit:hover {
    background: #185a53; /* вместо само opacity */
    opacity: 1;
}

.wrs-combo-submit:focus {
    outline: none;
    box-shadow: none;
}

.wrs-combo-submit.wrs-combo-btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

.wrs-combo-empty {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
}

@media (max-width: 767px) {
    .wrs-combo-loading {
        top: 15px;
        right: 15px;
    }

    .wrs-combo-offcanvas {
        width: 100%;
        max-width: 100%;
    }

    .wrs-combo-title {
        font-size: 16px;
    }

    .wrs-combo-header {
        padding: 16px;
    }

    .wrs-combo-body {
        padding: 16px;
    }

    .wrs-combo-footer {
        padding: 16px;
    }

    .wrs-combo-item-top {
        gap: 12px;
    }

    .wrs-combo-item-image {
        width: 90px;
        min-width: 90px;
    }

    .wrs-combo-item-name {
        font-size: 14px;
    }

    .wrs-combo-item-price {
        font-size: 15px;
    }
}