/*
Theme Name: profitfarm-child
Description: Child theme for Neve
Template: neve
Version: 1.0.0
Text Domain: profitfarm-child
*/

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
}

p {
    margin-bottom: 18px;
}

@media (min-width: 960px) {
    .builder-item--logo {
        --maxwidth: 180px;
        --fs: 24px;
        --padding: 10px 0;
        --margin: 0;
        --textalign: left;
        --justify: flex-start;
    }
}

.wp-block-group.has-border-color.has-background {
    position: relative;
    border: 1px solid rgb(26 26 26 / 18%) !important;
    border-radius: 0 !important;
    overflow: hidden;
}

.wp-block-group.has-border-color.has-background:hover {
}

.wp-block-group.has-border-color.has-background::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
}

.wp-block-group.has-border-color.has-background h2 {
    margin-bottom: 18px;
    color: #111111;
    font-size: 28px;
    line-height: 1.25;
}

.wp-block-group.has-border-color.has-background p {
    margin: 0;
    color: #111111;
    line-height: 1.7;
    font-size: 17px;
}

.wp-block-group.has-border-color.has-background .emoji {
    width: 1.05em;
    height: 1.05em;
    vertical-align: -0.1em;
}


.banner-timer {
    gap: 0;
}

.banner-timer > div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* gap: 15px; */
}

/******* popup ***/
.popmake-content {
    --form-bg: #ffffff;
    --form-text: #0f172a;
    --form-muted: #64748b;
    --form-border: #dbe3ee;
    --form-border-focus: #2563eb;
    --form-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --form-radius: 20px;
    --input-radius: 14px;
    --btn-radius: 14px;
    --btn-bg: #0f172a;
    --btn-bg-hover: #1e293b;
    --btn-text: #ffffff;
    --error: #dc2626;
    --success-bg: #ecfdf5;
    --success-border: #86efac;
    --success-text: #166534;
    --warning-bg: #fff7ed;
    --warning-border: #fdba74;
    --warning-text: #9a3412;
    color: var(--form-text);
}

.popmake-content .wp-block-contact-form-7-contact-form-selector,
.popmake-content .wpcf7,
.popmake-content .wpcf7-form {
    width: 100%;
}

.popmake-content .wpcf7-form {
    margin: 0;
    padding: 0;
}

.popmake-content .wpcf7-form p {
    margin: 0 0 16px;
}

.popmake-content .wpcf7-form p:last-of-type {
    margin-bottom: 0;
}

.popmake-content .wpcf7-form label {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--form-text);
    margin-bottom: 6px;
}

.popmake-content .wpcf7-form-control-wrap {
    display: block;
    margin-top: 5px;
}

.popmake-content input[type="text"],
.popmake-content input[type="tel"],
.popmake-content input[type="email"],
.popmake-content textarea,
.popmake-content select {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid #969696;
    border-radius: 4px;
    background: var(--form-bg);
    color: var(--form-text);
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
    box-shadow: none;
    outline: none;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            background-color 0.2s ease;
}

.popmake-content select {
    width: 100%;
    min-height: 54px;
    padding: 14px 44px 14px 16px; /* справа місце під стрілку */
    border: 1px solid var(--form-border);
    border-radius: var(--input-radius);
    background: var(--form-bg);
    color: var(--form-text);
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;

    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'><path d='M5 7.5L10 12.5L15 7.5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
}

.popmake-content select:focus {
    border-color: var(--form-border-focus);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.popmake-content textarea {
    min-height: 100px;
    resize: vertical;
    max-height: 200px;
}

.popmake-content input[type="text"]::placeholder,
.popmake-content input[type="tel"]::placeholder,
.popmake-content input[type="email"]::placeholder,
.popmake-content textarea::placeholder {
    color: var(--form-muted);
    opacity: 1;
}

.popmake-content input[type="text"]:focus,
.popmake-content input[type="tel"]:focus,
.popmake-content input[type="email"]:focus,
.popmake-content textarea:focus {
    border-color: var(--form-border-focus);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.popmake-content .wpcf7-not-valid {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.popmake-content .wpcf7-not-valid-tip {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--error);
}

.popmake-content .wpcf7-submit {
    appearance: none;
    border: 0;
    min-height: 54px;
    padding: 0 22px;
    border-radius: var(--btn-radius);
    background: var(--btn-bg);
    color: var(--btn-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
            transform 0.18s ease,
            background-color 0.2s ease,
            box-shadow 0.2s ease,
            opacity 0.2s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.popmake-content .wpcf7-submit:hover {
    background: var(--btn-bg-hover);
    transform: translateY(-1px);
}

.popmake-content .wpcf7-submit:active {
    transform: translateY(0);
}

.popmake-content .wpcf7-submit:disabled,
.popmake-content .wpcf7-form.submitting .wpcf7-submit {
    opacity: 0.7;
    cursor: wait;
}

.popmake-content .wpcf7-spinner {
    margin: 0 0 0 12px;
    vertical-align: middle;
}

.popmake-content .wpcf7-response-output {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
}

.popmake-content .wpcf7 form.sent .wpcf7-response-output {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.popmake-content .wpcf7 form.invalid .wpcf7-response-output,
.popmake-content .wpcf7 form.unaccepted .wpcf7-response-output,
.popmake-content .wpcf7 form.failed .wpcf7-response-output,
.popmake-content .wpcf7 form.aborted .wpcf7-response-output,
.popmake-content .wpcf7 form.spam .wpcf7-response-output {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-text);
}

.popmake-content .screen-reader-response {
    position: absolute;
    left: -9999px;
}

.popmake-content .hidden-fields-container {
    display: none;
}

@media (max-width: 767px) {
    .popmake-content input[type="text"],
    .popmake-content input[type="tel"],
    .popmake-content input[type="email"],
    .popmake-content textarea {
        font-size: 16px;
    }

    .popmake-content .wpcf7-submit {
        width: 100%;
    }
}

/*** product */
.product_meta a {
    color: var(--nv-primary-accent);
}

.pf-product-info-box {
    --pf-info-icon-color: #2f5aae;
    margin-top: 18px;
    padding: 12px 12px;
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    background: #fff;
    font-size: 14px;
    line-height: 1.45;
}

.pf-product-info-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #dfdfdf;
}

.pf-product-info-item:first-child {
    padding-top: 0;
}

.pf-product-info-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.pf-product-info-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: var(--pf-info-icon-color);
}

.pf-product-info-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.pf-product-info-content strong {
    display: block;
    margin-bottom: 5px;
    color: #202124;
    font-size: 16px;
    font-weight: 700;
}

.woocommerce.single .entry-summary .pf-product-info-widget  ul {
    margin: 0;
    padding-left: 18px;
    margin-bottom: 8px;
}

.woocommerce.single .entry-summary .pf-product-info-widget ul li {
    margin-bottom: 6px;
}

.pf-product-info-content p {
    margin: 0;
}

@media (max-width: 600px) {
    .pf-product-info-box {
        padding: 14px;
    }

    .pf-product-info-item {
        grid-template-columns: 34px 1fr;
        gap: 12px;
    }

    .pf-product-info-icon {
        width: 34px;
        height: 34px;
    }

    .pf-product-info-icon svg {
        width: 28px;
        height: 28px;
    }
}


/*** end product */

/*** contact ***/
.pf-social-contact-box {
    /* display: grid; */
    /* grid-template-columns: repeat(4, minmax(0, 1fr)); */
    gap: 10px;
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-social-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    /* min-height: 48px; */
    padding: 8px 12px;
    /* border: 1px solid #bdbdbd; */
    border-radius: 0 6px 6px 0;
    /* background: #f7f9fc; */
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    /* transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; */
    width: fit-content;
    /* border-left: 2px solid #2f5aae; */
    min-width: 210px;
}

.pf-social-contact-link:hover {
    transform: translateY(-2px);
    background: #e1e1e1;
    color: #101828;
}

.pf-social-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pf-social-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

.pf-social-phone .pf-social-icon {
    color: #2f5aae;
}

.pf-social-telegram .pf-social-icon {
    color: #229ED9;
}

.pf-social-viber .pf-social-icon {
    color: #7360F2;
}

.pf-social-whatsapp .pf-social-icon {
    color: #25D366;
}

.pf-social-email .pf-social-icon {
    color: #ea5e20;
}

.pf-social-email:hover {
    border-color: #ea5e20;
}

.pf-social-phone:hover {
    border-color: #2f5aae;
}

.pf-social-telegram:hover {
    border-color: #229ED9;
}

.pf-social-viber:hover {
    border-color: #7360F2;
}

.pf-social-whatsapp:hover {
    border-color: #25D366;
}

@media (max-width: 520px) {
    .pf-social-contact-box {
        grid-template-columns: 1fr;
    }
}

/*** end contact ***/

/*** footer ***/
.nv-footer-content {
    padding: 30px 0;
    /* row-gap: 20px; */
    display: flex;
    gap: 20px;
}

.nv-footer-content .pf-social-contact-box {
    gap: 0px;
    margin: 0;
}

.nv-footer-content .pf-social-contact-link {
    font-weight: 500;
}

.nv-footer-content .pf-social-icon svg {
    fill: white;
}
/*** end footer ***/


