/* Spezieria Returns - Frontend CSS v2.0.4 */

.sp-return-button-wrap {
    margin: 20px 0 10px;
}

.sp-return-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0a7f8f;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #0a7f8f;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}
.sp-return-button:hover {
    background-color: #086a78;
    border-color: #086a78;
    color: #fff !important;
}

.sp-return-page {
    max-width: 680px;
    padding: 28px 32px;
    background-color: #fbf9f4;
    color: #1d2327;
    border: 1px solid #e5dcc6;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.sp-return-page-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1d2327;
}

.sp-return-page-intro {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}
.sp-return-page-intro p {
    margin: 0 0 10px;
}
.sp-return-page-intro p:last-child {
    margin-bottom: 0;
}

.sp-return-page-order-ref {
    margin-bottom: 28px;
    padding: 12px 16px;
    background: #f7f7f7;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
}
.sp-return-page-order-ref a {
    font-weight: 600;
    color: #0a7f8f;
}

.sp-return-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sp-form-section {
    margin-bottom: 28px;
}

.sp-form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 12px;
}
.sp-form-section-title .required {
    color: #d63638;
}
.sp-form-section-title .sp-optional {
    font-weight: 400;
    font-size: 13px;
    color: #999;
}

.sp-return-form select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background-color: #fff;
    color: #1d2327;
    appearance: auto;
}
.sp-return-form select:focus {
    border-color: #0a7f8f;
    outline: none;
    box-shadow: 0 0 0 1px #0a7f8f;
}

.sp-return-form textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    background-color: #fff;
    color: #1d2327;
}
.sp-return-form textarea:focus {
    border-color: #0a7f8f;
    outline: none;
    box-shadow: 0 0 0 1px #0a7f8f;
}

.sp-return-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-return-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

.sp-return-item-check {
    flex-shrink: 0;
}
.sp-return-item-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.sp-return-item-name {
    flex: 1;
    font-size: 14px;
    color: #1d2327;
    font-weight: 500;
}

.sp-return-item-price {
    flex-shrink: 0;
    font-size: 13px;
    color: #787c82;
    min-width: 60px;
    text-align: right;
}

.sp-return-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.sp-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dcdcde;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.15s;
    line-height: 1;
}
.sp-qty-btn:hover {
    background: #f0f0f1;
    border-color: #0a7f8f;
    color: #0a7f8f;
}
.sp-qty-btn:first-child {
    border-radius: 4px 0 0 4px;
}
.sp-qty-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.sp-qty-input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: 1px solid #dcdcde;
    border-left: none;
    border-right: none;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    -moz-appearance: textfield;
    padding: 0;
}
.sp-qty-input::-webkit-inner-spin-button,
.sp-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sp-return-item.sp-item-unchecked .sp-return-item-name,
.sp-return-item.sp-item-unchecked .sp-return-item-price {
    opacity: 0.5;
}
.sp-return-item.sp-item-unchecked .sp-return-item-qty {
    opacity: 0.4;
    pointer-events: none;
}

.sp-upload-zone {
    position: relative;
}

.sp-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.sp-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px;
    border: 2px dashed #dcdcde;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.sp-upload-label:hover {
    border-color: #0a7f8f;
    background: #f7fafa;
}

.sp-upload-icon {
    font-size: 30px;
}
.sp-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: #0a7f8f;
}
.sp-upload-hint {
    font-size: 12px;
    color: #999;
}

.sp-upload-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #666;
}

.sp-upload-notice a {
    color: inherit;
    text-decoration: underline;
}

.sp-file-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.sp-file-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.sp-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sp-file-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.sp-file-remove:hover {
    background: #d63638;
}

.sp-refund-summary {
    background: #f7fafa;
    padding: 16px 20px;
    border-radius: 6px;
    border: 1px solid #d5e8ea;
}

.sp-refund-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    color: #1d2327;
}
.sp-refund-row strong {
    font-size: 18px;
    color: #0a7f8f;
}

.sp-return-msg {
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.sp-return-msg.sp-msg-success {
    background: #edfaef;
    border: 1px solid #00a32a;
    color: #006b1b;
}
.sp-return-msg.sp-msg-error {
    background: #fef0f0;
    border: 1px solid #d63638;
    color: #8a1114;
}

.sp-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.sp-btn-back {
    font-size: 14px;
    text-decoration: none;
    color: #666;
}
.sp-btn-back:hover {
    color: #333;
}

.sp-btn-submit {
    display: inline-block;
    padding: 14px 28px;
    background: #0a7f8f;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.sp-btn-submit:hover {
    background: #086a78;
}
.sp-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sp-return-status-section {
    margin-top: 30px;
    padding: 24px 28px;
    background-color: #fbf9f4;
    color: #1d2327;
    border: 1px solid #e5dcc6;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.sp-return-status-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #1d2327;
}

.sp-return-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden;
    background-color: #fff;
    color: #1d2327;
}

.sp-return-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.sp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}
.sp-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.sp-return-card-date {
    font-size: 13px;
    color: #787c82;
}

.sp-return-card-table {
    width: 100%;
    border-collapse: collapse;
}
.sp-return-card-table th {
    text-align: left;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #787c82;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #fafafa;
}
.sp-return-card-table td {
    padding: 10px 16px;
    font-size: 14px;
    border-top: 1px solid #f0f0f1;
}

.sp-return-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-return-card-actions {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f1;
}

.sp-cancel-return-btn {
    background: none;
    border: 1px solid #d63638;
    color: #d63638;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}
.sp-cancel-return-btn:hover {
    background: #d63638;
    color: #fff;
}
.sp-cancel-return-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sp-return-card--approved { border-color: #c3e6cb; }
.sp-return-card--approved .sp-return-card-header { background: #f0faf3; }
.sp-return-card--rejected { border-color: #f5c6cb; }
.sp-return-card--rejected .sp-return-card-header { background: #fef0f0; }
.sp-return-card--cancelled { border-color: #e0e0e0; opacity: 0.7; }

@media screen and (max-width: 600px) {
    .sp-return-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .sp-return-item-price {
        order: 3;
        min-width: auto;
    }
    .sp-return-item-qty {
        order: 4;
    }
    .sp-return-card-footer {
        flex-direction: column;
    }
    .sp-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        text-align: center;
    }
    .sp-btn-submit {
        width: 100%;
    }
}

.sp-guest-page {
    max-width: 680px;
}

.sp-guest-field {
    margin-bottom: 16px;
}

.sp-guest-page .sp-guest-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 6px;
}

.sp-guest-field label .required {
    color: #d63638;
}

.sp-guest-field input[type="text"],
.sp-guest-field input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background-color: #fff;
    color: #1d2327;
    box-sizing: border-box;
    font-family: inherit;
}

.sp-guest-field input[type="text"]:focus,
.sp-guest-field input[type="email"]:focus {
    border-color: #0a7f8f;
    outline: none;
    box-shadow: 0 0 0 1px #0a7f8f;
}

.sp-return-card-ship {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ededed;
}

.sp-ship-hint {
    margin: 0 0 8px;
    font-size: 13px;
    color: #50575e;
}

.sp-ship-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sp-ship-row .sp-ship-carrier,
.sp-ship-row .sp-ship-tracking {
    flex: 1 1 200px;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background-color: #fff;
    color: #1d2327;
    box-sizing: border-box;
    font-family: inherit;
}

.sp-ship-row .sp-ship-carrier:focus,
.sp-ship-row .sp-ship-tracking:focus {
    border-color: #0a7f8f;
    outline: none;
    box-shadow: 0 0 0 1px #0a7f8f;
}

.sp-mark-shipped-btn {
    flex: 0 0 auto;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #0a7f8f;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.sp-mark-shipped-btn:hover {
    background-color: #086470;
}

.sp-mark-shipped-btn:disabled {
    opacity: .6;
    cursor: default;
}

.sp-return-card-tracking {
    margin-top: 12px;
    font-size: 13px;
    color: #1d2327;
}
