
/* Uploader - Drag and drop */

.uploader-drop .drop-area.is-valid {
    background: #24C30A10 !important;
    border-color: #24C30A80 !important;
}

.uploader-drop .drop-area.is-invalid {
    background: #c4183c10 !important;
    border-color: #c4183c80 !important;
}

.uploader-drop .drop-area.highlight {
    background: #007bff05 !important;
    border-color: #007bff80 !important;
}

.uploader-drop .drop-area img {
    max-height: 70px;
}

/* search bar */
.search-bar {
    position: relative;
    border: 1px solid #E0E0E0;
    border-radius: 200px;
}

.search-bar input {
    outline: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none;
    padding: 8px 44px 8px 16px;
    width: 100%;
    font-weight: 400;
    box-shadow: none !important;
}

.search-bar .material-symbols-outlined {
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    color: #ABB6BF;
}

/* select template */

.select-template-container.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.select-template .template-list .single-template label {
    padding: 5px 12px;
}

.fixed-continue-btn {
    left: 0;
    bottom: -100%;
    box-shadow: 0 -8px 12px #00000010;
    background: #ffffffbd;
    backdrop-filter: blur(12px);
    transition: bottom 0.4s ease;
}

.fixed-continue-btn.animate-show {
    bottom: 0;
}


/* past jobs table */

.past-jobs-table .header,
.past-jobs-table .job-row {
    display: grid;
    grid-template-columns: 1fr minmax(0, 1.5fr) 1fr 1fr 1fr 0.5fr;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    border-bottom: 1px solid #E0E0E0;
    padding: 10px 16px;
}

.past-jobs-table .job-row:last-of-type {
    border-bottom: 0;
}


/* Magic CTA */

.magic-cta-small ul {
    width: fit-content;
}


/* Rating */

.magic-ratings icon {
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
}

.magic-ratings icon:hover {
    transform: scale(1.1);
}

.magic-ratings icon img:nth-of-type(2) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.magic-ratings icon.selected img:nth-of-type(1) {
    opacity: 0;
}

.magic-ratings icon.selected img:nth-of-type(2) {
    display: block !important;
    opacity: 1 !important;
}

/* Before After slider */

.before-after-slider {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: none;
  outline: none;
  margin: 0;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  cursor: grab;
}

.before-after-slider-container .ba-slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  width: 14px;
  height: 100%;
}

.before-after-slider-container .ba-slider-line .line {
    background: #ffffff40;
    backdrop-filter: blur(8px);
}

.before-after-slider-container .ba-slider-line .icon {
    position: absolute;
    background: white;
    border-radius: 100px;
    width: 50px;
    height: 50px;
    top: 50%;
    left: 50%;
    box-shadow: 0 4px 12px #00000020;
    transform: translate(-50%, -50%);
}

.before-after-slider-container .background-img,
.before-after-slider-container .foreground-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
}

.before-after-slider-container .foreground-img {
    width: 50%;
    min-width: 50%;
}


.selected-template .details-container {
    max-width: 100%;
}

.selected-template .file-name {
    max-width: 100%;
}

/* Color swatches */

.color-swatch-row {
    gap: 16px;
}

.color-swatch {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    border-radius: 8px;
    padding: 8px;
}

.color-swatch .swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #E0E0E0 !important;
}

.color-swatch .hex {
    font-size: 14px;
}

.color-swatch.small {
    gap: 6px;
    min-width: 94px;
    border-radius: 6px;
    padding: 6px;
}

.color-swatch.small .swatch {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.color-swatch.small .hex {
    font-size: 12px;
}

.color-input-container .new-color-swatch-container .pickr,
.color-input-container .new-color-swatch-container .pickr .pcr-button {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}



/*
Range slider input center indicator version.
NOTE: This is only used in Magic currently, so we keep this here.
Move this to common CSS if used elsewhere as well.
*/

.range-slider-center-wrapper {
  position: relative;
  background: #e0e2e3;
  border-radius: 4px;
  height: 8px;
  width: 100%;
}

.range-slider-center-wrapper .fill-bar {
  position: absolute;
  top: 0;
  height: 8px;
  background: #0d6efd;
  border-radius: 4px;
  z-index: 1;
  pointer-events: none;
}

.range-slider-center {
    height: 100%;
    width: 100%;
    position: absolute;
    top:0;
    left: 0;
    border-radius: 4px;
    background: none;
    z-index: 2;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    --fill-color: #0d6efd;
    --thumb-color: #0d6efd;
    --track-color: #e9ecef;
    --center-indicator-color: #6c757d;
}

/* Webkit browsers (Chrome, Safari) */
.range-slider-center::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--thumb-color);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Firefox */
.range-slider-center::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--thumb-color);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    -moz-appearance: none;
}

.range-slider-center::-moz-range-track {
    background: var(--track-color);
    height: 6px;
    border-radius: 3px;
    border: none;
}





/* MEDIA QUERIES */

@media (min-width: 576px) {
    .selected-template .dot-details {
        border-left: 1px solid #E0E0E0;
    }

    .magic-cta-small ul {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .past-jobs-table .job-row .mobile-heading {
        display: none;
    }
}

@media (max-width: 991.97px) {
    .before-after-slider-container .ba-slider-line .icon {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 767.97px) {

    .past-jobs-table .header {
        display: none;
    }

    .past-jobs-table .job-row {
        grid-template-columns: 1fr minmax(0, 1.5fr);
        align-items: flex-start;
    }
}

@media (max-width: 575.97px) {

    .uploader-drop .drop-area img {
        max-height: 54px;
    }

    .selected-template .file-name img {
        max-height: 32px;
    }

    .color-swatch-row {
        gap: 12px;
    }

    .color-swatch {
        min-width: 100px;
        border-radius: 6px;
        padding: 6px;
    }

    .color-swatch .swatch {
        width: 20px;
        height: 20px;
    }

    .color-swatch .hex {
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    .past-jobs-table .job-row {
        grid-template-columns: 100%;
    }
}

@media (max-width: 350px) {

    .selected-template .file-name {
        flex-direction: column;
    }
}
