.qo-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--qo-font, 'Poppins', 'Hind Siliguri', sans-serif);
    padding: 20px;
    color: #333;
}

.qo-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
@media(max-width: 768px) { .qo-cards-grid { grid-template-columns: 1fr; } }

.qo-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.qo-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}
.qo-select-card {
    margin-top: 8px;
    transform: scale(1.3);
    cursor: pointer;
    accent-color: var(--qo-primary, #1b5e20);
}
.qo-img-wrap img {
    width: 75px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}
.qo-info {
    flex-grow: 1;
}
.qo-info h4 {
    font-size: 14px;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-weight: 600;
    color: #111;
}
.qo-size-selector-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}
.qo-size-label {
    font-weight: 500;
    color: #555;
}
.qo-size-checkboxes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Modern Size Pill Buttons with Dynamic Primary Color */
.qo-size-lbl {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.qo-size-lbl input[type="checkbox"] {
    display: none;
}
.qo-size-lbl span {
    border: 1px solid #cbd5e1;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: #f8fafc;
    color: #334155;
    transition: all 0.2s ease-in-out;
}
.qo-size-lbl input[type="checkbox"]:checked + span {
    background: var(--qo-primary, #1b5e20);
    color: #fff;
    border-color: var(--qo-primary, #1b5e20);
    box-shadow: 0 2px 4px rgba(27, 94, 32, 0.2);
}

.qo-card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.qo-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
}
.qo-qty-control button {
    background: #f1f5f9;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}
.qo-qty-control input {
    width: 32px;
    text-align: center;
    border: none;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: #333;
}
.qo-card-price {
    font-weight: 700;
    font-size: 15px;
    color: var(--qo-primary, #1b5e20);
}

.qo-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media(max-width: 768px) { .qo-bottom-section { grid-template-columns: 1fr; } }

.qo-form-col, .qo-summary-col {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04);
}
.qo-form-col h3, .qo-summary-col h3 {
    margin-top: 0;
    font-size: 18px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 18px;
    color: #1e293b;
    font-weight: 600;
}
.qo-field {
    margin-bottom: 15px;
}
.qo-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #475569;
}
.qo-field label span { color: #dc2626; }
.qo-field input[type="text"], .qo-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
}
.qo-field input[type="text"]:focus, .qo-field textarea:focus {
    outline: none;
    border-color: var(--qo-primary, #1b5e20);
    box-shadow: 0 0 0 3px rgba(27,94,32,0.1);
}
.qo-shipping-radios label {
    display: block;
    font-weight: normal;
    margin-bottom: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #334155;
}
.qo-shipping-radios input[type="radio"] {
    accent-color: var(--qo-primary, #1b5e20);
}
.qo-confirm-btn {
    font-family: inherit;
    background: var(--qo-primary, #1b5e20);
    color: #fff;
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
.qo-confirm-btn:hover {
    background: var(--qo-hover, #2e7d32);
}

/* Modern Product Details Table & Centered Delete Button */
.qo-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.qo-summary-table th, .qo-summary-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
}
.qo-summary-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
}
.qo-summary-table tfoot td {
    font-weight: 600;
    background: #f8fafc;
}
.qo-summary-table td:first-child {
    text-align: center;
    vertical-align: middle;
}
.qo-del-row-btn {
    background: #fee2e2;
    border: none;
    color: #dc2626;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.qo-del-row-btn:hover {
    background: #f87171;
    color: #fff;
}