/* Advanced Options Styles */

.cpf-advanced-options {
    width: 100%;
    margin-top: 0px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.cpf-advanced-options-inner {
    margin-bottom: 25px;
}

/* Section Styles */
.cpf-section {
    margin-bottom: 25px;
}

.cpf-section:last-child {
    margin-bottom: 0;
}

.cpf-section-title, #cpf-file-upload-section label{
    margin: 0 0 15px 0;
    font-size: var(--font-20);
    font-family: "Inter", sans-serif;
    font-weight: bold;
}

/* Bulk Discounts Table */
.cpf-bulk-discounts-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cpf-discount-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cpf-discount-table thead th,
.cpf-discount-table thead td {
    background: #0073aa;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.cpf-discount-table tbody th {
    font-weight: bold;
}

.cpf-discount-table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.cpf-discount-table tbody tr:last-child td {
    border-bottom: none;
}

.cpf-discount-table tbody tr {
    transition: background-color 0.2s ease;
}

/*.cpf-discount-table tbody tr:hover {
    background-color: #f5f5f5;
}*/

/*.cpf-discount-table tbody tr.cpf-discount-active {
    background-color: #e8f5e8 !important;
    font-weight: 600;
}*/

/*.cpf-discount-table tbody tr.cpf-discount-active td {
    color: #2e7d32;
}*/

.cpf-discount-info {
    display: none;
    padding: 12px 15px;
    background: #e7f3ff;
    border-left: 3px solid #2271b1;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.cpf-discount-info strong {
    color: #2271b1;
}

/* Print Locations Grid */
.cpf-pl-grid {display: grid;grid-template-columns: 1fr 1fr 1fr;grid-gap: 15px;margin-bottom: 15px;padding-top: 0px;}
.cpf-pl-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cpf-pl-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cpf-pl-checkbox:checked+.cpf-pl-content {
    border-color: rgba(0, 164, 230, 0.1) !important;
    background: rgba(0, 164, 230, 0.1);
}

.cpf-pl-content {
    font-size: var(--font-16);
    font-weight: 400;
    font-family: "Inter", sans-serif;
    color: #231f20;
    line-height: 1.3;
    letter-spacing: 1px;
    border: solid 1px #ccc;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.cpf-pl-card:has(.cpf-pl-checkbox:checked) {
    border-color: #2271b1;
    background: #f0f7ff;
}

.cpf-pl-image img {
    width: 4.5rem !important;
    height: 4.5rem !important;
    object-fit: contain;
}





.cpf-pl-title,
.cpf-pl-price {
    font-size: .8rem;
    color: #231f20;
}

.cpf-pl-info {
    display: inline-block;
}

/* File Options Dropdown */

.cpf-file-option-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: var(--font-20);
    font-family: "Inter", sans-serif;
}


.cpf-file-option-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Stored file list */
.cpf-stored-files {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.cpf-stored-files li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    margin-bottom: 4px;
    background: #f4f6f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.cpf-stored-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 8px;
}

.cpf-remove-file,
.cpf-remove-artwork {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
}

.cpf-remove-file:hover,
.cpf-remove-artwork:hover {
    color: #fff;
}

/* Bulk Discounts Table */
.cpf-bulk-discounts-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cpf-discount-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.cpf-discount-table thead th,
.cpf-discount-table thead td {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    text-align: left;
    padding: .7rem;
    font-size: var(--font-18);
    font-family: "Inter", sans-serif;
}

.cpf-discount-table tbody th {
    font-weight: bold;
}

.cpf-discount-table tbody td {
    padding: 12px 10px;
    font-size: var(--font-20);
    font-family: "Inter", sans-serif;
    border-bottom: 1px solid #f0f0f0;
    color: #817d7e;
}

.cpf-discount-table tbody tr {
    transition: background-color 0.2s ease;
}

/*.cpf-discount-table tbody tr:hover {
    background: #f9f9f9;
}*/

/*.cpf-discount-table tbody tr.cpf-discount-active {
    background: #e7f3ff;
    border-left: 3px solid #2271b1;
}*/

/*.cpf-discount-table tbody tr.cpf-discount-active td {
    font-weight: 600;
    color: #2271b1;
}*/

.cpf-discount-info {
    display: none;
    padding: 12px 15px;
    background: #e7f3ff;
    border-left: 3px solid #2271b1;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.cpf-discount-info strong {
    color: #2271b1;
}


.cpf-pl-grid [type="checkbox"],
.cpf-pl-grid [type="radio"] {
    display: none;
}

/* Button Wrapper Styles */
.cpf-cart-button-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cpf-cart-button-wrapper .button {
    flex: 0 0 auto;
    min-width: 150px;
}




.cpf-message {
    width: 100%;
    margin-top: 10px;
}

/* Vertical Table Discount Selection Highlighting */
.cpf-discount-table tbody td.cpf-discount-active {
    background-color: #e8f5e8 !important;
    font-weight: 600;
    color: #2e7d32;
    border: 1px solid #4caf50;
}
 
/* Optional: Add subtle animation for selection change */
.cpf-discount-table tbody td {
    transition: all 0.3s ease;
}
 
/* Optional: Highlight entire column when discount is active */
.cpf-discount-table tbody td.cpf-discount-active {
    position: relative;
}
 
.cpf-discount-table tbody td.cpf-discount-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(76, 175, 80, 0.1);
    pointer-events: none;
}
 
/* Optional: Add visual indicator for active discount column */
.cpf-discount-table tbody td.cpf-discount-active::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    color: #4caf50;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .cpf-pl-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .cpf-discount-table {
        font-size: 12px;
    }

    .cpf-discount-table thead th,
    .cpf-discount-table tbody td {
        padding: 8px 6px;
    }
}

@media screen and (max-width: 480px) {
    .cpf-pl-grid {
        grid-template-columns: 1fr;
    }

    .cpf-advanced-options {
        padding: 15px;
    }
}