.collection-wrapper{

margin:50px auto;
padding:40px;
background:#fff;
border-radius:16px;
box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.cc-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
}

.cc-field label{
display:block;
font-weight:600;
margin-bottom:8px;
}

.cc-field input,
.cc-field select,
#collectionCaseForm textarea{
    width:100%;
    padding:14px;
    border:1px solid !important;
    border-radius:10px;
    background-color: #fff  !important;
}

textarea{
height:120px;
margin-top:20px;
}

.upload-box{
margin-top:20px;
padding:30px;
border:2px dashed #d0d0d0;
text-align:center;
border-radius:12px;
cursor:pointer;
}

.upload-row{
margin-top:15px;
}

.progress{
height:10px;
background:#eee;
border-radius:30px;
overflow:hidden;
margin-top:8px;
}

.progress-bar{
height:100%;
width:0%;
background:#0d6efd;
transition:.3s;
}

.progress-bar.completed{
background:#28a745;
width:100%;
}

.cc-submit{
    background:#111827;
    color:#fff;
    padding:14px 30px;
    border:none;
    border-radius:10px;
    margin-top:25px;
    cursor:pointer;
}

.payment-options{
    display:flex;
    gap:20px;
    margin:20px 0;
}

.payment-card{
    flex:1;
    border:2px solid #ddd;
    padding:20px;
    border-radius:12px;
    cursor:pointer;
    transition:.3s;
}
.payment-card h4 {
    display: inline;
}
.payment-card input{
    height: 20px;
    width: 20px;
}
.payment-card:hover{
    border-color:#111827;
}

.weight-grid{
    display:flex;
    gap:15px;
    margin:20px 0;
}

.weight-grid label{
    flex:1;
    padding:15px;
    border:1px solid #ddd;
    border-radius:10px;
    cursor:pointer;
    text-align:center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.weight-grid input{
    height: 20px;
    width: 20px;
}
.upload-row{
    display:flex;
    align-items:center;
    gap:15px;
    padding:15px;
    background:#fff;
    border:1px solid #eee;
    border-radius:12px;
    margin-top:15px;
}

.preview-image{
    width:80px;
    height:80px;
    object-fit:cover;
    border-radius:10px;
}

.file-info{
    flex:1;
}

.remove-file{
    background:#dc3545;
    color:#fff;
    border:none;
    padding:8px 12px;
    border-radius:8px;
    cursor:pointer;
}

.completed{
    background:#28a745 !important;
}

.case-success{
   
    margin:20px auto;
    background:#fff;
    padding:40px;
    border-radius:16px;
}

.case-success h2{
    color:#28a745;
    margin-bottom:20px;
}

.success-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin:25px 0;
}

.preview-wrap{
    width:80px;
}

.preview-image{
    width:80px;
    height:80px;
    object-fit:cover;
    border-radius:10px;
}

.remove-file{
    margin-left:auto;
    background:#dc3545;
    color:#fff;
    border:none;
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
}

.progress-bar.completed{
    background:#28a745;
}

.collection-intro {
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.collection-intro h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.collection-intro p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
}

.collection-intro p:last-child {
    margin-bottom: 0;
}
.overall-progress {
    width: 100%;
    height: 12px;
    background: #e5e5e5;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}
#overallUploadWrapper{
    margin-top: 10px;
}
#overallProgressBar {
    width: 0;
    height: 100%;
    background: #28a745;
    transition: .3s;
}
.collection-wrapper:has(.payment-options[style*="display: none"]) .primary-goal {
  margin-bottom: 24px;
}

.request-type {
    /* display: grid;
    grid-template-columns: repeat(2, 1fr); */
    /* gap: 15px; */
    margin: 20px 0;
}

.request-type select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}

.request-type select:focus {
    outline: none;
    border-color: #000;
}
@media (max-width: 768px) {
    .collection-intro {
        padding: 20px;
    }

    .collection-intro h2 {
        font-size: 24px;
    }

    .collection-intro p {
        font-size: 15px;
    }
}
.collection-thank-you-confirmation {
    max-width: 1100px;
    margin: 40px auto;
}

.case-header {
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-id {
    margin-top: 15px;
    display: inline-block;
    padding: 10px 18px;
    background: #f3f4f6;
    border-radius: 8px;
    font-weight: 600;
}

.case-details,
.case-files {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
    margin-top: 20px;
}

.case-grid > div {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
}

.case-grid strong {
    display: block;
    margin-bottom: 5px;
}

.case-grid span {
    color: #475569;
}

.case-comment {
    margin-top: 25px;
}

.case-comment p {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}

.case-images {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 20px;
    margin-top: 20px;
}

.case-image {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.case-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: .3s;
}

.case-image:hover img {
    transform: scale(1.05);
}

@media(max-width:428px) {
    .collection-wrapper{
        padding: 20px;
    }
    .cc-grid{
        display: flex;
        flex-direction: column;
    }
    .upload-box{
            padding: 10px;
    }
}
@media(max-width:768px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
    .payment-options{
        flex-direction: column;
    }
}

/* Collection Auth & Registration Form Styles */
.collection-login-required {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.cc-auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #edf2f7;
}

.cc-auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    font-size: 16px;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.cc-auth-tab:hover {
    color: #2d3748;
}

.cc-auth-tab.active {
    color: #2b6cb0;
    border-bottom-color: #2b6cb0;
}

.collection-login-required form p {
    margin-bottom: 16px;
}

.collection-login-required form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
}

.collection-login-required form input[type="text"],
.collection-login-required form input[type="password"],
.collection-login-required form input[type="email"] {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 8px !important;
    background-color: #f7fafc !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
}

.collection-login-required form input[type="text"]:focus,
.collection-login-required form input[type="password"]:focus,
.collection-login-required form input[type="email"]:focus {
    border-color: #3182ce !important;
    background-color: #fff !important;
    outline: none !important;
}

.collection-login-required form input[type="submit"] {
    width: 100% !important;
    padding: 12px !important;
    background-color: #2b6cb0 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.collection-login-required form input[type="submit"]:hover {
    background-color: #2c5282 !important;
}

/*Collection Payout Custom CSS */
.payout-form-container {
    max-width: 780px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    color: #333;
}

.payout-form-header {
    border-bottom: 2px solid #eef2f5;
    padding-bottom: 18px;
    margin-bottom: 25px;
}

.payout-form-header h2 {
    margin: 0 0 8px 0;
    color: #1a252f;
    font-size: 24px;
    font-weight: 700;
}

.payout-form-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.payout-amount-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payout-amount-box span {
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payout-amount-box strong {
    font-size: 26px;
    color: #1b5e20;
}

.payout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.payout-grid.full-width {
    grid-template-columns: 1fr;
}

.payout-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payout-field label {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.payout-field label span.required {
    color: #e11d48;
}

.payout-field input[type="text"],
.payout-field input[type="email"],
.payout-field input[type="date"],
.payout-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #f8fafc;
    transition: border-color 0.2s, background-color 0.2s;
}

.payout-field input:focus,
.payout-field select:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    outline: none;
}

.payout-legal-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 25px 0;
}

.payout-legal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.payout-legal-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.payout-legal-checkbox span {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.signature-wrapper {
    margin: 20px 0;
}

.signature-wrapper label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
}

.signature-pad-container {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    position: relative;
    touch-action: none;
}

.signature-pad-container canvas {
    display: block;
    width: 100%;
    height: 160px;
    border-radius: 6px;
    cursor: crosshair;
}

.signature-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.clear-signature-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.clear-signature-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.payout-submit-btn {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 15px;
}

.payout-submit-btn:hover {
    background-color: #1d4ed8;
}

.payout-submit-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.payout-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.payout-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.payout-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

@media (max-width: 640px) {
    .payout-grid {
        grid-template-columns: 1fr;
    }

    .payout-form-container {
        padding: 20px;
    }
}

.payout-ready-count {
    font-size: 13px;
    color: #2e7d32;
}

.payout-bank-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}

.payout-signature-hint {
    color: #64748b;
}


/* Card Row Status Highlighting & Badges */
table.frontend-imported-csv-table tbody tr.card-row-sold,
table.frontend-imported-csv-table tbody tr.card-row-sold td,
.card-row-sold,
.card-row-sold td {
    background-color: #fff3e0 !important;
    border-bottom: 1px solid #ffe0b2 !important;
}

table.frontend-imported-csv-table tbody tr.card-row-ready,
table.frontend-imported-csv-table tbody tr.card-row-ready td,
.card-row-ready,
.card-row-ready td {
    background-color: #e8f5e9 !important;
    border-bottom: 1px solid #a5d6a7 !important;
}

table.frontend-imported-csv-table tbody tr.card-row-requested,
table.frontend-imported-csv-table tbody tr.card-row-requested td,
.card-row-requested,
.card-row-requested td {
    background-color: #f3e8ff !important;
    border-bottom: 1px solid #e9d5ff !important;
}

.card-status-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

.card-status-badge.badge-sold {
    background: #e65100;
    color: #ffffff;
}

.card-status-badge.badge-ready {
    background: #2e7d32;
    color: #ffffff;
}

.card-status-badge.badge-requested {
    background: #6b21a8;
    color: #ffffff;
}

/* Imported Products Summary Table Classes */
.imported-products-summary-box {
    margin-top: 25px;
}

.imported-products-summary-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.imported-products-summary-title {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
    color: #23282d;
    font-size: 1.1em;
    font-weight: 600;
}

.imported-products-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.imported-products-summary-table th,
.imported-products-summary-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.summary-col-metric {
    width: 24%;
    font-weight: 700;
}

.summary-col-all {
    width: 19%;
    text-align: right;
    font-weight: 700;
}

.summary-col-sold {
    width: 19%;
    text-align: right;
    font-weight: 700;
    color: #2e7d32;
    background: #f0f7f4;
}

.summary-col-ready {
    width: 19%;
    text-align: right;
    font-weight: 700;
    color: #0288d1;
    background: #e1f5fe;
}

.summary-col-requested {
    width: 19%;
    text-align: right;
    font-weight: 700;
    color: #6b21a8;
    background: #faf5ff;
}

.summary-cell-metric {
    font-weight: 600;
}

.summary-cell-all {
    text-align: right;
}

.summary-cell-sold {
    text-align: right;
    font-weight: 600;
    color: #2e7d32;
    background: #f0f7f4;
}

.summary-cell-ready {
    text-align: right;
    font-weight: 600;
    color: #0288d1;
    background: #e1f5fe;
}

.summary-cell-requested {
    text-align: right;
    font-weight: 600;
    color: #6b21a8;
    background: #faf5ff;
}

.summary-cell-commission {
    font-weight: 600;
    color: #d94f4f;
}

.summary-cell-commission-sold {
    text-align: right;
    color: #d94f4f;
    background: #f0f7f4;
}

.summary-cell-commission-ready {
    text-align: right;
    color: #d94f4f;
    background: #e1f5fe;
}

.summary-cell-commission-requested {
    text-align: right;
    color: #d94f4f;
    background: #faf5ff;
}

.summary-final-row {
    background: #fbfbfb;
    font-size: 1.1em;
    font-weight: 700;
}

.summary-final-metric {
    font-weight: 700;
    color: #2e7d32;
}

.summary-final-all {
    text-align: right;
    font-weight: 700;
    color: #2e7d32;
}

.summary-final-sold {
    text-align: right;
    font-weight: 700;
    color: #2e7d32;
    background: #eaf5ee;
}

.summary-final-ready {
    text-align: right;
    font-weight: 700;
    color: #0288d1;
    background: #d0efff;
}

.summary-final-requested {
    text-align: right;
    font-weight: 700;
    color: #6b21a8;
    background: #f3e8ff;
}