/*!
Theme Name: Astra Child
Theme URI: https://crocoblock.com/
Author: Crocoblock
Author URI: https://crocoblock.com/
Description: Child theme for Astra with all CrocoBlock features compatibility.
Template: astra
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: astra-child
*/

.pinkdot span, .span_pink span {
    color: var(--e-global-color-accent);
}

.yellowdot span, .span_yellow span {
    color: var(--e-global-color-737bc2f);
}

/* Elementor upload field: card-style UI */
.elementor-field-group-logo_upload.elementor-field-type-upload {
    position: relative;
    border: 1px solid #e7e7eb;
    border-radius: 12px;
    background: #ffffff;
    min-height: 88px;
    overflow: hidden;
}

.elementor-field-group-logo_upload.elementor-field-type-upload::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: url("images/upload.svg") center / contain no-repeat;
    pointer-events: none;
}

.elementor-field-group-logo_upload .elementor-field-label.elementor-screen-only {
    position: absolute !important;
    left: 84px !important;
    top: 50% !important;
    transform: translateY(-50%);
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    z-index: 1;
    pointer-events: none;
}
.elementor-field-group-logo_upload .elementor-field-label.elementor-screen-only span{
    color: #4d576e;
}

/* change font size for table and mobile */
@media (max-width: 1024px) {
    .elementor-field-group-logo_upload .elementor-field-label.elementor-screen-only {
        font-size: 18px;
    }
}
@media (max-width: 720px) {
    .elementor-field-group-logo_upload .elementor-field-label.elementor-screen-only {
        font-size: 16px;
    }
}

.elementor-field-group-logo_upload .elementor-upload-field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.elementor-field-group-logo_upload.elementor-field-type-upload:hover {
    border-color: #cfd2d8;
}

.elementor-field-group-logo_upload.elementor-field-type-upload:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.elementor-field-group-logo_upload.elementor-field-type-upload.has-file {
    border-color: #16a34a;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.elementor-field-group-logo_upload.elementor-field-type-upload.has-file::after {
    content: attr(data-file-name);
    position: absolute;
    left: 84px;
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
    color: #166534;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    z-index: 1;
}

.elementor-field-group-logo_upload.elementor-field-type-upload.has-file .elementor-field-label.elementor-screen-only {
    opacity: 0;
}

.elementor-field-group-logo_upload.elementor-field-type-upload.has-file .elementor-field-label.elementor-screen-only span {
    opacity: 0;
}

@media (max-width: 767px) {
    .elementor-field-group-logo_upload.elementor-field-type-upload {
        min-height: 76px;
    }

    .elementor-field-group-logo_upload.elementor-field-type-upload::before {
        left: 18px;
        width: 32px;
        height: 32px;
    }

    .elementor-field-group-logo_upload .elementor-field-label.elementor-screen-only {
        left: 64px !important;
        font-size: 18px;
    }

    .elementor-field-group-logo_upload.elementor-field-type-upload.has-file::after {
        left: 64px;
        font-size: 16px;
    }
}


/* remove padding on last p in elementor text editor */
.elementor-widget-text-editor .elementor-widget-container p:last-child {
    margin-bottom: 0!important;
    margin-block-end: 0!important;
}

