/* Consentimiento comercial: estilos aislados y adaptables a mobile/desktop. */
.medstyle-consent-wrapper {
    display: block;
    clear: both;
    width: 100%;
    margin: 16px 0;
    padding: 0;
    box-sizing: border-box;
}
.medstyle-consent-wrapper .medstyle-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    box-sizing: border-box;
}
.medstyle-consent-wrapper .medstyle-consent-input {
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    cursor: pointer;
}
.medstyle-consent-wrapper .medstyle-consent-description {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.medstyle-consent-wrapper a {
    text-decoration: underline;
}
.woocommerce-checkout .medstyle-consent-wrapper {
    text-align: left;
}
@media (max-width: 640px) {
    .medstyle-consent-wrapper {
        margin: 14px 0;
    }
    .medstyle-consent-wrapper .medstyle-consent-label {
        gap: 9px;
    }
}

/* Checkout: bloque de consentimiento destacado, sin afectar terminos legales. */
.woocommerce-checkout .medstyle-consent-checkout {
    display: block;
    width: 100%;
    background: #edf9f8;
    border: 1px solid #80cdc8;
    border-left: 4px solid #00a9a5;
    border-radius: 5px;
    padding: 13px 14px;
    margin: 14px 0 16px;
    box-shadow: none;
    box-sizing: border-box;
}
.woocommerce-checkout .medstyle-consent-checkout .medstyle-consent-description {
    color: #173a4b;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
}
.woocommerce-checkout .medstyle-consent-checkout a {
    color: #006e8c;
    font-weight: 600;
    text-decoration: underline;
}
.woocommerce-checkout .medstyle-consent-checkout .medstyle-consent-input {
    border: 1px solid #637e8c;
    background-color: #fff;
    opacity: 1;
}

/* CF7: el wrapper es span porque suele insertarse dentro de un <p>. */
.wpcf7 .medstyle-consent-wrapper {
    margin: 14px 0;
}
.wpcf7 .medstyle-consent-description {
    color: #414b55;
}

@media (max-width: 640px) {
    .woocommerce-checkout .medstyle-consent-checkout {
        padding: 12px;
        margin: 12px 0 14px;
    }
}
.woocommerce-checkout .medstyle-consent-checkout .medstyle-consent-input:checked {
    background-color: #008f91;
    border-color: #008f91;
}
.woocommerce-checkout .medstyle-consent-checkout .medstyle-consent-input:focus-visible {
    outline: 2px solid #005f7b;
    outline-offset: 2px;
}

/* v3: destacador con especificidad suficiente frente a estilos del theme. */
.medstyle-consent-wrapper.medstyle-consent-checkout,
.woocommerce-checkout .medstyle-consent-wrapper.medstyle-consent-checkout,
#payment .medstyle-consent-wrapper.medstyle-consent-checkout {
    display: block !important;
    background: #e5f7f5 !important;
    border: 1px solid #8bcfca !important;
    border-left: 4px solid #00a9a5 !important;
    border-radius: 6px !important;
    margin: 16px 0 !important;
    padding: 15px !important;
    box-shadow: 0 1px 3px rgba(0, 55, 70, .08);
}
.medstyle-consent-wrapper.medstyle-consent-checkout .medstyle-consent-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 11px;
}
.medstyle-consent-wrapper.medstyle-consent-checkout .medstyle-consent-description {
    color: #153c4c !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
}
.medstyle-consent-wrapper.medstyle-consent-checkout .medstyle-consent-input {
    width: 19px;
    height: 19px;
    min-width: 19px;
    opacity: 1;
}
.medstyle-consent-wrapper.medstyle-consent-checkout a {
    color: #006e8c !important;
    font-weight: 600;
}
.uk-contacto-form .medstyle-consent-cf7 {
    width: 100%;
    margin: 12px 0 18px;
    text-align: left;
}
.uk-contacto-form .medstyle-consent-cf7 .medstyle-consent-description {
    color: #444;
    font-size: 13px;
}
@media (max-width: 640px) {
    .medstyle-consent-wrapper.medstyle-consent-checkout,
    .woocommerce-checkout .medstyle-consent-wrapper.medstyle-consent-checkout,
    #payment .medstyle-consent-wrapper.medstyle-consent-checkout {
        margin: 12px 0 !important;
        padding: 12px !important;
    }
}
