:root {
    --wc-qc-dz-primary: #d91c5c;
    --wc-qc-dz-primary-hover: #b8164a;
    --wc-qc-dz-text: #333;
    --wc-qc-dz-text-light: #666;
    --wc-qc-dz-border: #ddd;
    --wc-qc-dz-bg: #fff;
    --wc-qc-dz-bg-light: #f9f9f9;
    --wc-qc-dz-radius: 8px;
    --wc-qc-dz-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wc-qc-dz-container {
    direction: ltr;
    text-align: left;
    background: var(--wc-qc-dz-bg);
    border: 1px solid var(--wc-qc-dz-border);
    border-radius: var(--wc-qc-dz-radius);
    padding: 24px;
    margin: 20px 0;
    box-shadow: var(--wc-qc-dz-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wc-qc-dz-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--wc-qc-dz-text);
    margin: 0 0 20px;
    text-align: center;
}

.wc-qc-dz-title::before {
    content: "👇";
    margin-left: 8px;
}

.wc-qc-dz-form-row {
    margin-bottom: 16px;
}

.wc-qc-dz-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wc-qc-dz-input,
.wc-qc-dz-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--wc-qc-dz-border);
    border-radius: var(--wc-qc-dz-radius);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--wc-qc-dz-bg);
    color: var(--wc-qc-dz-text);
}

.wc-qc-dz-input:focus,
.wc-qc-dz-select:focus {
    outline: none;
    border-color: var(--wc-qc-dz-primary);
    box-shadow: 0 0 0 3px rgba(217, 28, 92, 0.1);
}

.wc-qc-dz-input::placeholder {
    color: var(--wc-qc-dz-text-light);
}

.wc-qc-dz-select:disabled {
    background: var(--wc-qc-dz-bg-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.wc-qc-dz-delivery-modes {
    margin: 20px 0;
}

.wc-qc-dz-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--wc-qc-dz-text);
    margin-bottom: 12px;
}

.wc-qc-dz-delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wc-qc-dz-delivery-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--wc-qc-dz-border);
    border-radius: var(--wc-qc-dz-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--wc-qc-dz-bg);
}

.wc-qc-dz-delivery-card:hover {
    border-color: var(--wc-qc-dz-primary);
    background: rgba(217, 28, 92, 0.02);
}

.wc-qc-dz-delivery-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wc-qc-dz-delivery-card input[type="radio"]:checked + .wc-qc-dz-delivery-icon {
    background: var(--wc-qc-dz-primary);
}

.wc-qc-dz-delivery-card input[type="radio"]:checked ~ .wc-qc-dz-delivery-text {
    color: var(--wc-qc-dz-primary);
}

.wc-qc-dz-delivery-card input[type="radio"]:checked {
    border-color: var(--wc-qc-dz-primary);
}

.wc-qc-dz-delivery-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wc-qc-dz-bg-light);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.wc-qc-dz-delivery-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.wc-qc-dz-delivery-text strong {
    font-size: 14px;
    color: var(--wc-qc-dz-text);
}

.wc-qc-dz-delivery-text small {
    font-size: 12px;
    color: var(--wc-qc-dz-text-light);
}

.wc-qc-dz-delivery-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--wc-qc-dz-primary);
    margin-top: 4px;
}

.wc-qc-dz-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 16px;
    background: var(--wc-qc-dz-bg-light);
    border-radius: var(--wc-qc-dz-radius);
}

.wc-qc-dz-quantity label {
    font-weight: 500;
    color: var(--wc-qc-dz-text);
}

.wc-qc-dz-qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-qc-dz-qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--wc-qc-dz-border);
    border-radius: var(--wc-qc-dz-radius);
    background: var(--wc-qc-dz-bg);
    color: var(--wc-qc-dz-text);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-qc-dz-qty-btn:hover {
    background: var(--wc-qc-dz-primary);
    color: white;
    border-color: var(--wc-qc-dz-primary);
}

.wc-qc-dz-qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--wc-qc-dz-border);
    border-radius: var(--wc-qc-dz-radius);
    font-size: 16px;
    font-weight: 600;
}

.wc-qc-dz-qty-input::-webkit-inner-spin-button,
.wc-qc-dz-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wc-qc-dz-summary {
    background: var(--wc-qc-dz-bg-light);
    border-radius: var(--wc-qc-dz-radius);
    padding: 20px;
    margin: 20px 0;
}

.wc-qc-dz-summary h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--wc-qc-dz-text);
    margin: 0 0 16px;
    text-align: center;
}

.wc-qc-dz-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.wc-qc-dz-summary-row span {
    color: var(--wc-qc-dz-text-light);
}

.wc-qc-dz-summary-row strong {
    color: var(--wc-qc-dz-text);
}

.wc-qc-dz-summary hr {
    border: none;
    border-top: 1px solid var(--wc-qc-dz-border);
    margin: 16px 0;
}

.wc-qc-dz-grand-total {
    font-size: 16px;
    margin-bottom: 0;
}

.wc-qc-dz-grand-total strong {
    font-size: 18px;
    color: var(--wc-qc-dz-primary);
}

.wc-qc-dz-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--wc-qc-dz-primary);
    color: white;
    border: none;
    border-radius: var(--wc-qc-dz-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-qc-dz-submit-btn:hover {
    background: var(--wc-qc-dz-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 28, 92, 0.3);
}

.wc-qc-dz-submit-btn:active {
    transform: translateY(0);
}

.wc-qc-dz-submit-btn:disabled {
    background: var(--wc-qc-dz-text-light);
    cursor: not-allowed;
    transform: none;
}

.wc-qc-dz-messages {
    margin-top: 16px;
}

.wc-qc-dz-message {
    padding: 12px 16px;
    border-radius: var(--wc-qc-dz-radius);
    margin-bottom: 8px;
    font-size: 14px;
}

.wc-qc-dz-message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.wc-qc-dz-message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.wc-qc-dz-message.info {
    background: #eef;
    color: #33c;
    border: 1px solid #ccf;
}

.wc-qc-dz-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.wc-qc-dz-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid var(--wc-qc-dz-border);
    border-top-color: var(--wc-qc-dz-primary);
    border-radius: 50%;
    animation: wc-qc-dz-spin 0.8s linear infinite;
}

@keyframes wc-qc-dz-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 768px) {
    .wc-qc-dz-container {
        padding: 16px;
    }

    .wc-qc-dz-row-half {
        grid-template-columns: 1fr;
    }

    .wc-qc-dz-delivery-options {
        grid-template-columns: 1fr;
    }

    .wc-qc-dz-delivery-card {
        padding: 12px;
    }

    .wc-qc-dz-delivery-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .wc-qc-dz-quantity {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .wc-qc-dz-qty-controls {
        justify-content: center;
    }
}

.wc-qc-dz-error {
    padding: 16px;
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    border-radius: var(--wc-qc-dz-radius);
    text-align: center;
}

.wc-qc-dz-variations {
    margin: 20px 0;
}

.wc-qc-dz-variations .variations {
    margin-bottom: 0;
}

.wc-qc-dz-variations .variations select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--wc-qc-dz-border);
    border-radius: var(--wc-qc-dz-radius);
    font-size: 14px;
}
