#wc-qp-packaging-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background-color: #f9f9f9;
}

#wc-qp-packaging-container h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.wc-qp-packaging-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.wc-qp-packaging-option:hover {
    border-color: #a46497;
    box-shadow: 0 2px 4px rgba(164, 100, 151, 0.1);
}

.wc-qp-packaging-option.selected {
    border-color: #a46497;
    background-color: #f8f5f7;
}

.wc-qp-packaging-option input[type="checkbox"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.wc-qp-packaging-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.wc-qp-packaging-details {
    flex: 1;
}

.wc-qp-packaging-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.wc-qp-packaging-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.wc-qp-packaging-price {
    font-weight: bold;
    color: #a46497;
    font-size: 16px;
}

.wc-qp-preselected-badge {
    background-color: #4caf50;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 10px;
}

#wc-qp-packaging-total {
    text-align: right;
    font-size: 16px;
    color: #333;
    border-top: 1px solid #e1e1e1;
    padding-top: 15px;
}

.wc-qp-total-label {
    color: #666;
    margin-right: 10px;
}

.wc-qp-total-amount {
    color: #a46497;
    font-weight: bold;
    font-size: 18px;
}

.wc-qp-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.wc-qp-no-options {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.wc-qp-packaging-rule {
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.wc-qp-rule-info {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
}

@media (max-width: 768px) {
    #wc-qp-packaging-container {
        margin: 15px 0;
        padding: 15px;
    }

    #wc-qp-packaging-container h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .wc-qp-rule-group {
        margin-bottom: 15px;
        padding: 10px;
        border-radius: 6px;
    }

    .wc-qp-rule-title {
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .wc-qp-rule-title .wc-qp-selection-mode-info {
        display: block;
        margin-top: 2px;
        font-size: 10px;
        font-weight: normal;
    }

    .wc-qp-packaging-option {
        flex-direction: row;
        align-items: flex-start;
        padding: 10px;
        margin-bottom: 8px;
        text-align: left;
        min-height: 60px;
        touch-action: manipulation;
        border-width: 2px;
    }

    .wc-qp-packaging-option.selected {
        border-color: #a46497;
        background-color: #f8f5f7;
        box-shadow: 0 2px 8px rgba(164, 100, 151, 0.2);
    }

    .wc-qp-packaging-option:active {
        background-color: #f0f0f0;
        transform: scale(0.98);
    }

    .wc-qp-packaging-option input[type="checkbox"] {
        margin: 0 10px 0 0;
        transform: scale(1.3);
        flex-shrink: 0;
        align-self: flex-start;
        margin-top: 2px;
    }

    .wc-qp-packaging-image {
        width: 40px;
        height: 40px;
        margin: 0 10px 0 0;
        flex-shrink: 0;
        border-radius: 6px;
    }

    .wc-qp-packaging-details {
        flex: 1;
        min-width: 0;
    }

    .wc-qp-packaging-name {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .wc-qp-packaging-description {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 4px;
        color: #666;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .wc-qp-packaging-price {
        font-size: 14px;
        font-weight: 600;
        color: #2e7d32;
    }

    .wc-qp-preselected-badge {
        font-size: 10px;
        padding: 2px 5px;
        margin-left: 5px;
    }

    .wc-qp-selection-mode-info {
        font-size: 11px;
        margin-bottom: 5px;
    }
}

/* Single selection mode styles */
.wc-qp-single-selection .wc-qp-packaging-option:not(.selected) {
    opacity: 0.6;
}

.wc-qp-single-selection .wc-qp-packaging-option:not(.selected):hover {
    opacity: 1;
}

.wc-qp-selection-mode-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.wc-qp-selection-mode-info.single-mode {
    color: #d63638;
}

/* Rule group styles */
.wc-qp-rule-group {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background-color: #fafafa;
}

.wc-qp-rule-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.wc-qp-rule-group .wc-qp-packaging-option {
    margin-bottom: 10px;
    background-color: white;
}

.wc-qp-rule-group .wc-qp-selection-mode-info {
    font-size: 11px;
    font-weight: normal;
    margin: 0;
}

/* Mobile controls */
.wc-qp-mobile-controls {
    margin-bottom: 15px;
    text-align: right;
}

.wc-qp-view-toggle {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wc-qp-view-toggle:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.wc-qp-view-toggle:active {
    background: #dee2e6;
    transform: scale(0.98);
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    #wc-qp-packaging-container {
        margin: 10px 0;
        padding: 12px;
    }

    .wc-qp-rule-group {
        margin-bottom: 12px;
        padding: 8px;
    }

    .wc-qp-rule-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .wc-qp-packaging-option {
        padding: 8px;
        margin-bottom: 6px;
    }

    .wc-qp-packaging-image {
        width: 35px;
        height: 35px;
        margin-right: 8px;
    }

    .wc-qp-packaging-name {
        font-size: 13px;
    }

    .wc-qp-packaging-description {
        font-size: 11px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .wc-qp-packaging-price {
        font-size: 13px;
    }

    .wc-qp-selection-mode-info {
        font-size: 10px;
    }
}

/* Compact mobile view */
@media (max-width: 768px) {
    .wc-qp-compact-view .wc-qp-rule-options {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
    }

    .wc-qp-compact-view .wc-qp-packaging-option {
        flex-direction: column;
        text-align: center;
        padding: 8px;
        margin-bottom: 0;
        min-height: auto;
        justify-content: center;
    }

    .wc-qp-compact-view .wc-qp-packaging-image {
        width: 30px;
        height: 30px;
        margin: 0 0 5px 0;
        align-self: center;
    }

    .wc-qp-compact-view .wc-qp-packaging-option input[type="checkbox"] {
        margin: 0 0 5px 0;
        align-self: center;
    }

    .wc-qp-compact-view .wc-qp-packaging-name {
        font-size: 12px;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .wc-qp-compact-view .wc-qp-packaging-description {
        display: none;
    }

    .wc-qp-compact-view .wc-qp-packaging-price {
        font-size: 12px;
        font-weight: 700;
    }

    .wc-qp-compact-view .wc-qp-preselected-badge {
        display: block;
        margin: 2px 0 0 0;
        font-size: 9px;
        padding: 1px 4px;
    }
}