:root {
     --cp-border: rgba(0, 0, 0, 0.1);
     --cp-transition: 220ms cubic-bezier(.4,0,.2,1);
}
 .cp-app {
     min-height: 70vh;
}

/* SEARCH FORM */

 .cp-search-bar {
     position: relative;
     max-width: 620px;
     margin: 0 auto 2rem;
}

.cp-search-bar p {
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
}

 .cp-search-wrap {
    height: 54px;
     padding: 0 20px;
     display: flex;
     align-items: center;
     background-color: var(--wp--preset--color--white);
     border: 1.5px solid var(--cp-border);
     border-radius: 50px;
     box-shadow: 0 4px 24px rgba(26,26,46,.07);
     transition: border-color var(--cp-transition), box-shadow var(--cp-transition);
}
 .cp-search-wrap:focus-within {
     border-color: #c0c0c0;
}
 .cp-search-icon {
     flex-shrink: 0;
     margin-right: 10px;
     display: flex;
     align-items: center;
}
 .cp-search-input {
     flex: 1;
     border: none;
     outline: none;
     background-color: transparent;
}

/* SPINNER */

 .cp-spinner {
     display: flex;
     align-items: center;
     margin-left: 0.5rem;
}
 .cp-spin {
     width: 18px;
     height: 18px;
     border: 2.5px solid var(--cp-border);
     border-top-color: var(--wp--preset--color--tertiary);
     border-radius: 50%;
     animation: cp-rotate .7s linear infinite;
}

 @keyframes cp-rotate {
     to {
         transform: rotate(360deg);
    }
}

/* DROPDOWN */

 .cp-suggestions {
     max-height: 320px;
     padding: 0;
     background-color: var(--wp--preset--color--white);
     border: 1.5px solid var(--cp-border);
     border-radius: var(--inz-radius);
     box-shadow: 0 12px 48px rgba(26,26,46,.12);
     list-style: none;
     overflow-y: auto;
     position: absolute;
     left: 0;
     right: 0;
     top: calc(100% + 8px);
     z-index: 999;
     animation: cp-dropdown .18s ease;
}
 @keyframes cp-dropdown {
     from {
         opacity:0;
         transform:translateY(-6px);
    }
}
 .cp-suggestions li {
     display: flex;
     align-items: center;
     gap: 1rem;
     padding: 0.6rem 1rem;
     cursor: pointer;
     transition: background var(--cp-transition);
}
 .cp-suggestions li:hover, .cp-suggestions li.cp-hover {
     background-color: #F7F5F2;
}
 .cp-suggestions li:not(:last-child) {
     border-bottom: 1px solid var(--cp-border);
}
 .cp-sug-thumb {
     width: 40px;
     height: 40px;
     object-fit: cover;
     border-radius: 6px;
     border: 1px solid var(--cp-border);
     flex-shrink: 0;
}
 .cp-sug-info {
     display: flex;
     flex-direction: column;
     min-width: 0;
}
 .cp-sug-name {
     font-weight: 500;
     letter-spacing: 0;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
}
 .cp-sug-brand {
     font-size: 0.8rem;
}
 .cp-sug-disabled {
     opacity: .45;
     pointer-events: none;
}
 .cp-sug-tag {
    padding: 2px 8px;
    margin-left: auto;
    background-color: var(--wp--preset--color--secondary);
    border-radius: 20px;
    color: var(--wp--preset--color--white);
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
}

/* SLOTS */
 .cp-slots {
     display: flex;
     gap: 1rem;
     justify-content: center;
     flex-wrap: wrap;
     margin-bottom: 2rem;
}
 .cp-slot {
     width: 9rem;
     background-color: var(--wp--preset--color--white);
     border: 1.5px dashed #C0C0C0;
     border-radius: var(--inz-radius);
     padding: 1rem;
     text-align: center;
     transition: border-color var(--cp-transition), box-shadow var(--cp-transition);
     animation: cp-slot-in .28s ease both;
}

 @keyframes cp-slot-in {
     from {
         opacity:0;
         transform:scale(.94);
    }
}
 .cp-slot.cp-slot--filled {
     border-color: var(--cp-border);
     border-style: solid;
     box-shadow: 0 4px 24px rgba(26,26,46,.07);
}
 .cp-slot.cp-slot--empty {
     opacity: .5;
     cursor: default;
}
 .cp-slot.cp-slot--add {
     cursor: pointer;
     border-style: dashed;
     opacity: 1;
}
 .cp-slot.cp-slot--add:hover {
     background-color: #ffeff2;
     box-shadow: 0 0 10px 0px rgba(0,0,0,.1);
}
 .cp-slot__thumb {
     width: 80px;
     height: 80px;
     object-fit: contain;
     border-radius: 0.5rem;
     border: 1px solid var(--cp-border);
     margin: 0 auto 0.5rem;
     display: block;
}
 .cp-slot__name {
     font-size: 0.8rem;
     font-weight: 600;
     letter-spacing: 0;
     line-height: 1.4;
     margin-bottom: 0.5rem;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
}
 .cp-slot__brand {
     font-size: 0.7rem;
     color: var(--wp--preset--color--secondary);
     text-transform: uppercase;
}
 .cp-slot__remove {
     width: 22px;
     height: 22px;
     border-radius: 50%;
     border: none;
     background-color: var(--wp--preset--color--light);
     color: #c0c0c0;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 14px;
     line-height: 1;
     position: absolute;
     top: 8px;
     right: 8px;
     transition: background var(--cp-transition), color var(--cp-transition);
}
 .cp-slot__remove:hover {
     background-color: #D94F4F;
     color: var(--wp--preset--color--white);
}
 .cp-slot__add-icon {
     width: 40px;
     height: 40px;
     margin: 0 auto 0.8rem;
     border-radius: 50%;
     background-color: #ffeff2;
     color: var(--wp--preset--color--tertiary);
     display: flex;
     align-items: center;
     justify-content: center;
}
 .cp-slot__add-label {
     font-size: 0.8rem;
     font-weight: 500;
}
 .cp-slot__placeholder-icon {
     width: 40px;
     height: 40px;
     margin: 0 auto 0.8rem;
     color: var(--cp-border);
     opacity: .6;
}
 .cp-slot__placeholder-label {
     font-size: 0.85rem;
     color: var(--cp-border);
}

/* TABLE */
 .cp-table-wrap {
     animation: cp-fade-up .35s ease both;
}
 @keyframes cp-fade-up {
     from {
         opacity:0;
         transform:translateY(16px);
    }
}
 .cp-table-scroll {
     overflow-x: auto;
     border-radius: var(--inz-radius);
     box-shadow: 0 12px 48px rgba(26,26,46,.12);
     border: 1px solid var(--cp-border);
}
 .cp-table {
     width: 100%;
     min-width: 600px;
     border-collapse: collapse;
     background-color: var(--wp--preset--color--white);
     font-size: 0.9rem;
}

 .cp-table thead tr:first-child th {
     padding: 1rem;
     background-color: var(--wp--preset--color--secondary);
     color: var(--wp--preset--color--white);
     vertical-align: top;
     border-right: 1px solid rgba(255,255,255,.08);
}

.cp-table thead tr:first-child th:first-child {
     background-color: var(--wp--preset--color--secondary);
     color: rgba(255,255,255,.4);
     font-weight: 400;
     vertical-align: middle;
}
 .cp-th-product {
     text-align: center;
     min-width: 150px;
}
 .cp-th-product img {
     width: 72px;
     height: 72px;
     object-fit: contain;
     border-radius: 8px;
     border: 2px solid rgba(255,255,255,.15);
     display: block;
     margin: 0 auto 0.8rem;
}
 .cp-th-product-name {
    max-width: 10rem;
    margin: 0 auto;
    line-height: 1.2;
}

.cp-th-product a {
    border-bottom: 1px solid;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.6;
}

 .cp-table tbody tr {
     border-top: 1px solid var(--cp-border);
     transition: background var(--cp-transition);
}
 .cp-table tbody tr:hover {
     background-color: #FDFCFA;
}
 .cp-table tbody tr:nth-child(even) {
     background-color: #FAFAF8;
}
 .cp-table tbody tr:nth-child(even):hover {
     background-color: #F5F3EF;
}
 .cp-table td {
     padding: 0.9rem 1.1rem;
     vertical-align: middle;
     border-right: 1px solid var(--cp-border);
     line-height: 1.5;
}
 .cp-table td:last-child {
     border-right: none;
}
 .cp-td-label {
     font-weight: 600;
     font-size: 0.8rem;
     text-transform: uppercase;
     background-color: var(--wp--preset--color--light) !important;
     min-width: 120px;
     white-space: nowrap;
}
 .cp-td-value {
     font-size: 0.9rem;
     text-align: center;
}
 .cp-td-value.cp-empty-val {
     color: var(--cp-border);
     font-size: 20px;
}

.cp-th-brand-logo {
    max-width: 4.5rem;
}

@media (min-width: 768px) {
     .cp-th-product img {
        width: 220px;
        height: 220px;
     }
}

/* ACTIONS */
 .cp-actions {
     display: flex;
     justify-content: center;
     padding: 2rem 0 0.5rem;
}
 .cp-btn-reset {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     padding: 1rem 2rem;
     border: 1.5px solid var(--wp--preset--color--secondary);
     background-color: transparent;
     color: var(--wp--preset--color--secondary);
     font-size: 0.8rem;
     font-weight: 600;
     border-radius: 50px;
     cursor: pointer;
     transition: background var(--cp-transition), color var(--cp-transition);
}
 .cp-btn-reset:hover {
     background-color: var(--wp--preset--color--secondary);
     color: var(--wp--preset--color--white);
}

/* EMPTY */

 .cp-empty {
     padding: 3rem 1rem;
     text-align: center;
}
 .cp-empty-icon {
     width: 96px;
     height: 96px;
     margin-bottom: 1.5rem;
     border-radius: 50%;
     box-shadow: 0 4px 24px rgba(26,26,46,.07);
     color: var(--wp--preset--color--tertiary);
     display: inline-flex;
     align-items: center;
     justify-content: center;
}
 .cp-empty-title {
     font-size: 1.5rem;
     font-weight: 600;
     margin-bottom: 0.5rem;
}
 .cp-empty-sub {
     max-width: 340px;
     margin: 0 auto;
     line-height: 1.6;
}

/* MEDIA QUERIES */

 @media (max-width: 600px) {
     .cp-slot {
         width: calc(50% - 8px);
    }
     .cp-table-scroll {
         border-radius: 8px;
    }

    .cp-table td {
        padding: 0.6rem;
    }
}