/* Returns module — public return form (/retur) */

.rt-page {
    padding: 40px 0 60px;
    background: #f5f6f8;
}
.rt-container {
    max-width: 760px;
}
.rt-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1f2937;
    text-align: center;
}
.rt-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* Progress */
.rt-progress {
    position: relative;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 30px;
}
.rt-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #2563eb;
    border-radius: 4px;
    transition: width 0.3s ease;
}
.rt-progress-steps {
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    display: flex;
    justify-content: space-between;
}
.rt-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.rt-dot.active {
    background: #2563eb;
    color: #fff;
}
.rt-dot.done {
    background: #16a34a;
    color: #fff;
}

/* Steps */
.rt-step-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1f2937;
}
.rt-step-desc {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px;
}

/* Fields */
.rt-field {
    margin-bottom: 16px;
}
.rt-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}
.rt-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s;
}
.rt-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Buttons */
.rt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rt-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.rt-btn-primary {
    background: #2563eb;
    color: #fff;
}
.rt-btn-primary:hover:not([disabled]) {
    background: #1d4ed8;
}
.rt-btn-light {
    background: #f3f4f6;
    color: #374151;
}
.rt-btn-light:hover {
    background: #e5e7eb;
}
.rt-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

/* Orders list */
.rt-orders {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rt-order {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.rt-order:hover {
    border-color: #2563eb;
    background: #f8faff;
}
.rt-order-num {
    font-weight: 700;
    color: #1f2937;
}
.rt-order-date {
    font-size: 13px;
    color: #6b7280;
}
.rt-order-total {
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
}
.rt-order-done {
    font-size: 12px;
    color: #b45309;
    background: #fef3c7;
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 8px;
}
.rt-order-rejected {
    color: #b91c1c;
    background: #fee2e2;
}

/* Products */
.rt-order-meta {
    background: #f8faff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #1e40af;
}
.rt-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rt-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.rt-product.selected {
    border-color: #2563eb;
    background: #f8faff;
}
.rt-product-check {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}
.rt-product-info {
    flex: 1;
    min-width: 0;
}
.rt-product-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}
.rt-product-sub {
    font-size: 12px;
    color: #6b7280;
}
.rt-qty-stepper {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}
.rt-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1f2937;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.rt-qty-btn:hover { background: #eef2f7; }
.rt-qty-badge {
    display: inline-block;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 1px 8px;
    font-weight: 600;
}
.rt-qty-note {
    font-size: 12px;
    color: #475569;
    margin-top: 4px;
}
.rt-qty-all {
    border: 0;
    background: none;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    text-decoration: underline;
}
.rt-product-qty {
    width: 56px;
    padding: 6px 6px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}
.rt-product-price {
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
}
.rt-total {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

/* Messages */
.rt-msg {
    margin: 12px 0;
    font-size: 14px;
}
.rt-msg.error {
    color: #b91c1c;
}
.rt-msg.info {
    color: #1d4ed8;
}

/* Success */
.rt-success {
    text-align: center;
    padding: 20px 0;
}
.rt-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.rt-success-id {
    color: #6b7280;
    margin-bottom: 24px;
}

/* Pickup address step */
.rt-addr-box {
    border: 1px solid #dbeafe;
    background: #f8faff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.rt-addr-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}
.rt-addr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
}
.rt-addr-wide {
    grid-column: 1 / -1;
}
.rt-addr-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.rt-addr-val {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    word-break: break-word;
}
.rt-addr-note {
    display: block;
    margin-top: 10px;
    color: #9ca3af;
    font-size: 12px;
}
.rt-choice {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.rt-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    margin: 0;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}
.rt-radio:hover {
    border-color: #93c5fd;
    background: #f8faff;
}
.rt-radio.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.rt-radio input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    flex: 0 0 auto;
}

/* Selects styled like the text inputs */
select.rt-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
}
.rt-alt-addr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    padding-top: 4px;
}
.rt-alt-addr[hidden] {
    display: none !important;
}
.rt-alt-addr .rt-field {
    grid-column: 1 / -1;
}
.rt-alt-addr .rt-field-half {
    grid-column: span 1;
}

/* Misc */
.rt-req {
    color: #dc2626;
    font-weight: 700;
}
.rt-hint {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

@media (max-width: 576px) {
    .rt-card {
        padding: 18px;
    }
    .rt-progress-steps {
        top: -14px;
    }
    .rt-dot {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    /* Produsul: numele primeste TOATA latimea (nu mai e strans pe o coloana
       ingusta de flexbox, de unde textul parea „pe verticala”), iar cantitatea
       si pretul trec pe randul urmator. */
    .rt-product {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        grid-template-areas:
            "check name"
            "qty   price";
        align-items: start;
        column-gap: 10px;
        row-gap: 8px;
    }
    .rt-product-check {
        grid-area: check;
        margin-top: 3px;
    }
    .rt-product-info {
        grid-area: name;
        min-width: 0;
    }
    .rt-product-name {
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.35;
    }
    .rt-product-sub,
    .rt-qty-note {
        overflow-wrap: anywhere;
    }
    .rt-qty-stepper {
        grid-area: qty;
        justify-self: start;
        margin-top: 2px;
    }
    .rt-product-price {
        grid-area: price;
        justify-self: end;
        align-self: center;
        min-width: 0;
        text-align: right;
    }
}
