:root {
    --dunlo-border: #e7e7e7;
    --dunlo-bg: #fafafa;
    --dunlo-radius: 12px;
    --dunlo-accent: #2271b1;
}

.dunlo-takeback-box,
.dunlo-takeback-checkout {
    border: 1px solid var(--dunlo-border);
    border-radius: var(--dunlo-radius);
    padding: 18px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background: #fff;
}

.dunlo-takeback-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px 0;
}

.dunlo-takeback-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px 0;
}

.dunlo-takeback-box {
    border: 1px solid var(--dunlo-border);
    border-radius: var(--dunlo-radius);
    padding: 18px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background: #fff;
}

.dunlo-takeback-box .dunlo-takeback-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--dunlo-border);
    border-radius: 8px;
    background: var(--dunlo-bg);
    transition: border-color 0.2s ease;
}

.dunlo-takeback-box .dunlo-takeback-item:has(input[type="checkbox"]:checked) {
    border-color: var(--dunlo-accent);
}

.dunlo-takeback-box .dunlo-takeback-item-image {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.dunlo-takeback-box .dunlo-takeback-item-image img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.dunlo-takeback-box .dunlo-takeback-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.dunlo-takeback-box .dunlo-takeback-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

.dunlo-takeback-box .dunlo-takeback-amount {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.dunlo-takeback-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--dunlo-accent);
    flex-shrink: 0;
}

.dunlo-takeback-checkout {
    border: 1px solid var(--dunlo-border);
    border-radius: var(--dunlo-radius);
    padding: 18px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background: #fff;
}

.dunlo-takeback-checkout .dunlo-takeback-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--dunlo-border);
    border-radius: 8px;
    background: var(--dunlo-bg);
    transition: border-color 0.2s ease;
}

.dunlo-takeback-checkout .dunlo-takeback-item:has(input[type="checkbox"]:checked) {
    border-color: var(--dunlo-accent);
}

.dunlo-takeback-checkout .dunlo-takeback-item-image {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.dunlo-takeback-checkout .dunlo-takeback-item-image img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.dunlo-takeback-checkout .dunlo-takeback-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.dunlo-takeback-checkout .dunlo-takeback-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

.dunlo-takeback-checkout .dunlo-takeback-amount {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.dunlo-takeback-checkout input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--dunlo-accent);
    flex-shrink: 0;
}

.dunlo-takeback-cart-row {
    border: 1px solid var(--dunlo-border);
    border-radius: var(--dunlo-radius);
    padding: 18px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background: #fff;
}

.dunlo-takeback-cart-row .dunlo-takeback-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--dunlo-border);
    border-radius: 8px;
    background: var(--dunlo-bg);
    transition: border-color 0.2s ease;
}

.dunlo-takeback-cart-row .dunlo-takeback-item:has(input[type="checkbox"]:checked) {
    border-color: var(--dunlo-accent);
}

.dunlo-takeback-cart-row .dunlo-takeback-item-image {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.dunlo-takeback-cart-row .dunlo-takeback-item-image img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.dunlo-takeback-cart-row .dunlo-takeback-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.dunlo-takeback-cart-row .dunlo-takeback-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

.dunlo-takeback-cart-row .dunlo-takeback-amount {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.dunlo-takeback-cart-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--dunlo-accent);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .dunlo-takeback-box .dunlo-takeback-item,
    .dunlo-takeback-checkout .dunlo-takeback-item,
    .dunlo-takeback-cart-row .dunlo-takeback-item {
        flex-wrap: wrap;
    }

    .dunlo-takeback-box .dunlo-takeback-item-info,
    .dunlo-takeback-checkout .dunlo-takeback-item-info,
    .dunlo-takeback-cart-row .dunlo-takeback-item-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

.dunlo-takeback-loading {
    position: relative;
    pointer-events: none;
}

.dunlo-takeback-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: #646970;
    border-radius: 50%;
    animation: dunlo-takeback-spin 0.8s linear infinite;
    z-index: 100;
}

@keyframes dunlo-takeback-spin {
    to { transform: rotate(360deg); }
}

.dunlo-takeback-progress {
    margin-top: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.dunlo-takeback-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dunlo-takeback-progress-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.dunlo-takeback-progress-percent {
    font-size: 12px;
    color: #2271b1;
    font-weight: 700;
    background: rgba(34, 113, 177, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.dunlo-takeback-progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.dunlo-takeback-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dunlo-takeback-progress-text {
    font-size: 13px;
    color: #334155;
    margin: 10px 0 0 0;
    font-weight: 500;
    text-align: center;
}

.dunlo-takeback-progress-complete {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #86efac;
}

.dunlo-takeback-progress-complete .dunlo-takeback-progress-label {
    color: #166534;
}

.dunlo-takeback-progress-complete .dunlo-takeback-progress-percent {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.15);
}

.dunlo-takeback-progress-complete .dunlo-takeback-progress-text {
    color: #166534;
    font-weight: 700;
    font-size: 14px;
}

.dunlo-takeback-progress-complete .dunlo-takeback-progress-fill {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
}
