/* Profile list enhancements, scoped to Gigneo's editable settings dialogs. */
body.lofind-gigneo-dashboard .gn-profile-setting-modal .lofind-option-builder {
    margin-top: 9px;
    width: 100%;
    box-sizing: border-box;
}
body.lofind-gigneo-dashboard .gn-profile-setting-modal .lofind-option-opener {
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #ec6400;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
}
body.lofind-gigneo-dashboard .gn-profile-setting-modal .lofind-option-opener:hover { text-decoration: underline; }
body.lofind-gigneo-dashboard .gn-profile-setting-modal .lofind-option-controls:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    padding: 6px 0;
}
body.lofind-gigneo-dashboard .gn-profile-setting-modal .lofind-option-controls[hidden] { display: none !important; }
body.lofind-gigneo-dashboard .gn-profile-setting-modal .lofind-option-controls .lofind-option-input {
    flex: 1 1 140px;
    min-width: 0;
    box-sizing: border-box;
    width: auto !important;
    padding: 9px 11px;
    font-size: 14px;
    border: 1px solid #dde0e5;
    border-radius: 7px;
    background: #fff;
}
body.lofind-gigneo-dashboard .gn-profile-setting-modal .lofind-option-controls button {
    flex: none;
    width: auto;
    min-height: 34px;
    padding: 7px 13px;
    font-size: 13px;
    border-radius: 7px;
    border: 1px solid #e3e5e8;
    background: #fff;
    color: #17212f;
    cursor: pointer;
}
body.lofind-gigneo-dashboard .gn-profile-setting-modal .lofind-option-controls .lofind-option-save {
    background: #ff6600; color: white; border-color: #ff6600;
}
body.lofind-gigneo-dashboard .gn-profile-setting-modal .lofind-option-feedback {
    margin-top: 4px;
    min-height: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #505d69;
}
/* Only one public statistic remains after the server-side template override. */
.gn-profile-single .lofind-public-stat-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
}


/* Languages and Socials: two aligned inputs, with the custom option creator
   below both fields instead of increasing just the first column's height. */
body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .gn-modal-body .gn-form-fields > .row {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:18px 18px !important;
    align-items:start !important;
    margin:0 !important;
}
body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .gn-modal-body .gn-form-fields > .row > :is(.col-md-6,.col-md-12,.lofind-option-area) {
    min-width:0 !important; width:100% !important; max-width:100% !important;
    margin:0 !important; padding:0 !important; flex:none !important;
}
body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .gn-modal-body .gn-form-fields > .row > :is(.col-md-12,.lofind-option-area) {
    grid-column:1/-1;
}
body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .gn-modal-body .gn-form-fields > .row > .col-md-12 {
    display:flex; justify-content:flex-end; text-align:right;
}
body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .gn-modal-body .gn-form-fields > .row .gn-form-field {
    width:100%; min-width:0;
}
body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .gn-modal-body .gn-form-fields > .row .gn-form-field :is(input,select,.select2-container,.select2-selection) {
    width:100% !important; min-width:0 !important; max-width:100% !important; box-sizing:border-box;
}
body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .lofind-option-area .lofind-option-builder {
    margin:0; padding:0;
}
body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .lofind-option-area .lofind-option-controls:not([hidden]) {
    display:grid !important; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; align-items:center;
    max-width:100%; padding-top:10px;
}
body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .lofind-option-area .lofind-option-input {
    margin:0 !important; width:100% !important;
}
@media(max-width:600px) {
  body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .gn-modal-body .gn-form-fields > .row {
    grid-template-columns:minmax(0,1fr) !important; gap:14px !important;
  }
  body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .lofind-option-area .lofind-option-controls:not([hidden]) {
    grid-template-columns:minmax(0,1fr) auto;
  }
  body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .lofind-option-area .lofind-option-controls .lofind-option-input {
    grid-column:1/-1;
  }
}


/* v0.3.7: consistent saved languages / social badges in the dashboard profile. */
body.lofind-gigneo-dashboard #gn-profile-languages ul.gn-profile-language-list,
body.lofind-gigneo-dashboard #gn-profile-socials .gn-profile-social-list {
    display:flex !important; flex-wrap:wrap !important; align-items:center !important;
    gap:8px !important; padding:0 !important; margin:0 !important;
}
body.lofind-gigneo-dashboard #gn-profile-languages ul.gn-profile-language-list > li.gn-language,
body.lofind-gigneo-dashboard #gn-profile-socials .gn-profile-social-list > a.gn-social-tag {
    display:inline-flex !important; flex:0 0 auto; flex-wrap:nowrap !important;
    align-items:center !important; gap:6px !important; margin:0 !important;
    width:auto !important; max-width:100%; box-sizing:border-box;
    white-space:nowrap; vertical-align:middle;
}
body.lofind-gigneo-dashboard #gn-profile-languages .gn-language .gn-level { margin:0 !important; white-space:nowrap; }
body.lofind-gigneo-dashboard #gn-profile-socials .gn-profile-social-list a.gn-social-tag > img {
    flex:0 0 20px; width:20px !important; height:20px !important; margin:0 !important; object-fit:contain;
}

/* Lofind v0.5.3: uniformly aligned skill, language and social chips. */
body.lofind-gigneo-dashboard :is(#gn-profile-skills,#gn-profile-languages,#gn-profile-socials) :is(.gn-profile-tag-list,.gn-profile-language-list,.gn-profile-social-list,.gn-select2-tags) {display:flex!important; flex-wrap:wrap!important; justify-content:flex-start!important; align-content:flex-start!important; align-items:center!important; column-gap:10px!important; row-gap:10px!important; padding:0!important; margin:12px 0!important; list-style:none!important;}
body.lofind-gigneo-dashboard :is(#gn-profile-skills,#gn-profile-languages,#gn-profile-socials) :is(.gn-tag,.gn-language,.gn-social-tag,.gn-selected-tag) {display:inline-flex!important; align-items:center!important; justify-content:center!important; flex:0 0 auto!important; gap:7px!important; white-space:nowrap!important; max-width:100%!important; margin:0!important; width:auto!important; vertical-align:middle!important; font-weight:400!important;}
body.lofind-gigneo-dashboard .gn-profile-setting-modal :is(.lofind-option-opener,.lofind-option-controls button) {font-family:'Lato',Arial,sans-serif!important; font-weight:400!important; text-transform:none!important;}
body.lofind-gigneo-dashboard #gn-edit-profile-skills .gn-modal-header .gn-description {font-family:'Lato',Arial,sans-serif!important;}

/* 0.5.3: Gigneo's native profile-section chips, not only Select2 modal tags. */
body.lofind-gigneo-dashboard #gn-profile-skills .gn-select2-tags,
body.lofind-gigneo-dashboard #gn-profile-skills .gn-tags,
body.lofind-gigneo-dashboard #gn-profile-languages .gn-profile-language-list,
body.lofind-gigneo-dashboard #gn-profile-socials .gn-profile-social-list,
body.lofind-gigneo-dashboard .gn-setting-section .gn-select2-tags,
body.lofind-gigneo-dashboard .gn-setting-section .gn-language-cards {
 display:flex!important;flex-flow:row wrap!important;align-items:center!important;
 justify-content:flex-start!important;gap:9px!important;list-style:none!important;
 width:100%!important;min-width:0!important;margin:12px 0!important;padding:0!important;
}
body.lofind-gigneo-dashboard #gn-profile-skills :is(.gn-select2-tag,.gn-selected-tag,li),
body.lofind-gigneo-dashboard #gn-profile-languages :is(.gn-language,.gn-language-card,li),
body.lofind-gigneo-dashboard #gn-profile-socials :is(.gn-social-tag,.gn-tag,a){
 display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
 box-sizing:border-box!important;vertical-align:middle!important;flex:0 0 auto!important;
 width:auto!important;max-width:100%!important;margin:0!important;
 min-height:30px!important;line-height:1.4!important;gap:6px!important;
 font-family:'Lato',sans-serif!important;font-weight:400!important;
}
body.lofind-gigneo-dashboard :is(.lofind-option-opener,.lofind-service-add-toggle) {
 font-family:'Lato',sans-serif!important;font-size:13px!important;font-weight:400!important;
 text-transform:none!important;letter-spacing:0!important;
}


/* v0.5.4: match actual Gigneo 0.1.3 profile editor and public badges. */
body.lofind-gigneo-dashboard :is(#gn-profile-skills,#gn-profile-languages,#gn-profile-socials) :is(.gn-body,.gn-tags,.gn-profile-language-list,.gn-profile-social-list) {
  min-width:0;max-width:100%;box-sizing:border-box;
}
body.lofind-gigneo-dashboard #gn-profile-languages .gn-profile-language-list,
body.lofind-gigneo-dashboard #gn-profile-socials .gn-profile-social-list,
body.lofind-gigneo-dashboard #gn-profile-skills .gn-tags {
  display:flex!important;flex-flow:row wrap!important;align-items:center!important;
  align-content:start!important;justify-content:start!important;
  gap:9px!important;margin:10px 0!important;padding:0!important;list-style:none!important;
}
body.lofind-gigneo-dashboard #gn-profile-languages .gn-profile-language-list > .gn-language,
body.lofind-gigneo-dashboard #gn-profile-socials .gn-profile-social-list > .gn-social-tag,
body.lofind-gigneo-dashboard #gn-profile-skills .gn-tags > .gn-tag {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;flex:0 0 auto!important;align-self:center!important;
  padding:6px 13px!important;margin:0!important;line-height:1.4!important;min-height:34px!important;
  max-width:100%!important;width:auto!important;border-radius:30px!important;
  vertical-align:middle!important;white-space:nowrap!important;font-weight:400!important;
}
body.lofind-gigneo-dashboard #gn-profile-languages .gn-language .gn-level{display:inline!important;margin:0!important;line-height:inherit!important;}
body.lofind-gigneo-dashboard #gn-profile-socials .gn-social-tag img{display:block!important;width:21px!important;height:21px!important;object-fit:contain!important;margin:0!important;}
/* The option builder spans the whole modal, never pushing only the first field down. */
body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .gn-modal-body .row > .lofind-option-area {grid-column:1/-1!important;align-self:start!important;}
body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .gn-modal-body .row > .col-md-6 {align-self:start!important;}
body.lofind-gigneo-dashboard :is(#gn-edit-profile-languages,#gn-edit-profile-socials) .gn-modal-body .row > .col-md-12 {grid-column:1/-1!important;}
/* Public Gigneo profile right hand cards, including freelancer/client view. */
body.lofind-public-profile .gn-profile-single :is(.gn-profile-languages,.gn-profile-social-list,.gn-language-cards) {
 display:flex!important;flex-flow:row wrap!important;gap:8px!important;align-items:center!important;
 list-style:none!important;margin:0!important;padding:0!important;
}
body.lofind-public-profile .gn-profile-single :is(.gn-language,.gn-social-tag) {
 display:inline-flex!important;align-items:center!important;gap:7px!important;
 margin:0!important;white-space:nowrap!important;max-width:100%!important;
 width:auto!important;line-height:1.4!important;
}
