{
 "instance": {
  "gls-20221231.htm": {
   "axisCustom": 0,
   "axisStandard": 36,
   "baseTaxonomies": {
    "http://fasb.org/us-gaap/2022": 926,
    "http://xbrl.sec.gov/dei/2022": 40
   },
   "contextCount": 367,
   "dts": {
    "calculationLink": {
     "local": [
      "gls-20221231_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "gls-20221231_def.xml"
     ]
    },
    "inline": {
     "local": [
      "gls-20221231.htm"
     ]
    },
    "labelLink": {
     "local": [
      "gls-20221231_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "gls-20221231_pre.xml"
     ]
    },
    "schema": {
     "local": [
      "gls-20221231.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd",
      "https://xbrl.fasb.org/srt/2022/elts/srt-roles-2022.xsd",
      "https://xbrl.fasb.org/srt/2022/elts/srt-types-2022.xsd",
      "https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd",
      "https://xbrl.fasb.org/us-gaap/2022/elts/us-roles-2022.xsd",
      "https://xbrl.fasb.org/us-gaap/2022/elts/us-types-2022.xsd",
      "https://xbrl.sec.gov/country/2022/country-2022.xsd",
      "https://xbrl.sec.gov/dei/2022/dei-2022.xsd"
     ]
    }
   },
   "elementCount": 949,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2022": 15,
    "http://ir.gelesis.com/20221231": 1,
    "http://xbrl.sec.gov/dei/2022": 4,
    "total": 20
   },
   "keyCustom": 220,
   "keyStandard": 402,
   "memberCustom": 81,
   "memberStandard": 42,
   "nsprefix": "gls",
   "nsuri": "http://ir.gelesis.com/20221231",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "100000 - Document - Document and Entity Information",
     "menuCat": "Cover",
     "order": "1",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessDescriptionAndBasisOfPresentationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100110 - Disclosure - Nature of the Business and Basis of Presentation",
     "menuCat": "Notes",
     "order": "10",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureNatureOfBusinessAndBasisOfPresentation",
     "shortName": "Nature of the Business and Basis of Presentation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessDescriptionAndBasisOfPresentationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R100": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-1",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101010 - Disclosure - Earnings (Loss) Per Share - Summary of Basic and Diluted Net Loss Per Share (Details)",
     "menuCat": "Details",
     "order": "100",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails",
     "shortName": "Earnings (Loss) Per Share - Summary of Basic and Diluted Net Loss Per Share (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R101": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101020 - Disclosure - Earnings (Loss) Per Share - Schedule of Anti-dilutive Securities Excluded from Computation of Net Loss Per Share (Details)",
     "menuCat": "Details",
     "order": "101",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails",
     "shortName": "Earnings (Loss) Per Share - Schedule of Anti-dilutive Securities Excluded from Computation of Net Loss Per Share (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R102": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_449a96f6-cfe3-4c56-9314-8751ee75f73a",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "gls:CommonStockConvertibleConversionRatio",
      "reportCount": 1,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101030 - Disclosure - Earnings (Loss) per Share (Additional Information) (Details)",
     "menuCat": "Details",
     "order": "102",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarningsLossPerShareAdditionalInformationDetails",
     "shortName": "Earnings (Loss) per Share (Additional Information) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "gls:PotentialDilutiveCommonShareEquivalentsRelatedToEarnoutLiablity",
       "span",
       "p",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "0",
      "lang": null,
      "name": "gls:PotentialDilutiveCommonShareEquivalentsRelatedToEarnoutLiablity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R103": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3f45803c-e3ab-4f42-bd9a-c396b17ec33e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:OperatingLeaseCommencementYearAndMonth",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101040 - Disclosure - Commitment and Contingencies - Additional Information (Details)",
     "menuCat": "Details",
     "order": "103",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails",
     "shortName": "Commitment and Contingencies - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3f45803c-e3ab-4f42-bd9a-c396b17ec33e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:OperatingLeaseCommencementYearAndMonth",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R104": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseLiabilityCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101050 - Disclosure - Commitments and Contingencies - Schedule of Operating Lease Activity (Details)",
     "menuCat": "Details",
     "order": "104",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfOperatingLeaseActivityDetails",
     "shortName": "Commitments and Contingencies - Schedule of Operating Lease Activity (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:OperatingLeaseActivityTableTextBlock",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OperatingLeaseExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R105": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101060 - Disclosure - Commitment and Contingencies - Schedule of Future Maturities of the Lease Liability Under the Company's Noncancelable Operating Leases (Details)",
     "menuCat": "Details",
     "order": "105",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails",
     "shortName": "Commitment and Contingencies - Schedule of Future Maturities of the Lease Liability Under the Company's Noncancelable Operating Leases (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R106": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AccountsPayableRelatedPartiesCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101070 - Disclosure - Related Party Transactions - Additional Information (Details)",
     "menuCat": "Details",
     "order": "106",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
     "shortName": "Related Party Transactions - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_030fc0ae-ffaf-4204-a4d2-fd6bd2682e29",
      "decimals": "-5",
      "lang": null,
      "name": "gls:FairValueAdjustmentOfConvertiblePromissoryNotes",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R107": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:PaymentsToAcquireEquitySecuritiesFvNi",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101080 - Disclosure - Related Party Transactions - Additional Information - One S.r.l (Details)",
     "menuCat": "Details",
     "order": "107",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
     "shortName": "Related Party Transactions - Additional Information - One S.r.l (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:PaymentsToAcquireEquitySecuritiesFvNi",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R108": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_42eee134-cf32-4f64-bf5f-129a94e45e7b",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "gls:AnnualInterestRateInConnectionWithTransaction",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101090 - Disclosure - Related Party Transactions - Additional Information - RIF (Details)",
     "menuCat": "Details",
     "order": "108",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
     "shortName": "Related Party Transactions - Additional Information - RIF (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_42eee134-cf32-4f64-bf5f-129a94e45e7b",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "gls:AnnualInterestRateInConnectionWithTransaction",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R109": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedContributionPlanEmployerDiscretionaryContributionAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101100 - Disclosure - Employee Benefit Plan - Additional Information (Details)",
     "menuCat": "Details",
     "order": "109",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEmployeeBenefitPlanAdditionalInformationDetails",
     "shortName": "Employee Benefit Plan - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedContributionPlanEmployerDiscretionaryContributionAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100120 - Disclosure - Summary of Significant Accounting Policies",
     "menuCat": "Notes",
     "order": "11",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies",
     "shortName": "Summary of Significant Accounting Policies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R110": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:SubsequentEventsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_4f3a4f1d-c490-4d99-ab74-c2676c80c9e1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:MinimumSharePriceRequirementTradingDaysPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101110 - Disclosure - Subsequent Events - Additional Information (Details)",
     "menuCat": "Details",
     "order": "110",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
     "shortName": "Subsequent Events - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:SubsequentEventsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_4f3a4f1d-c490-4d99-ab74-c2676c80c9e1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:MinimumSharePriceRequirementTradingDaysPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:BusinessCombinationAndReverseRecapitalizationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100130 - Disclosure - Business Combination and Reverse Recapitalization",
     "menuCat": "Notes",
     "order": "12",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalization1",
     "shortName": "Business Combination and Reverse Recapitalization",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:BusinessCombinationAndReverseRecapitalizationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100140 - Disclosure - Fair Value Measurements",
     "menuCat": "Notes",
     "order": "13",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurements",
     "shortName": "Fair Value Measurements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AllowanceForCreditLossesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100150 - Disclosure - Product Revenue and Reserve and Allowances",
     "menuCat": "Notes",
     "order": "14",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowances1",
     "shortName": "Product Revenue and Reserve and Allowances",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AllowanceForCreditLossesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InventoryDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100160 - Disclosure - Inventories",
     "menuCat": "Notes",
     "order": "15",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventories",
     "shortName": "Inventories",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InventoryDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:PrepaidExpensesAndOtherCurrentAssetsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100170 - Disclosure - Prepaid Expenses and Other Current Assets",
     "menuCat": "Notes",
     "order": "16",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePrepaidExpensesAndOtherCurrentAssets",
     "shortName": "Prepaid Expenses and Other Current Assets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:PrepaidExpensesAndOtherCurrentAssetsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100180 - Disclosure - Property and Equipment, Net",
     "menuCat": "Notes",
     "order": "17",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNet",
     "shortName": "Property and Equipment, Net",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:AccruedExpensesAndOtherLiabilitiesDisclosureCurrentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100190 - Disclosure - Accrued Expenses",
     "menuCat": "Notes",
     "order": "18",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpenses",
     "shortName": "Accrued Expenses",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:AccruedExpensesAndOtherLiabilitiesDisclosureCurrentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:OtherLongTermLiabilityDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100200 - Disclosure - Other Long-Term Liabilities",
     "menuCat": "Notes",
     "order": "19",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilities",
     "shortName": "Other Long-Term Liabilities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:OtherLongTermLiabilityDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100010 - Statement - CONSOLIDATED BALANCE SHEETS",
     "menuCat": "Statements",
     "order": "2",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets",
     "shortName": "CONSOLIDATED BALANCE SHEETS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:SignificantAgreementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100210 - Disclosure - Significant Agreements",
     "menuCat": "Notes",
     "order": "20",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreements",
     "shortName": "Significant Agreements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:SignificantAgreementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100220 - Disclosure - Debt",
     "menuCat": "Notes",
     "order": "21",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebt",
     "shortName": "Debt",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:WarrantsDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100230 - Disclosure - Warrant Liabilities",
     "menuCat": "Notes",
     "order": "22",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilities1",
     "shortName": "Warrant Liabilities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:WarrantsDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativesAndFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100240 - Disclosure - Earnout Liability",
     "menuCat": "Notes",
     "order": "23",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiability1",
     "shortName": "Earnout Liability",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativesAndFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100250 - Disclosure - Stockholder's Equity (Deficit)",
     "menuCat": "Notes",
     "order": "24",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficit1",
     "shortName": "Stockholder's Equity (Deficit)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100260 - Disclosure - Stock-Based Compensation",
     "menuCat": "Notes",
     "order": "25",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensation",
     "shortName": "Stock-Based Compensation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100270 - Disclosure - Income Taxes",
     "menuCat": "Notes",
     "order": "26",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxes",
     "shortName": "Income Taxes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100280 - Disclosure - Earnings (Loss) Per Share",
     "menuCat": "Notes",
     "order": "27",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShare",
     "shortName": "Earnings (Loss) Per Share",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100290 - Disclosure - Commitment and Contingencies",
     "menuCat": "Notes",
     "order": "28",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingencies",
     "shortName": "Commitment and Contingencies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100300 - Disclosure - Related Party Transactions",
     "menuCat": "Notes",
     "order": "29",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactions",
     "shortName": "Related Party Transactions",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AccountsPayableRelatedPartiesCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100040 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)",
     "menuCat": "Statements",
     "order": "3",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical",
     "shortName": "CONSOLIDATED BALANCE SHEETS (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "lang": null,
      "name": "gls:AccruedExpensesAndOtherLiabilitiesRelatedPartiesCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100310 - Disclosure - Employee Benefit Plan",
     "menuCat": "Notes",
     "order": "30",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEmployeeBenefitPlan1",
     "shortName": "Employee Benefit Plan",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100320 - Disclosure - Subsequent Events",
     "menuCat": "Notes",
     "order": "31",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEvents1",
     "shortName": "Subsequent Events",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100330 - Disclosure - Summary of Significant Accounting Policies (Policies)",
     "menuCat": "Policies",
     "order": "32",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies",
     "shortName": "Summary of Significant Accounting Policies (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:ScheduleOfPropertyPlantEquipmentUsefulLifeTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100340 - Disclosure - Summary of Significant Accounting Policies (Tables)",
     "menuCat": "Tables",
     "order": "33",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesTables",
     "shortName": "Summary of Significant Accounting Policies (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:ScheduleOfPropertyPlantEquipmentUsefulLifeTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "gls:BusinessCombinationAndReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100350 - Disclosure - Business Combination and Reverse Recapitalization (Tables)",
     "menuCat": "Tables",
     "order": "34",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationTables",
     "shortName": "Business Combination and Reverse Recapitalization (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "gls:BusinessCombinationAndReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisTextBlock",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100360 - Disclosure - Fair Value Measurements (Tables)",
     "menuCat": "Tables",
     "order": "35",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsTables",
     "shortName": "Fair Value Measurements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "lang": "en-US",
      "name": "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:AllowanceForCreditLossesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100370 - Disclosure - Product Revenue and Reserve and Allowances (Tables)",
     "menuCat": "Tables",
     "order": "36",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesTables",
     "shortName": "Product Revenue and Reserve and Allowances (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:AllowanceForCreditLossesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100380 - Disclosure - Inventories (Tables)",
     "menuCat": "Tables",
     "order": "37",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesTables",
     "shortName": "Inventories (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "gls:PrepaidExpensesAndOtherCurrentAssetsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100390 - Disclosure - Prepaid Expenses and Other Current Assets (Tables)",
     "menuCat": "Tables",
     "order": "38",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePrepaidExpensesAndOtherCurrentAssetsTables",
     "shortName": "Prepaid Expenses and Other Current Assets (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "gls:PrepaidExpensesAndOtherCurrentAssetsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100400 - Disclosure - Property and Equipment, Net (Tables)",
     "menuCat": "Tables",
     "order": "39",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetTables",
     "shortName": "Property and Equipment, Net (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100050 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS",
     "menuCat": "Statements",
     "order": "4",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations",
     "shortName": "CONSOLIDATED STATEMENTS OF OPERATIONS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:CostOfGoodsAndServicesSold",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "gls:AccruedExpensesAndOtherLiabilitiesDisclosureCurrentTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:ScheduleOfAccruedLiabilitiesAndOtherLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100410 - Disclosure - Accrued Expenses (Tables)",
     "menuCat": "Tables",
     "order": "40",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesTables",
     "shortName": "Accrued Expenses (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "gls:AccruedExpensesAndOtherLiabilitiesDisclosureCurrentTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:ScheduleOfAccruedLiabilitiesAndOtherLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "gls:OtherLongTermLiabilityDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherNoncurrentLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100420 - Disclosure - Other Long-Term Liabilities (Tables)",
     "menuCat": "Tables",
     "order": "41",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilitiesTables",
     "shortName": "Other Long-Term Liabilities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "gls:OtherLongTermLiabilityDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherNoncurrentLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "gls:SignificantAgreementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:SummaryOfGrantRecognizedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100430 - Disclosure - Significant Agreements (Tables)",
     "menuCat": "Tables",
     "order": "42",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsTables",
     "shortName": "Significant Agreements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "gls:SignificantAgreementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:SummaryOfGrantRecognizedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDebtTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100440 - Disclosure - Debt (Tables)",
     "menuCat": "Tables",
     "order": "43",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtTables",
     "shortName": "Debt (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDebtTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "gls:WarrantsDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:SummaryOfChangesInWarrantLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100450 - Disclosure - Warrant Liabilities (Tables)",
     "menuCat": "Tables",
     "order": "44",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesTables",
     "shortName": "Warrant Liabilities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "gls:WarrantsDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:SummaryOfChangesInWarrantLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DerivativesAndFairValueTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100460 - Disclosure - Earnout Liability (Tables)",
     "menuCat": "Tables",
     "order": "45",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilityTables",
     "shortName": "Earnout Liability (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DerivativesAndFairValueTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100470 - Disclosure - Stockholder's Equity (Deficit) (Tables)",
     "menuCat": "Tables",
     "order": "46",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitTables",
     "shortName": "Stockholder's Equity (Deficit) (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100480 - Disclosure - Stock-Based Compensation (Tables)",
     "menuCat": "Tables",
     "order": "47",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationTables",
     "shortName": "Stock-Based Compensation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100490 - Disclosure - Income Taxes (Tables)",
     "menuCat": "Tables",
     "order": "48",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesTables",
     "shortName": "Income Taxes (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100500 - Disclosure - Earnings (Loss) Per Share (Tables)",
     "menuCat": "Tables",
     "order": "49",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareTables",
     "shortName": "Earnings (Loss) Per Share (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RelatedPartyCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100060 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS (PARENTHETICAL)",
     "menuCat": "Statements",
     "order": "5",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperationsParenthetical",
     "shortName": "CONSOLIDATED STATEMENTS OF OPERATIONS (PARENTHETICAL)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RelatedPartyCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:OperatingLeaseActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100510 - Disclosure - Commitment and Contingencies (Tables)",
     "menuCat": "Tables",
     "order": "50",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesTables",
     "shortName": "Commitment and Contingencies (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:OperatingLeaseActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessDescriptionAndBasisOfPresentationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_1cfa4656-ff49-4512-acf7-ea64b7e2760b",
      "decimals": "-6",
      "first": true,
      "lang": null,
      "name": "gls:ProceedsFromBusinessCombinationFinancingAndSaleOfStock",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100520 - Disclosure - Nature of the Business and Basis of Presentation - Additional Information (Details)",
     "menuCat": "Details",
     "order": "51",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureNatureOfBusinessAndBasisOfPresentationAdditionalInformationDetails",
     "shortName": "Nature of the Business and Basis of Presentation - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessDescriptionAndBasisOfPresentationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_1cfa4656-ff49-4512-acf7-ea64b7e2760b",
      "decimals": "-6",
      "first": true,
      "lang": null,
      "name": "gls:ProceedsFromBusinessCombinationFinancingAndSaleOfStock",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:ImpairmentOrDisposalOfLongLivedAssetsPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ImpairmentOfLongLivedAssetsToBeDisposedOf",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100530 - Disclosure - Summary of Significant Accounting Policies-Additional Information (Details)",
     "menuCat": "Details",
     "order": "52",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails",
     "shortName": "Summary of Significant Accounting Policies-Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:ImpairmentOrDisposalOfLongLivedAssetsPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ImpairmentOfLongLivedAssetsToBeDisposedOf",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:PropertyPlantAndEquipmentPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_8f6c795d-33d0-4c20-b5e7-7b7b3c36240b",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentUsefulLife",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100540 - Disclosure - Summary of Significant Accounting Policies - Summary of Estimated Useful Lives (Details)",
     "menuCat": "Details",
     "order": "53",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails",
     "shortName": "Summary of Significant Accounting Policies - Summary of Estimated Useful Lives (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:PropertyPlantAndEquipmentPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_8f6c795d-33d0-4c20-b5e7-7b7b3c36240b",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentUsefulLife",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockSharesIssued",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100550 - Disclosure - Business Combination and Reverse Recapitalization - Additional Information (Details)",
     "menuCat": "Details",
     "order": "54",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
     "shortName": "Business Combination and Reverse Recapitalization - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "gls:BusinessCombinationAndReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_449a96f6-cfe3-4c56-9314-8751ee75f73a",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:BusinessCombinationContingentConsiderationLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
       "div",
       "gls:BusinessCombinationAndReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_e12eecdc-2672-4a2c-bed4-b56317d29c16",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "gls:BusinessCombinationGrossProceeds",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100560 - Disclosure - Business Combination and Reverse Recapitalization - Summary of Net Proceeds from Business Combination (Details)",
     "menuCat": "Details",
     "order": "55",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails",
     "shortName": "Business Combination and Reverse Recapitalization - Summary of Net Proceeds from Business Combination (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
       "div",
       "gls:BusinessCombinationAndReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_e12eecdc-2672-4a2c-bed4-b56317d29c16",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "gls:BusinessCombinationGrossProceeds",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:CommonStockSharesIssued",
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockSharesOutstanding",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100570 - Disclosure - Business Combination and Reverse Recapitalization - Schedule of Consummation of Business Combination (Details)",
     "menuCat": "Details",
     "order": "56",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails",
     "shortName": "Business Combination and Reverse Recapitalization - Schedule of Consummation of Business Combination (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:ScheduleOfNumberOfSharesIssuedAndImmediatelyConsummationOfBusinessCombinationTableTextBlock",
       "div",
       "gls:BusinessCombinationAndReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_41c3d2a3-003c-4c4b-8345-00a89cd2fdba",
      "decimals": "0",
      "lang": null,
      "name": "gls:StockIssuedDuringPeriodShareConverted",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_8fadf4ff-7798-4875-b6e3-3991f41c9a32",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NotesPayableFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100580 - Disclosure - Fair Value Measurements - Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)",
     "menuCat": "Details",
     "order": "57",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
     "shortName": "Fair Value Measurements - Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_8fadf4ff-7798-4875-b6e3-3991f41c9a32",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NotesPayableFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:SummaryOfChangesInWarrantLiabilitiesTableTextBlock",
       "div",
       "gls:WarrantsDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_18b858ff-0d16-4c6a-a674-af78fde56c75",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100590 - Disclosure - Fair Value Measurements - Summary of Changes in Fair Value of Company's Level 3 Financial Instruments (Details)",
     "menuCat": "Details",
     "order": "58",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails",
     "shortName": "Fair Value Measurements - Summary of Changes in Fair Value of Company's Level 3 Financial Instruments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_eb58f762-7927-4936-be14-7ddd6b4fe05c",
      "decimals": "-3",
      "lang": null,
      "name": "gls:FairValueMeasurementWithUnobservableInputsIssuranceOfConvertiblePromissoryNotes",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "gls:FairValueLiabilitiesLevel1ToLevel2TransferAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100600 - Disclosure - Fair Value Measurements - Additional Information (Details)",
     "menuCat": "Details",
     "order": "59",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails",
     "shortName": "Fair Value Measurements - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "gls:FairValueLiabilitiesLevel1ToLevel2TransferAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-1",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100070 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE LOSS",
     "menuCat": "Statements",
     "order": "6",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLoss",
     "shortName": "CONSOLIDATED STATEMENTS OF COMPREHENSIVE LOSS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100610 - Disclosure - Product Revenue and Reserve and Allowances - Summary of Revenue (Details)",
     "menuCat": "Details",
     "order": "60",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfRevenueDetails",
     "shortName": "Product Revenue and Reserve and Allowances - Summary of Revenue (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AccountsReceivableNetCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100620 - Disclosure - Product Revenue and Reserve and Allowances - Additional Information (Details)",
     "menuCat": "Details",
     "order": "61",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
     "shortName": "Product Revenue and Reserve and Allowances - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:AllowanceForCreditLossesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_eacfa74b-71b3-41ba-b43f-a7a99abacb9e",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:AdditionalPaidInCapital",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:ScheduleOfActivityInProductRevenueReserveAndAllowanceTableTextBlock",
       "div",
       "us-gaap:AllowanceForCreditLossesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_0587282a-cf41-491a-9b8f-75a8bb81ad91",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "gls:ProductRevenueReserveAndAllowances",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100630 - Disclosure - Product Revenue and Reserve and Allowances - Summary of Activity in Product Revenue Reserve and Allowance (Details)",
     "menuCat": "Details",
     "order": "62",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfActivityInProductRevenueReserveAndAllowanceDetails",
     "shortName": "Product Revenue and Reserve and Allowances - Summary of Activity in Product Revenue Reserve and Allowance (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:ScheduleOfActivityInProductRevenueReserveAndAllowanceTableTextBlock",
       "div",
       "us-gaap:AllowanceForCreditLossesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_1da2e2f1-df20-496e-90c9-b68e51eeffff",
      "decimals": "-3",
      "lang": null,
      "name": "gls:ProductRevenueReserveAndAllowances",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InventoryRawMaterials",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100640 - Disclosure - Inventories - Schedule of Inventories (Details)",
     "menuCat": "Details",
     "order": "63",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails",
     "shortName": "Inventories - Schedule of Inventories (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InventoryRawMaterials",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "gls:UnsoldOrUnutilizedInventoryFinishedGoods",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100650 - Disclosure - Inventories - Additional Information (Details)",
     "menuCat": "Details",
     "order": "64",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureInventoriesAdditionalInformationDetails",
     "shortName": "Inventories - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "gls:UnsoldOrUnutilizedInventoryFinishedGoods",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureTextBlock",
       "div",
       "gls:PrepaidExpensesAndOtherCurrentAssetsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PrepaidExpenseCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100660 - Disclosure - Prepaid Expenses and Other Current Assets - Schedule of Prepaid Expenses and Other Current Assets (Details)",
     "menuCat": "Details",
     "order": "65",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails",
     "shortName": "Prepaid Expenses and Other Current Assets - Schedule of Prepaid Expenses and Other Current Assets (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureTextBlock",
       "div",
       "gls:PrepaidExpensesAndOtherCurrentAssetsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PrepaidExpenseCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PropertyPlantAndEquipmentGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100670 - Disclosure - Property and Equipment, Net - Schedule of Property and Equipment, Net (Details)",
     "menuCat": "Details",
     "order": "66",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails",
     "shortName": "Property and Equipment, Net - Schedule of Property and Equipment, Net (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PropertyPlantAndEquipmentGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "gls:AreaOfFacilityUnderManufacturingAndResearchAndDevelopment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_sqft",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100680 - Disclosure - Property and Equipment, Net - Additional Information (Details)",
     "menuCat": "Details",
     "order": "67",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAdditionalInformationDetails",
     "shortName": "Property and Equipment, Net - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "gls:AreaOfFacilityUnderManufacturingAndResearchAndDevelopment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_sqft",
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:ScheduleOfAccruedLiabilitiesAndOtherLiabilitiesTableTextBlock",
       "div",
       "gls:AccruedExpensesAndOtherLiabilitiesDisclosureCurrentTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EmployeeRelatedLiabilitiesCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100690 - Disclosure - Accrued Expenses - Summary of Accrued Expenses and Other Current Liabilities (Details)",
     "menuCat": "Details",
     "order": "68",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails",
     "shortName": "Accrued Expenses - Summary of Accrued Expenses and Other Current Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:ScheduleOfAccruedLiabilitiesAndOtherLiabilitiesTableTextBlock",
       "div",
       "gls:AccruedExpensesAndOtherLiabilitiesDisclosureCurrentTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EmployeeRelatedLiabilitiesCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:ScheduleOfAccruedLiabilitiesAndOtherLiabilitiesTableTextBlock",
       "div",
       "gls:AccruedExpensesAndOtherLiabilitiesDisclosureCurrentTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "gls:AccruedProfessionalFeesRelatedPartyCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100700 - Disclosure - Accrued Expenses - Summary of Accrued Expenses and Other Current Liabilities (Parenthetical) (Details)",
     "menuCat": "Details",
     "order": "69",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesParentheticalDetails",
     "shortName": "Accrued Expenses - Summary of Accrued Expenses and Other Current Liabilities (Parenthetical) (Details)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:ScheduleOfAccruedLiabilitiesAndOtherLiabilitiesTableTextBlock",
       "div",
       "gls:AccruedExpensesAndOtherLiabilitiesDisclosureCurrentTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "gls:AccruedProfessionalFeesRelatedPartyCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_b9e6bea9-4f26-451f-a59c-d2643dad7570",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100080 - Statement - CONSOLIDATED STATEMENTS OF NONCONTROLLING INTEREST, REDEEMABLE CONVERTIBLE PREFERRED STOCK AND STOCKHOLDERS' DEFICIT",
     "menuCat": "Statements",
     "order": "7",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit",
     "shortName": "CONSOLIDATED STATEMENTS OF NONCONTROLLING INTEREST, REDEEMABLE CONVERTIBLE PREFERRED STOCK AND STOCKHOLDERS' DEFICIT",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_b9e6bea9-4f26-451f-a59c-d2643dad7570",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OtherNoncurrentLiabilitiesTableTextBlock",
       "div",
       "gls:OtherLongTermLiabilityDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "gls:LongTermTaxLiabilitiesNoncurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100710 - Disclosure - Other Long-Term Liabilities (Details)",
     "menuCat": "Details",
     "order": "70",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilitiesDetails",
     "shortName": "Other Long-Term Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OtherNoncurrentLiabilitiesTableTextBlock",
       "div",
       "gls:OtherLongTermLiabilityDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "gls:LongTermTaxLiabilitiesNoncurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AmortizationOfIntangibleAssets",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100720 - Disclosure - Significant Agreements - Additional Information (Details)",
     "menuCat": "Details",
     "order": "71",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
     "shortName": "Significant Agreements - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "gls:SignificantAgreementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_2487a370-9261-4f51-b421-c558538f4eee",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:ClassOfWarrantOrRightOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:SummaryOfGrantRecognizedTableTextBlock",
       "div",
       "gls:SignificantAgreementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_e1e54188-e645-45bd-8e62-881e8c84e277",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherNonoperatingIncome",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100730 - Disclosure - Significant Agreements - Summary Of Amounts Recognized On Consolidated Statements Of Operations And On Consolidated Balance Sheets (Details)",
     "menuCat": "Details",
     "order": "72",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
     "shortName": "Significant Agreements - Summary Of Amounts Recognized On Consolidated Statements Of Operations And On Consolidated Balance Sheets (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "gls:SignificantAgreementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_d64f90f9-097a-49ae-bbde-4df1a244d3cd",
      "decimals": "-3",
      "lang": null,
      "name": "gls:AccountsReceivableFromLongTermGrants",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "gls:SignificantAgreementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_679256dc-e58c-47bf-af7a-77cc074b4b3a",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "gls:EquityMethodInvestmentConsiderationTransferredCash",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100740 - Disclosure - Significant Agreements - Schedule Of Allocated Consideration In June 2019 Transaction On Relative Fair Value Basis (Details)",
     "menuCat": "Details",
     "order": "73",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails",
     "shortName": "Significant Agreements - Schedule Of Allocated Consideration In June 2019 Transaction On Relative Fair Value Basis (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "gls:SignificantAgreementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_679256dc-e58c-47bf-af7a-77cc074b4b3a",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "gls:EquityMethodInvestmentConsiderationTransferredCash",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:ChangeInFairValueOfCallOptionLiabilityTableTextBlock",
       "div",
       "gls:SignificantAgreementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_53f5a47e-ccff-43ae-9317-ff6a904f7588",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "gls:CallOptionLiabilityBalance",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100750 - Disclosure - Significant Agreements - Summary of Changes in Fair Value of Call Option Liability (Details)",
     "menuCat": "Details",
     "order": "74",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfChangesInFairValueOfCallOptionLiabilityDetails",
     "shortName": "Significant Agreements - Summary of Changes in Fair Value of Call Option Liability (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:ChangeInFairValueOfCallOptionLiabilityTableTextBlock",
       "div",
       "gls:SignificantAgreementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_48c07d11-d86f-4724-bc05-7fb06b820242",
      "decimals": "-3",
      "lang": null,
      "name": "gls:CallOptionLiabilityBalance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:WeightedAverageAssumptionsUsedToDetermineFairValueCallOptionTableTextBlock",
       "div",
       "gls:SignificantAgreementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_8b17abd9-cc86-4bd8-ac9d-7abcf5727677",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:WeightedAverageExpectedTermOfCallOptionLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100760 - Disclosure - Significant Agreements - Summary of Weighted Average Assumptions Used to Determine Fair Value of Call Option Liability (Details)",
     "menuCat": "Details",
     "order": "75",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfCallOptionLiabilityDetails",
     "shortName": "Significant Agreements - Summary of Weighted Average Assumptions Used to Determine Fair Value of Call Option Liability (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:WeightedAverageAssumptionsUsedToDetermineFairValueCallOptionTableTextBlock",
       "div",
       "gls:SignificantAgreementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_8b17abd9-cc86-4bd8-ac9d-7abcf5727677",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:WeightedAverageExpectedTermOfCallOptionLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R76": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_18b858ff-0d16-4c6a-a674-af78fde56c75",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RedeemableNoncontrollingInterestEquityCarryingAmount",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100770 - Disclosure - Significant Agreements - Summary of Noncontrolling Interest (Details)",
     "menuCat": "Details",
     "order": "76",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfNoncontrollingInterestDetails",
     "shortName": "Significant Agreements - Summary of Noncontrolling Interest (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:RedeemableNoncontrollingInterestTableTextBlock",
       "div",
       "gls:SignificantAgreementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_a4528712-8267-4936-a6e0-60204f019ea9",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:RedeemableNoncontrollingInterestEquityCarryingAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R77": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtInstrumentCarryingAmount",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100780 - Disclosure - Debt - Summary of Non-Convertible Debt Outstanding (Details)",
     "menuCat": "Details",
     "order": "77",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails",
     "shortName": "Debt - Summary of Non-Convertible Debt Outstanding (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_8e0c21dd-00c5-44aa-bb31-eaee3a2d34c4",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DebtInstrumentCarryingAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R78": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NotesPayableRelatedPartiesClassifiedCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100790 - Disclosure - Debt - Additional Information (Details)",
     "menuCat": "Details",
     "order": "78",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails",
     "shortName": "Debt - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_cb5c3028-d45e-4c45-af33-a77da7a01e8c",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:LongTermDebt",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R79": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:SummaryOfAssumptionsUsedToDetermineFairValueTextBlock",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_c17b317b-04cf-4ab8-ab82-a7a925654cc8",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:ExpectedTermOfConvertiblePromissoryNotes",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100800 - Disclosure - Debt - Summary of Assumptions Used to Determine Fair Value of 2022 Convertible Promissory Notes (Details)",
     "menuCat": "Details",
     "order": "79",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfAssumptionsUsedToDetermineFairValueOf2022ConvertiblePromissoryNotesDetails",
     "shortName": "Debt - Summary of Assumptions Used to Determine Fair Value of 2022 Convertible Promissory Notes (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:SummaryOfAssumptionsUsedToDetermineFairValueTextBlock",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_c17b317b-04cf-4ab8-ab82-a7a925654cc8",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "gls:ExpectedTermOfConvertiblePromissoryNotes",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100090 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "menuCat": "Statements",
     "order": "8",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows",
     "shortName": "CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R80": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100810 - Disclosure - Debt - Summary of Future Maturities to Debt Outstanding (Details)",
     "menuCat": "Details",
     "order": "80",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails",
     "shortName": "Debt - Summary of Future Maturities to Debt Outstanding (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R81": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:SummaryOfChangesInWarrantLiabilitiesTableTextBlock",
       "div",
       "gls:WarrantsDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_18b858ff-0d16-4c6a-a674-af78fde56c75",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100820 - Disclosure - Warrant Liabilities - Summary of Warrants Outstanding (Details)",
     "menuCat": "Details",
     "order": "81",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails",
     "shortName": "Warrant Liabilities - Summary of Warrants Outstanding (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:SummaryOfChangesInWarrantLiabilitiesTableTextBlock",
       "div",
       "gls:WarrantsDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_576bb2a8-47e0-48ef-b53f-48fa82efb720",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R82": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisTextBlock",
       "div",
       "gls:WarrantsDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_4deca01b-b57e-493c-8362-e5d62e370b0f",
      "decimals": "1",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeLiabilityMeasurementInput",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_Y",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100830 - Disclosure - Warrant Liabilities - Summary of Weighted Average Assumptions of Fair Value of Liabilities (Details)",
     "menuCat": "Details",
     "order": "82",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails",
     "shortName": "Warrant Liabilities - Summary of Weighted Average Assumptions of Fair Value of Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisTextBlock",
       "div",
       "gls:WarrantsDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_4deca01b-b57e-493c-8362-e5d62e370b0f",
      "decimals": "1",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeLiabilityMeasurementInput",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_Y",
      "xsiNil": "false"
     }
    },
    "R83": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "gls:WarrantsDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3922ac45-bba7-4017-b00f-446cf949acb2",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:ClassOfWarrantOrRightOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100840 - Disclosure - Warrant Liabilities - Additional Information (Details)",
     "menuCat": "Details",
     "order": "83",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesAdditionalInformationDetails",
     "shortName": "Warrant Liabilities - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "gls:WarrantsDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3922ac45-bba7-4017-b00f-446cf949acb2",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:ClassOfWarrantOrRightOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R84": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "gls:BusinessCombinationAndReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_e12eecdc-2672-4a2c-bed4-b56317d29c16",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "gls:NumberOfEarnoutSharesContingentConsiderationArrangement",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100850 - Disclosure - Earnout Liability - Additional Information (Details)",
     "menuCat": "Details",
     "order": "84",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilityAdditionalInformationDetails",
     "shortName": "Earnout Liability - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DerivativesAndFairValueTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_07952f4c-11a4-43ad-b4e7-65a16e519d89",
      "decimals": "0",
      "lang": null,
      "name": "gls:NumberOfEarnoutSharesContingentConsiderationArrangement",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R85": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "div",
       "us-gaap:DerivativesAndFairValueTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "gls:RecognizedUponBusinessCombinationContingentEarnoutLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100860 - Disclosure - Earnout Liability - Summary of Earnout Liability Activity (Details)",
     "menuCat": "Details",
     "order": "85",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfEarnoutLiabilityActivityDetails",
     "shortName": "Earnout Liability - Summary of Earnout Liability Activity (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "div",
       "us-gaap:DerivativesAndFairValueTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "gls:RecognizedUponBusinessCombinationContingentEarnoutLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R86": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:ScheduleOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityTableTextBlock",
       "div",
       "us-gaap:DerivativesAndFairValueTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_4b23110a-f19f-49b8-8101-d185c7fc604b",
      "decimals": "1",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeLiabilityMeasurementInput",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_Y",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100870 - Disclosure - Earnout Liability - Summary of Weighted Average Assumptions Used to Determine Fair Value of Earnout Liability (Details)",
     "menuCat": "Details",
     "order": "86",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
     "shortName": "Earnout Liability - Summary of Weighted Average Assumptions Used to Determine Fair Value of Earnout Liability (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "gls:ScheduleOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityTableTextBlock",
       "div",
       "us-gaap:DerivativesAndFairValueTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_4b23110a-f19f-49b8-8101-d185c7fc604b",
      "decimals": "1",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeLiabilityMeasurementInput",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_Y",
      "xsiNil": "false"
     }
    },
    "R87": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockSharesAuthorized",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100880 - Disclosure - Stockholder's Equity (Deficit) - Additional Information (Details)",
     "menuCat": "Details",
     "order": "87",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
     "shortName": "Stockholder's Equity (Deficit) - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_1ba42840-ca57-4c2e-82eb-047d31e5b3c0",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:AdditionalPaidInCapital",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R88": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "gls:CommonStockIssuedUponOptionExerciseAndRsusVesting",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100890 - Disclosure - Stockholder's Equity (Deficit) - Schedule of Common Stock Reserved for Future Issuance (Details)",
     "menuCat": "Details",
     "order": "88",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails",
     "shortName": "Stockholder's Equity (Deficit) - Schedule of Common Stock Reserved for Future Issuance (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "gls:CommonStockIssuedUponOptionExerciseAndRsusVesting",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R89": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100900 - Disclosure - Stock-Based Compensation - Additional Information (Details)",
     "menuCat": "Details",
     "order": "89",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
     "shortName": "Stock-Based Compensation - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PaymentsOfDebtIssuanceCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100100 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS (PARENTHETICAL)",
     "menuCat": "Statements",
     "order": "9",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsParenthetical",
     "shortName": "CONSOLIDATED STATEMENTS OF CASH FLOWS (PARENTHETICAL)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PaymentsOfDebtIssuanceCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R90": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_870de4c2-679e-4dfd-9520-fd5d1709f776",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100910 - Disclosure - Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details)",
     "menuCat": "Details",
     "order": "90",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails",
     "shortName": "Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_870de4c2-679e-4dfd-9520-fd5d1709f776",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R91": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_18b858ff-0d16-4c6a-a674-af78fde56c75",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100920 - Disclosure - Stock-Based Compensation - Summary of Stock Option Activity (Details)",
     "menuCat": "Details",
     "order": "91",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails",
     "shortName": "Stock-Based Compensation - Summary of Stock Option Activity (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R92": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "us-gaap:SharePrice",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100930 - Disclosure - Stock-Based Compensation - Schedule of Grant Date Fair Value of Options Issued Using Black-Scholes Weighted Average Assumptions (Details)",
     "menuCat": "Details",
     "order": "92",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfGrantDateFairValueOfOptionsIssuedUsingBlackScholesWeightedAverageAssumptionsDetails",
     "shortName": "Stock-Based Compensation - Schedule of Grant Date Fair Value of Options Issued Using Black-Scholes Weighted Average Assumptions (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "us-gaap:SharePrice",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     }
    },
    "R93": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_0c4ac643-08c4-4fd0-a816-eb7b0166ff3d",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100940 - Disclosure - Stock-Based Compensation - Summary of Restricted Stock Unit Activity (Details)",
     "menuCat": "Details",
     "order": "93",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails",
     "shortName": "Stock-Based Compensation - Summary of Restricted Stock Unit Activity (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_0c4ac643-08c4-4fd0-a816-eb7b0166ff3d",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R94": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeTaxExpenseBenefit",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100950 - Disclosure - Income Taxes - Additional Information (Details)",
     "menuCat": "Details",
     "order": "94",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails",
     "shortName": "Income Taxes - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R95": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100960 - Disclosure - Income Taxes - Schedule of (Loss) Income Before income taxes (Details)",
     "menuCat": "Details",
     "order": "95",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfLossIncomeBeforeIncomeTaxesDetails",
     "shortName": "Income Taxes - Schedule of (Loss) Income Before income taxes (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R96": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CurrentForeignTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100970 - Disclosure - Income Taxes - Schedule of Provision for Income Taxes (Details)",
     "menuCat": "Details",
     "order": "96",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails",
     "shortName": "Income Taxes - Schedule of Provision for Income Taxes (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CurrentForeignTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R97": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
      "reportCount": 1,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100980 - Disclosure - Income Taxes - Schedule of Reconciliation of U.S. Federal Statutory Rate to Effective Income Tax Rate (Details)",
     "menuCat": "Details",
     "order": "97",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails",
     "shortName": "Income Taxes - Schedule of Reconciliation of U.S. Federal Statutory Rate to Effective Income Tax Rate (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_3eff669d-4f18-40d0-8652-11f10f475154",
      "decimals": "3",
      "lang": null,
      "name": "us-gaap:EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R98": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DeferredTaxAssetsOperatingLossCarryforwardsDomestic",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100990 - Disclosure - Income taxes - Significant Components of Consolidated Deferred Tax Assets and Liabilities (Details)",
     "menuCat": "Details",
     "order": "98",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails",
     "shortName": "Income taxes - Significant Components of Consolidated Deferred Tax Assets and Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_ab64bd2f-3246-4712-979f-eb24b1693790",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R99": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_18b858ff-0d16-4c6a-a674-af78fde56c75",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:UnrecognizedTaxBenefits",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101000 - Disclosure - Income Taxes - Reconciliation of Beginning and Ending Amount of Uncertain Tax Positions (Details)",
     "menuCat": "Details",
     "order": "99",
     "role": "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesReconciliationOfBeginningAndEndingAmountOfUncertainTaxPositionsDetails",
     "shortName": "Income Taxes - Reconciliation of Beginning and Ending Amount of Uncertain Tax Positions (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "gls-20221231.htm",
      "contextRef": "C_b9e6bea9-4f26-451f-a59c-d2643dad7570",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:UnrecognizedTaxBenefits",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 129,
   "tag": {
    "country_IT": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "ITALY",
        "terseLabel": "Italy"
       }
      }
     },
     "localname": "IT",
     "nsuri": "http://xbrl.sec.gov/country/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_AmendmentFlag": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission.",
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_AuditorFirmId": {
     "auth_ref": [
      "r785",
      "r786",
      "r787"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "PCAOB issued Audit Firm Identifier",
        "label": "Auditor Firm ID"
       }
      }
     },
     "localname": "AuditorFirmId",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "nonemptySequenceNumberItemType"
    },
    "dei_AuditorLocation": {
     "auth_ref": [
      "r785",
      "r786",
      "r787"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Location"
       }
      }
     },
     "localname": "AuditorLocation",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "internationalNameItemType"
    },
    "dei_AuditorName": {
     "auth_ref": [
      "r785",
      "r786",
      "r787"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Name"
       }
      }
     },
     "localname": "AuditorName",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "internationalNameItemType"
    },
    "dei_CityAreaCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area code of city",
        "label": "City Area Code",
        "terseLabel": "City Area Code"
       }
      }
     },
     "localname": "CityAreaCode",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_CoverAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cover page.",
        "label": "Cover [Abstract]"
       }
      }
     },
     "localname": "CoverAbstract",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "xbrltype": "stringItemType"
    },
    "dei_CurrentFiscalYearEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "End date of current fiscal year in the format --MM-DD.",
        "label": "Current Fiscal Year End Date",
        "terseLabel": "Current Fiscal Year End Date"
       }
      }
     },
     "localname": "CurrentFiscalYearEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "dei_DocumentAnnualReport": {
     "auth_ref": [
      "r785",
      "r786",
      "r787"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as an annual report.",
        "label": "Document Annual Report"
       }
      }
     },
     "localname": "DocumentAnnualReport",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentFiscalPeriodFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY.",
        "label": "Document Fiscal Period Focus",
        "terseLabel": "Document Fiscal Period Focus"
       }
      }
     },
     "localname": "DocumentFiscalPeriodFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "fiscalPeriodItemType"
    },
    "dei_DocumentFiscalYearFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006.",
        "label": "Document Fiscal Year Focus",
        "terseLabel": "Document Fiscal Year Focus"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD.",
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r788"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as a transition report.",
        "label": "Document Transition Report",
        "terseLabel": "Document Transition Report"
       }
      }
     },
     "localname": "DocumentTransitionReport",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentType": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'.",
        "label": "Document Type",
        "verboseLabel": "Document Type"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_EntityAddressAddressLine1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name",
        "label": "Entity Address, Address Line One",
        "terseLabel": "Entity Address, Address Line One"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressAddressLine2": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Address Line 2 such as Street or Suite number",
        "label": "Entity Address, Address Line Two",
        "terseLabel": "Entity Address, Address Line Two"
       }
      }
     },
     "localname": "EntityAddressAddressLine2",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressCityOrTown": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the City or Town",
        "label": "Entity Address, City or Town",
        "terseLabel": "Entity Address, City or Town"
       }
      }
     },
     "localname": "EntityAddressCityOrTown",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressPostalZipCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Code for the postal or zip code",
        "label": "Entity Address, Postal Zip Code",
        "terseLabel": "Entity Address, Postal Zip Code"
       }
      }
     },
     "localname": "EntityAddressPostalZipCode",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressStateOrProvince": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the state or province.",
        "label": "Entity Address, State or Province",
        "terseLabel": "Entity Address State Or Province"
       }
      }
     },
     "localname": "EntityAddressStateOrProvince",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK.",
        "label": "Entity Central Index Key",
        "terseLabel": "Entity Central Index Key"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "centralIndexKeyItemType"
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument.",
        "label": "Entity Common Stock, Shares Outstanding",
        "terseLabel": "Entity Common Stock, Shares Outstanding"
       }
      }
     },
     "localname": "EntityCommonStockSharesOutstanding",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "sharesItemType"
    },
    "dei_EntityCurrentReportingStatus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Current Reporting Status",
        "terseLabel": "Entity Current Reporting Status"
       }
      }
     },
     "localname": "EntityCurrentReportingStatus",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains.",
        "label": "Entity [Domain]"
       }
      }
     },
     "localname": "EntityDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate if registrant meets the emerging growth company criteria.",
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company"
       }
      }
     },
     "localname": "EntityEmergingGrowthCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityExTransitionPeriod": {
     "auth_ref": [
      "r791"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate if an emerging growth company has elected not to use the extended transition period for complying with any new or revised financial accounting standards.",
        "label": "Entity Ex Transition Period",
        "terseLabel": "Entity Ex Transition Period"
       }
      }
     },
     "localname": "EntityExTransitionPeriod",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityFileNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen.",
        "label": "Securities Act File Number",
        "terseLabel": "Entity File Number"
       }
      }
     },
     "localname": "EntityFileNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Filer Category",
        "terseLabel": "Entity Filer Category"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "filerCategoryItemType"
    },
    "dei_EntityIncorporationStateCountryCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two-character EDGAR code representing the state or country of incorporation.",
        "label": "Entity Incorporation, State or Country Code",
        "terseLabel": "Entity Incorporation, State or Country Code"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r789"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files).",
        "label": "Entity Interactive Data Current",
        "terseLabel": "Entity Interactive Data Current"
       }
      }
     },
     "localname": "EntityInteractiveDataCurrent",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityPublicFloat": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate market value of the voting and non-voting common equity held by non-affiliates computed by reference to the price at which the common equity was last sold, or the average bid and asked price of such common equity, as of the last business day of the registrant's most recently completed second fiscal quarter.",
        "label": "Entity Public Float",
        "terseLabel": "Entity Public Float"
       }
      }
     },
     "localname": "EntityPublicFloat",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "monetaryItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC.",
        "label": "Entity Registrant Name",
        "terseLabel": "Entity Registrant Name"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act.",
        "label": "Entity Shell Company",
        "terseLabel": "Entity Shell Company"
       }
      }
     },
     "localname": "EntityShellCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC).",
        "label": "Entity Small Business",
        "terseLabel": "Entity Small Business"
       }
      }
     },
     "localname": "EntitySmallBusiness",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS.",
        "label": "Entity Tax Identification Number",
        "terseLabel": "Entity Tax Identification Number"
       }
      }
     },
     "localname": "EntityTaxIdentificationNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "employerIdItemType"
    },
    "dei_EntityVoluntaryFilers": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act.",
        "label": "Entity Voluntary Filers"
       }
      }
     },
     "localname": "EntityVoluntaryFilers",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "auth_ref": [
      "r790"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Is used on Form Type: 10-K, 10-Q, 8-K, 20-F, 6-K, 10-K/A, 10-Q/A, 20-F/A, 6-K/A, N-CSR, N-Q, N-1A.",
        "label": "Entity Well-known Seasoned Issuer"
       }
      }
     },
     "localname": "EntityWellKnownSeasonedIssuer",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_IcfrAuditorAttestationFlag": {
     "auth_ref": [
      "r785",
      "r786",
      "r787"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "localname": "IcfrAuditorAttestationFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_LegalEntityAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The set of legal entities associated with a report.",
        "label": "Legal Entity [Axis]"
       }
      }
     },
     "localname": "LegalEntityAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_LocalPhoneNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Local phone number for entity.",
        "label": "Local Phone Number",
        "terseLabel": "Local Phone Number"
       }
      }
     },
     "localname": "LocalPhoneNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_Security12bTitle": {
     "auth_ref": [
      "r782"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of a 12(b) registered security.",
        "label": "Title of 12(b) Security",
        "terseLabel": "Title of 12(b) Security"
       }
      }
     },
     "localname": "Security12bTitle",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "securityTitleItemType"
    },
    "dei_SecurityExchangeName": {
     "auth_ref": [
      "r784"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the Exchange on which a security is registered.",
        "label": "Security Exchange Name",
        "terseLabel": "Security Exchange Name"
       }
      }
     },
     "localname": "SecurityExchangeName",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "edgarExchangeCodeItemType"
    },
    "dei_TradingSymbol": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Trading symbol of an instrument as listed on an exchange.",
        "label": "Trading Symbol",
        "terseLabel": "Trading Symbol"
       }
      }
     },
     "localname": "TradingSymbol",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "gls_AccountsReceivableFromGrants": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of grants receivable.",
        "label": "Accounts Receivable From Grants",
        "terseLabel": "Grants receivable"
       }
      }
     },
     "localname": "AccountsReceivableFromGrants",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AccountsReceivableFromLongTermGrants": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of long-term grants receivable.",
        "label": "Accounts Receivable From Long-term Grants",
        "terseLabel": "Long-term grant receivable"
       }
      }
     },
     "localname": "AccountsReceivableFromLongTermGrants",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AccretionOfNonControllingInterestDueToAdjustments": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of non controlling interest increased due to some adjustments.",
        "label": "Accretion Of Non Controlling Interest Due To Adjustments",
        "terseLabel": "Accretion of noncontrolling interest"
       }
      }
     },
     "localname": "AccretionOfNonControllingInterestDueToAdjustments",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AccretionOfNoncontrollingInterestPutOptionToRedemptionValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accretion of noncontrolling interest put option to redemption value.",
        "label": "Accretion Of Noncontrolling Interest Put Option To Redemption Value",
        "terseLabel": "Accretion of put option"
       }
      }
     },
     "localname": "AccretionOfNoncontrollingInterestPutOptionToRedemptionValue",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AccretionOfPutOption": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accretion of put option.",
        "label": "Accretion Of Put Option",
        "terseLabel": "Accretion of put option"
       }
      }
     },
     "localname": "AccretionOfPutOption",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfNoncontrollingInterestDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AccretionOfSeniorPreferredStockToRedemptionValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accretion of senior preferred stock to redemption value.",
        "label": "Accretion Of Senior Preferred Stock To Redemption Value",
        "terseLabel": "Accretion of Legacy Gelesis senior preferred stock to redemption value",
        "verboseLabel": "Accretion of senior preferred stock to redemption value"
       }
      }
     },
     "localname": "AccretionOfSeniorPreferredStockToRedemptionValue",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AccruedExpensesAndOtherLiabilitiesDisclosureCurrentTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued expenses and other liabilities disclosure current.",
        "label": "Accrued Expenses And Other Liabilities Disclosure Current [Text Block]",
        "terseLabel": "Accrued Expenses"
       }
      }
     },
     "localname": "AccruedExpensesAndOtherLiabilitiesDisclosureCurrentTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpenses"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_AccruedExpensesAndOtherLiabilitiesRelatedPartiesCurrent": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued expenses and other liabilities, related parties current.",
        "label": "Accrued Expenses And Other Liabilities Related Parties Current",
        "terseLabel": "Due to related party, accrued expenses",
        "verboseLabel": "Accrued expenses and other liabilities, due to related parties"
       }
      }
     },
     "localname": "AccruedExpensesAndOtherLiabilitiesRelatedPartiesCurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AccruedInterest": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails": {
       "order": 9.0,
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued interest.",
        "label": "Accrued Interest",
        "terseLabel": "Accrued interest"
       }
      }
     },
     "localname": "AccruedInterest",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AccruedPaymentsForInventoryAndManufacturingExpensesCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued payments for inventory and manufacturing expenses current.",
        "label": "Accrued Payments For Inventory And Manufacturing Expenses Current",
        "terseLabel": "Accrued inventory and manufacturing expense"
       }
      }
     },
     "localname": "AccruedPaymentsForInventoryAndManufacturingExpensesCurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AccruedPaymentsPropertyPlantAndEquipmentAdditionsCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued payments property plant and equipment additions current.",
        "label": "Accrued Payments Property Plant And Equipment Additions Current",
        "terseLabel": "Accrued property, plant and equipment additions"
       }
      }
     },
     "localname": "AccruedPaymentsPropertyPlantAndEquipmentAdditionsCurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AccruedProfessionalFeesAndOutsideContractorsIncludingRelatedPartyCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued professional fees and outside contractors including related party current.",
        "label": "Accrued Professional Fees And Outside Contractors Including Related Party Current",
        "terseLabel": "Accrued professional fees and outside contractors (including due to related party of $153 and $60, respectively)"
       }
      }
     },
     "localname": "AccruedProfessionalFeesAndOutsideContractorsIncludingRelatedPartyCurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AccruedProfessionalFeesRelatedPartyCurrent": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued professional fees related party current.",
        "label": "Accrued Professional Fees Related Party Current",
        "terseLabel": "Accrued Professional fee, due to related party"
       }
      }
     },
     "localname": "AccruedProfessionalFeesRelatedPartyCurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesParentheticalDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AccruedRateOfReturn": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued Rate of Return.",
        "label": "Accrued Rate of Return",
        "terseLabel": "Accrued rate of return"
       }
      }
     },
     "localname": "AccruedRateOfReturn",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_AccruedUnpaidPortionOfOneSrlEquityAcquisition": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued unpaid portion of one SRL equity acquisition.",
        "label": "Accrued Unpaid Portion Of One SRL Equity Acquisition",
        "terseLabel": "Unpaid portion of One S.r.l. equity acquisition (see Note 11)"
       }
      }
     },
     "localname": "AccruedUnpaidPortionOfOneSrlEquityAcquisition",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AcquisitionsOfOperatingLeaseRightOfUseAsset": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Acquisitions of Operating Lease Right of Use Asset",
        "label": "Acquisitions of Operating Lease Right Of Use Asset",
        "terseLabel": "Acquisitions of right-of-use assets under operating leases"
       }
      }
     },
     "localname": "AcquisitionsOfOperatingLeaseRightOfUseAsset",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AdditionalAreaOfLandToDevelopForConstruction": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additional area of land to develop for construction.",
        "label": "Additional Area Of Land to Develop For Construction",
        "terseLabel": "Additional area of land to develop for construction"
       }
      }
     },
     "localname": "AdditionalAreaOfLandToDevelopForConstruction",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAdditionalInformationDetails"
     ],
     "xbrltype": "areaItemType"
    },
    "gls_AdjustmentsForChangeInFairValueOfCallOption": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 14.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense (income) related to adjustment to fair value of fair value of call option.",
        "label": "Adjustments For Change In Fair Value Of Call Option",
        "terseLabel": "Change in fair value of One S.r.l. call option"
       }
      }
     },
     "localname": "AdjustmentsForChangeInFairValueOfCallOption",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AdjustmentsForChangeInFairValueOfConvertiblePromissoryNotes": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense (income) related to adjustment to fair value of convertible promissory notes",
        "label": "Adjustments For Change In Fair Value Of Convertible Promissory Notes",
        "terseLabel": "Change in the fair value of convertible promissory notes"
       }
      }
     },
     "localname": "AdjustmentsForChangeInFairValueOfConvertiblePromissoryNotes",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AdjustmentsToAdditionalPaidInCapitalAssumedPrivatePlacementWarrantLiabilityUponMergerRecapitalization": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments to additional paid in capital, assumed private placement warrant liability upon merger recapitalization.",
        "label": "Adjustments to Additional Paid in Capital, Assumed Private Placement Warrant Liability upon Merger Recapitalization",
        "terseLabel": "Issuance of private placement warrants upon merger recapitalization"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalAssumedPrivatePlacementWarrantLiabilityUponMergerRecapitalization",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AdjustmentsToAdditionalPaidInCapitalRecognitionOfEarnoutLiabilityUponMergerRecapitalization": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments to additional paid in capital, recognition of earnout liability upon merger recapitalization.",
        "label": "Adjustments to Additional Paid in Capital, Recognition of Earnout Liability upon Merger Recapitalization",
        "terseLabel": "Issuance of contingent earnout liability upon merger recapitalization"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalRecognitionOfEarnoutLiabilityUponMergerRecapitalization",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AggregateNumberOfSharesOfTheCompanyCommonStockPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate Number of Shares of the Company Common Stock Percentage",
        "label": "Aggregate number of shares of the common stock percentage"
       }
      }
     },
     "localname": "AggregateNumberOfSharesOfTheCompanyCommonStockPercentage",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_AmendedAndRestatedMasterAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amended and restated master agreement.",
        "label": "Amended And Restated Master Agreement [Member]",
        "terseLabel": "Amended And Restated Master Agreement"
       }
      }
     },
     "localname": "AmendedAndRestatedMasterAgreementMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_AnnualInterestRateInConnectionWithTransaction": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the annual interest rate in connection with transaction.",
        "label": "Annual Interest Rate In Connection With Transaction",
        "terseLabel": "Annual interest rate in connection with transaction"
       }
      }
     },
     "localname": "AnnualInterestRateInConnectionWithTransaction",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_AreaOfFacilityUnderManufacturingAndResearchAndDevelopment": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area of facility under manufacturing and research and development.",
        "label": "Area Of Facility Under Manufacturing And Research And Development",
        "terseLabel": "Area of facility under manufacturing and research and development"
       }
      }
     },
     "localname": "AreaOfFacilityUnderManufacturingAndResearchAndDevelopment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAdditionalInformationDetails"
     ],
     "xbrltype": "areaItemType"
    },
    "gls_AreaOfFacilityUnderManufacturingAndResearchAndDevelopmentExpectsToExpand": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area Of facility under manufacturing and research and development expects to expand.",
        "label": "Area Of Facility Under Manufacturing And Research And Development Expects To Expand",
        "terseLabel": "Area of facility under manufacturing and research and development expects to expand"
       }
      }
     },
     "localname": "AreaOfFacilityUnderManufacturingAndResearchAndDevelopmentExpectsToExpand",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAdditionalInformationDetails"
     ],
     "xbrltype": "areaItemType"
    },
    "gls_AverageClosingPriceOfCommonStock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average closing price of common stock.",
        "label": "Average Closing Price of Common Stock",
        "terseLabel": "Average closing price of common stock"
       }
      }
     },
     "localname": "AverageClosingPriceOfCommonStock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "gls_AverageMarketCapitalization": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average market capitalization.",
        "label": "Average Market Capitalization",
        "terseLabel": "Average market capitalization"
       }
      }
     },
     "localname": "AverageMarketCapitalization",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_AverageMarketCapitalizationThresholdTradingDays": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average market capitalization threshold trading days.",
        "label": "Average Market Capitalization Threshold Trading Days",
        "terseLabel": "Average market capitalization threshold trading days"
       }
      }
     },
     "localname": "AverageMarketCapitalizationThresholdTradingDays",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_BRileyPrincipalCapitalIiLlcMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "B. Riley Principal Capital II, LLC",
        "label": "B. Riley Principal Capital II, LLC [Member]",
        "verboseLabel": "B. Riley Principal Capital II, LLC"
       }
      }
     },
     "localname": "BRileyPrincipalCapitalIiLlcMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_BackstopAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Backstop agreement.",
        "label": "Backstop Agreement [Member]",
        "terseLabel": "Backstop Agreement"
       }
      }
     },
     "localname": "BackstopAgreementMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_BuildingsAndLandImprovementsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Buildings and land improvements.",
        "label": "Buildings And Land Improvements [Member]",
        "terseLabel": "Buildings and land improvements"
       }
      }
     },
     "localname": "BuildingsAndLandImprovementsMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_BusinessAcquisitionTransactionCostsAllocatedToEarnoutShares": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business acquisition, transaction costs allocated to earnout shares.",
        "label": "Business Acquisition Transaction Costs Allocated To Earnout Shares",
        "terseLabel": "Business combination, transaction costs allocated to earnout shares"
       }
      }
     },
     "localname": "BusinessAcquisitionTransactionCostsAllocatedToEarnoutShares",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_BusinessCombinationAndReverseCapitalizationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination and reverse capitalization.",
        "label": "Business Combination and Reverse Capitalization [Abstract]"
       }
      }
     },
     "localname": "BusinessCombinationAndReverseCapitalizationAbstract",
     "nsuri": "http://ir.gelesis.com/20221231",
     "xbrltype": "stringItemType"
    },
    "gls_BusinessCombinationAndReverseRecapitalizationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination and reverse recapitalization.",
        "label": "Business Combination and Reverse Recapitalization [Abstract]"
       }
      }
     },
     "localname": "BusinessCombinationAndReverseRecapitalizationAbstract",
     "nsuri": "http://ir.gelesis.com/20221231",
     "xbrltype": "stringItemType"
    },
    "gls_BusinessCombinationAndReverseRecapitalizationTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination and reverse recapitalization.",
        "label": "Business Combination and Reverse Recapitalization [Text Block]",
        "terseLabel": "Business Combination and Reverse Recapitalization"
       }
      }
     },
     "localname": "BusinessCombinationAndReverseRecapitalizationTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalization1"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_BusinessCombinationGrossProceeds": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails": {
       "order": 0.0,
       "parentTag": "gls_BusinessCombinationNetProceeds",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination gross proceeds.",
        "label": "Business Combination Gross Proceeds",
        "terseLabel": "Gross Proceeds",
        "totalLabel": "Gross proceeds"
       }
      }
     },
     "localname": "BusinessCombinationGrossProceeds",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_BusinessCombinationNetProceeds": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination net proceeds.",
        "label": "Business Combination Net Proceeds",
        "totalLabel": "Net proceeds from the Business Combination"
       }
      }
     },
     "localname": "BusinessCombinationNetProceeds",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_CMSAmendmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "C M S Amendment.",
        "label": "C M S Amendment [Member]",
        "terseLabel": "CMS Amendment"
       }
      }
     },
     "localname": "CMSAmendmentMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_CMSBridgingDMCCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "CMS Bridging DMCC.",
        "label": "C M S Bridging D M C C [Member]",
        "terseLabel": "CMS Bridging DMCC",
        "verboseLabel": "CMS"
       }
      }
     },
     "localname": "CMSBridgingDMCCMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfRevenueDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_CallOptionLiabilityBalance": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Call option liability balance.",
        "label": "Call Option Liability Balance",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance"
       }
      }
     },
     "localname": "CallOptionLiabilityBalance",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfChangesInFairValueOfCallOptionLiabilityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_CapstarSpecialPurposeAcquisitionCorpMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Capstar Special Purpose Acquisition Corp.",
        "label": "Capstar Special Purpose Acquisition Corp [Member]",
        "terseLabel": "CPSR"
       }
      }
     },
     "localname": "CapstarSpecialPurposeAcquisitionCorpMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_CarryingValueOfWarrantsTransferredToAdditionalPaidInCapital": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value of warrants transferred to additional paid in capital",
        "label": "Carrying Value of Warrants Transferred to Additional Paid in Capital",
        "terseLabel": "Carrying value of warrants transferred to additional paid in capital"
       }
      }
     },
     "localname": "CarryingValueOfWarrantsTransferredToAdditionalPaidInCapital",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ChangeInFairValueOfCallOptionLiability": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in fair value of call option liability.",
        "label": "Change In Fair Value Of Call Option Liability",
        "terseLabel": "Change in fair value"
       }
      }
     },
     "localname": "ChangeInFairValueOfCallOptionLiability",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfChangesInFairValueOfCallOptionLiabilityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ChangeInFairValueOfCallOptionLiabilityTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in fair Value of call option liability.",
        "label": "Change In Fair Value of Call Option Liability[Table Text Block]",
        "terseLabel": "Summary of Changes in Fair Value of Call Option Liability"
       }
      }
     },
     "localname": "ChangeInFairValueOfCallOptionLiabilityTableTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_ChangeInFairValueOfEarnoutLiability": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 20.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in fair value of earnout liability.",
        "label": "Change In Fair Value Of Earnout Liability",
        "terseLabel": "Change in the fair value of earnout liability"
       }
      }
     },
     "localname": "ChangeInFairValueOfEarnoutLiability",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ChangeInFairValueOfInterestRateSwapContract": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 16.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in fair value of interest rate swap contract",
        "label": "Change in fair value of interest rate swap contract",
        "negatedLabel": "Change in fair value of interest rate swap contract"
       }
      }
     },
     "localname": "ChangeInFairValueOfInterestRateSwapContract",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ChangeInTheFairValueOfContingentEarnoutLiability": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in the fair value of contingent earnout liability.",
        "label": "Change In The Fair Value Of Contingent Earnout Liability",
        "negatedLabel": "Changes in fair value",
        "terseLabel": "Change in the fair value of earnout liability",
        "verboseLabel": "Changes in fair value"
       }
      }
     },
     "localname": "ChangeInTheFairValueOfContingentEarnoutLiability",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfEarnoutLiabilityActivityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ClassOfWarrantOrRightMinimumThresholdWrittenNoticePeriodForRedemptionOfWarrants": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of warrant or right minimum threshold written notice period for redemption of warrants.",
        "label": "Class Of Warrant Or Right Minimum Threshold Written Notice Period For Redemption Of Warrants",
        "terseLabel": "Minimum threshold written notice period for redemption of public warrants"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightMinimumThresholdWrittenNoticePeriodForRedemptionOfWarrants",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "gls_ClassOfWarrantOrRightRedemptionOfWarrantsOrRightsStockPriceTrigger": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of warrant or right redemption of warrants or rights stock price trigger.",
        "label": "Class Of Warrant Or Right Redemption Of Warrants Or Rights Stock Price Trigger",
        "terseLabel": "Class of warrant or right redemption of warrants or rights stock price trigger"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightRedemptionOfWarrantsOrRightsStockPriceTrigger",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "gls_ClassOfWarrantOrRightRedemptionOfWarrantsOrRightsThresholdTradingDays": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of warrant or right redemption of warrants or rights threshold trading days.",
        "label": "Class Of Warrant Or Right Redemption Of Warrants Or Rights Threshold Trading Days",
        "terseLabel": "Threshold trading days for redemption of public warrants"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightRedemptionOfWarrantsOrRightsThresholdTradingDays",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "gls_ClassOfWarrantOrRightRedemptionPriceOfWarrantsOrRights": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of warrant or right redemption price of warrants or rights.",
        "label": "Class Of Warrant Or Right Redemption Price Of Warrants Or Rights",
        "terseLabel": "Redemption price per public warrant (in dollars per share)"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightRedemptionPriceOfWarrantsOrRights",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "gls_ClassOfWarrantOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of warrant outstanding.",
        "label": "Class of Warrant Outstanding",
        "terseLabel": "Number of warrants outstanding"
       }
      }
     },
     "localname": "ClassOfWarrantOutstanding",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_ClassOfWarrantsExercisePriceOfWarrants": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of warrants, exercise price of warrants.",
        "label": "Class of Warrants, Exercise Price of Warrants",
        "terseLabel": "Exercise price of warrants"
       }
      }
     },
     "localname": "ClassOfWarrantsExercisePriceOfWarrants",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "gls_CommercialMilestonesCumulativeNetSalesForWeightLossProduct": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of commercial milestones based on cumulative net sales for weight loss product.",
        "label": "Commercial Milestones, Cumulative Net Sales for Weight Loss Product",
        "terseLabel": "Commercial milestones, cumulative net sales for weight loss product"
       }
      }
     },
     "localname": "CommercialMilestonesCumulativeNetSalesForWeightLossProduct",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_CommittedEquityFacilityWithBRileyPrincipalCapitalIiLlcMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Committed Equity Facility with B. Riley Principal Capital II, LLC [Member]",
        "label": "Committed Equity Facility with B. Riley Principal Capital II, LLC"
       }
      }
     },
     "localname": "CommittedEquityFacilityWithBRileyPrincipalCapitalIiLlcMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_CommonStockCommitmentSharesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common stock commitment shares.",
        "label": "Common Stock Commitment Shares [Member]",
        "terseLabel": "Common Stock Commitment Shares"
       }
      }
     },
     "localname": "CommonStockCommitmentSharesMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_CommonStockConvertibleConversionRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common stock, convertible, conversion ratio.",
        "label": "Common Stock, Convertible, Conversion Ratio",
        "terseLabel": "Common stock exchange ratio"
       }
      }
     },
     "localname": "CommonStockConvertibleConversionRatio",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarningsLossPerShareAdditionalInformationDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "gls_CommonStockIssuedToPipeInvestorsAndBackstopAgreement": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common Stock Issued to PIPE Investors and Backstop Agreement.",
        "label": "Common Stock Issued to PIPE Investors and Backstop Agreement",
        "terseLabel": "Common stock issued to PIPE investors and backstop agreement"
       }
      }
     },
     "localname": "CommonStockIssuedToPipeInvestorsAndBackstopAgreement",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_CommonStockIssuedUponOptionExerciseAndRsusVesting": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_CommonStockCapitalSharesReservedForFutureIssuance",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common stock issued upon option exercise and RSUs vesting",
        "label": "Common Stock Issued Upon Option Exercise And RSUs Vesting",
        "terseLabel": "Common stock issued upon option exercise and RSUs vesting"
       }
      }
     },
     "localname": "CommonStockIssuedUponOptionExerciseAndRsusVesting",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_CommonStockIssuedtoPipeinvestorAndBackstopAgreement": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common Stock IssuedTo PipeInvestor And Backstop Agreement",
        "label": "Common Stock IssuedTo PipeInvestor And Backstop Agreement",
        "terseLabel": "Common stock issued to PIPE investors and backstop agreement"
       }
      }
     },
     "localname": "CommonStockIssuedtoPipeinvestorAndBackstopAgreement",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_CommonStockPurchaseAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common stock purchase agreement.",
        "label": "Common Stock Purchase Agreement [Member]",
        "terseLabel": "Common Stock Purchase Agreement"
       }
      }
     },
     "localname": "CommonStockPurchaseAgreementMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_CommonStockWarrantsConversionRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common stock warrants conversion ratio.",
        "label": "Common Stock Warrants Conversion Ratio",
        "terseLabel": "Common stock warrants conversion exchange ratio"
       }
      }
     },
     "localname": "CommonStockWarrantsConversionRatio",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "gls_ComputerEquipmentAndSoftwareMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Computer Equipment and Software.",
        "label": "Computer Equipment and Software [Member]",
        "terseLabel": "Computer Equipment and Software"
       }
      }
     },
     "localname": "ComputerEquipmentAndSoftwareMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_ConcentrationsOfCreditRiskAndOffBalanceSheetRiskPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Concentrations of credit risk and off -balance-sheet risk.",
        "label": "Concentrations of Credit Risk and Off -Balance-Sheet Risk [Policy Text Block]",
        "terseLabel": "Concentrations of Credit Risk and Off -Balance-Sheet Risk"
       }
      }
     },
     "localname": "ConcentrationsOfCreditRiskAndOffBalanceSheetRiskPolicyTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_ConsecutiveTradingDaysUsedToEvaluateSharePriceForSharePriceCondition": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consecutive trading days used to evaluate share price for share price condition.",
        "label": "Consecutive Trading Days Used To Evaluate Share Price For Share Price Condition",
        "terseLabel": "Consecutive trading days used to evaluate share price"
       }
      }
     },
     "localname": "ConsecutiveTradingDaysUsedToEvaluateSharePriceForSharePriceCondition",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_ConsultingAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consulting Agreement",
        "label": "Consulting Agreement [Member]",
        "verboseLabel": "Consulting Agreement"
       }
      }
     },
     "localname": "ConsultingAgreementMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_ContingentCallOptionForInvestmentInRelatedPartyFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of Contingent call option for investment in related party.",
        "label": "Contingent Call Option For Investment In Related Party Fair Value Disclosure",
        "terseLabel": "One S.r.l call option (see Note 11)"
       }
      }
     },
     "localname": "ContingentCallOptionForInvestmentInRelatedPartyFairValueDisclosure",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ContingentCallOptionForInvestmentInRelatedPartyNoncurrent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilitiesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_OtherLiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of contingent call option for investment in related party which is included in other long-term liabilities classified as noncurrent.",
        "label": "Contingent Call Option For Investment In Related Party Noncurrent",
        "terseLabel": "One S.r.l. call option (see Note 11)"
       }
      }
     },
     "localname": "ContingentCallOptionForInvestmentInRelatedPartyNoncurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ContingentEarnoutLiability": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contingent earnout liability.",
        "label": "Contingent Earnout Liability",
        "periodEndLabel": "Balance",
        "periodStartLabel": "Balance",
        "terseLabel": "Contingent earnout liability",
        "verboseLabel": "Earnout liability"
       }
      }
     },
     "localname": "ContingentEarnoutLiability",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfEarnoutLiabilityActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ContingentLossForResearchAndDevelopmentTaxCreditsNoncurrent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherLiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of Contingent loss for research and development tax credits which is included in other long-term liabilities classified as noncurrent.",
        "label": "Contingent Loss For Research And Development Tax Credits Noncurrent",
        "terseLabel": "Contingent loss for research and development tax credits"
       }
      }
     },
     "localname": "ContingentLossForResearchAndDevelopmentTaxCreditsNoncurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ContractualObligationUponCommercialMilestone": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of contractual obligation upon achievement of future commercial milestones.",
        "label": "Contractual Obligation, Upon Commercial Milestone",
        "terseLabel": "Consideration upon achievement of future commercial milestones"
       }
      }
     },
     "localname": "ContractualObligationUponCommercialMilestone",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ConvertiblePromissoryNoteDueToRelatedPartyCurrent": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Convertible promissory note due to related party current.",
        "label": "Convertible Promissory Note Due to Related Party Current",
        "terseLabel": "Convertible promissory note due to related party"
       }
      }
     },
     "localname": "ConvertiblePromissoryNoteDueToRelatedPartyCurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ConvertiblePromissoryNoteHeldAtFairValueIncludingDueToRelatedPartyCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Convertible promissory note held at fair value including due to related party current.",
        "label": "Convertible Promissory Note Held at Fair Value Including Due to Related Party Current",
        "terseLabel": "Convertible promissory notes held at fair value, including due to related party of $22,082 and $27,128, respectively"
       }
      }
     },
     "localname": "ConvertiblePromissoryNoteHeldAtFairValueIncludingDueToRelatedPartyCurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_CpsrPublicStockholdersMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "CPSR Public Stockholders.",
        "label": "CPSR Public Stockholders [Member]",
        "terseLabel": "CPSR Public Stockholders"
       }
      }
     },
     "localname": "CpsrPublicStockholdersMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_CpsrSponsorStockholdersMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "CPSR Sponsor Stockholders.",
        "label": "CPSR Sponsor Stockholders [Member]",
        "terseLabel": "CPSR Sponsor Stockholders"
       }
      }
     },
     "localname": "CpsrSponsorStockholdersMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_CurrentLiabilitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Current liabilities.",
        "label": "Current Liabilities [Member]",
        "terseLabel": "Current Liabilities"
       }
      }
     },
     "localname": "CurrentLiabilitiesMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_DateOfStockPriceReturnToLevelOverDollarOnePointZeroZero": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Date of stock price return to level over dollar one point zero zero.",
        "label": "Date of Stock Price Return to Level Over Dollar One Point Zero Zero",
        "terseLabel": "Date of stock price return to level over $1.00"
       }
      }
     },
     "localname": "DateOfStockPriceReturnToLevelOverDollarOnePointZeroZero",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "dateItemType"
    },
    "gls_DebtInstrumentAdditionalOptionalFaceAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument additional optional face amount.",
        "label": "Debt Instrument Additional Optional Face Amount"
       }
      }
     },
     "localname": "DebtInstrumentAdditionalOptionalFaceAmount",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_DebtInstrumentIssuedAdditionalOptionalFaceAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument issued additional optional face amount.",
        "label": "Debt instrument Issued Additional Optional Face Amount",
        "verboseLabel": "Additional aggregate principal amount"
       }
      }
     },
     "localname": "DebtInstrumentIssuedAdditionalOptionalFaceAmount",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_DeferredFinancingCostsCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_PrepaidExpenseAndOtherAssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of deferred financing costs included in prepaid expenses and other current assets, classified as current.",
        "label": "Deferred Financing Costs Current",
        "terseLabel": "Deferred financing costs"
       }
      }
     },
     "localname": "DeferredFinancingCostsCurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_DeferredFinancingCostsIncludedInAccountsPayableAndAccruedExpense": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred financing costs included in accounts payable and accrued expense.",
        "label": "Deferred Financing Costs Included In Accounts Payable And Accrued Expense",
        "terseLabel": "Deferred financing costs included in accounts payable and accrued expense"
       }
      }
     },
     "localname": "DeferredFinancingCostsIncludedInAccountsPayableAndAccruedExpense",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_DeferredLegalFees": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred legal fees.",
        "label": "Deferred legal fees"
       }
      }
     },
     "localname": "DeferredLegalFees",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_DeferredPaymentOfRemainingPurchasePrice": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred payment of remaining purchase price.",
        "label": "Deferred payment of remaining purchase price",
        "terseLabel": "Deferred payment of remaining purchase price"
       }
      }
     },
     "localname": "DeferredPaymentOfRemainingPurchasePrice",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_DeferredTaxAssetUncollectedGrants": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 13.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets uncollected grants.",
        "label": "Deferred Tax Asset Uncollected Grants",
        "terseLabel": "Uncollected grants"
       }
      }
     },
     "localname": "DeferredTaxAssetUncollectedGrants",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_DeferredTaxAssetsInterest": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets interest.",
        "label": "Deferred Tax Assets Interest",
        "terseLabel": "Interest"
       }
      }
     },
     "localname": "DeferredTaxAssetsInterest",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_DeferredTaxAssetsLeaseLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 10.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets lease liabilities.",
        "label": "Deferred Tax Assets Lease Liabilities",
        "terseLabel": "Lease liabilities"
       }
      }
     },
     "localname": "DeferredTaxAssetsLeaseLiabilities",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_DeferredTaxAssetsSection174Adjustment": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 11.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets section 174 adjustment.",
        "label": "Deferred Tax Assets Section 174 Adjustment",
        "terseLabel": "Section 174 adjustment"
       }
      }
     },
     "localname": "DeferredTaxAssetsSection174Adjustment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_DiscountedOneTimeRegulatoryApprovalMilestonePayment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discounted one time regulatory approval milestone payment",
        "label": "Discounted One Time Regulatory Approval Milestone Payment",
        "terseLabel": "Discounted one-time regulatory approval milestone payment",
        "verboseLabel": "Discounted time-based milestone"
       }
      }
     },
     "localname": "DiscountedOneTimeRegulatoryApprovalMilestonePayment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_DiscountedTimeBasedMilestone": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discounted time-based milestone.",
        "label": "Discounted Time Based Milestone",
        "terseLabel": "Discounted time-based milestone"
       }
      }
     },
     "localname": "DiscountedTimeBasedMilestone",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_EanoutSharesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Eanout Shares.",
        "label": "Eanout Shares [Member]",
        "terseLabel": "Eanout shares"
       }
      }
     },
     "localname": "EanoutSharesMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_EarnoutLiabilityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Earnout liability",
        "label": "Earnout Liability [Member]",
        "terseLabel": "Earnout Liability"
       }
      }
     },
     "localname": "EarnoutLiabilityMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilityAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfEarnoutLiabilityActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_EarnoutShares": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_CommonStockCapitalSharesReservedForFutureIssuance",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Earnout shares.",
        "label": "Earnout Shares",
        "terseLabel": "Earnout shares"
       }
      }
     },
     "localname": "EarnoutShares",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_EffectiveIncomeTaxRateReconciliationForeignEarningsIncludibleInUnitedStatesPercent": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Effective income tax rate reconciliation, foreign earnings includible in united states, Percent.",
        "label": "Effective Income Tax Rate Reconciliation, Foreign earnings includible in United states, Percent",
        "terseLabel": "Foreign earnings includible in US"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationForeignEarningsIncludibleInUnitedStatesPercent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_EffectiveIncomeTaxRateReconciliationInvestmentTransfer": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Effective income tax rate reconciliation, investment transfer.",
        "label": "Effective Income Tax Rate Reconciliation, Investment transfer",
        "terseLabel": "Investment transfer"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationInvestmentTransfer",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_EffectiveIncomeTaxRateReconciliationMarkToMarketOfWarrantLiabilitiesPercent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Effective income tax rate reconciliation, mark to market of warrant liabilities, percent.",
        "label": "Effective Income Tax Rate Reconciliation, Mark to market of warrant liabilities, Percent",
        "terseLabel": "Mark to market of warrant liabilities"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationMarkToMarketOfWarrantLiabilitiesPercent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_EffectiveIncomeTaxRateReconciliationNonDeductibleFinancingExpensesPercent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Effective income tax rate reconciliation, non-deductible financing expenses, percent.",
        "label": "Effective Income Tax Rate Reconciliation, Non-deductible financing expenses, Percent",
        "terseLabel": "Non-deductible financing expenses"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationNonDeductibleFinancingExpensesPercent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_EffectiveIncomeTaxRateReconciliationOtherDifferences": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Effective income tax rate reconciliation, other differences.",
        "label": "Effective Income Tax Rate Reconciliation, Other differences",
        "terseLabel": "Other differences"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationOtherDifferences",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_EffectiveIncomeTaxRateReconciliationTransactionCostsPercent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": 11.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Effective Income Tax Rate Reconciliation, Transaction Costs, Percent",
        "label": "Effective Income Tax Rate Reconciliation, Transaction Costs, Percent",
        "terseLabel": "Transaction Costs"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationTransactionCostsPercent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_EffectiveIncomeTaxRateReconciliationUsFederalAndStateResearchCreditsPercent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": 8.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Effective income tax rate reconciliation, us federal and state research credits, percent.",
        "label": "Effective Income Tax Rate Reconciliation, US federal and state research credits, Percent",
        "terseLabel": "US federal and state research credits"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationUsFederalAndStateResearchCreditsPercent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_EffectiveIncomeTaxRateReconciliationValuationAllowancePercent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Effective income tax rate reconciliation, valuation allowance, percent.",
        "label": "Effective Income Tax Rate Reconciliation, Valuation allowance, Percent",
        "terseLabel": "Valuation allowance"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationValuationAllowancePercent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_EmployeesAndNonEmployeesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employees and non employees.",
        "label": "Employees and Non Employees [Member]",
        "terseLabel": "Employees and Non Employees"
       }
      }
     },
     "localname": "EmployeesAndNonEmployeesMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_EquityInterestHeldRelatedPartyTransaction": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the equity interest held by related party.",
        "label": "Equity Interest Held Related Party Transaction",
        "terseLabel": "Equity interest held by related party"
       }
      }
     },
     "localname": "EquityInterestHeldRelatedPartyTransaction",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_EquityInterestMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity Interest.",
        "label": "Equity Interest"
       }
      }
     },
     "localname": "EquityInterestMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_EquityInvestmentThatCanBeCalledMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity Investment That Can Be Called.",
        "label": "Equity Investment That Can Be Called [Member]",
        "terseLabel": "Equity investment that can be called beginning in December 2023 and ending in December 2026"
       }
      }
     },
     "localname": "EquityInvestmentThatCanBeCalledMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_EquityMethodInvestmentAssetAcquiredAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity Method Investment Asset Acquired [Abstract].",
        "label": "Equity Method Investment Asset Acquired [Abstract]",
        "terseLabel": "Assets acquired at relative fair value"
       }
      }
     },
     "localname": "EquityMethodInvestmentAssetAcquiredAbstract",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "gls_EquityMethodInvestmentConsiderationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity Method Investment Consideration [Abstract].",
        "label": "Equity Method Investment Consideration [Abstract]",
        "terseLabel": "Consideration"
       }
      }
     },
     "localname": "EquityMethodInvestmentConsiderationAbstract",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "gls_EquityMethodInvestmentConsiderationTransferred": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of consideration transferred for investments accounted for under the equity method of accounting.",
        "label": "Equity Method Investment, Consideration Transferred",
        "terseLabel": "Fair value of total consideration",
        "totalLabel": "Fair value of total consideration"
       }
      }
     },
     "localname": "EquityMethodInvestmentConsiderationTransferred",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_EquityMethodInvestmentConsiderationTransferredCash": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails": {
       "order": 0.0,
       "parentTag": "gls_EquityMethodInvestmentConsiderationTransferred",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash consideration for investments accounted for under the equity method of accounting.",
        "label": "Equity Method Investment, Consideration Transferred, Cash",
        "terseLabel": "Cash"
       }
      }
     },
     "localname": "EquityMethodInvestmentConsiderationTransferredCash",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_EquityMethodInvestmentConsiderationTransferredWarrant": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails": {
       "order": 1.0,
       "parentTag": "gls_EquityMethodInvestmentConsiderationTransferred",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of consideration transferred of warrant for investments accounted for under the equity method of accounting.",
        "label": "Equity Method Investment, Consideration Transferred, Warrant",
        "terseLabel": "Warrants for redeemable convertible preferred stock"
       }
      }
     },
     "localname": "EquityMethodInvestmentConsiderationTransferredWarrant",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_EquityMethodInvestmentIntangibleAssetAcquired": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_EquityMethodInvestmentAggregateCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity method investment intangible asset acquired.",
        "label": "Equity Method Investment Intangible Asset Acquired",
        "terseLabel": "Intangible asset related to reduction in royalty"
       }
      }
     },
     "localname": "EquityMethodInvestmentIntangibleAssetAcquired",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_EquityMethodInvestmentUnpaidConsideration": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unpaid consideration of investments accounted for under the equity method of accounting.",
        "label": "Equity Method Investment Unpaid Consideration",
        "terseLabel": "Remaining undiscounted payments due"
       }
      }
     },
     "localname": "EquityMethodInvestmentUnpaidConsideration",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_EuriborRateMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Euribor rate.",
        "label": "Euribor Rate [Member]",
        "terseLabel": "Euribor Rate"
       }
      }
     },
     "localname": "EuriborRateMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_ExercisePriceContingentCallOptionToBuyBack": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of call option exercise price.",
        "label": "Exercise Price, Contingent Call Option to Buy Back",
        "terseLabel": "Call option exercise price"
       }
      }
     },
     "localname": "ExercisePriceContingentCallOptionToBuyBack",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ExercisePriceOfCallOptionToBuyBackOwnershipPercentage": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Exercise price of call option to buy back ownership percentage.",
        "label": "Exercise Price of Call Option to Buy Back Ownership Percentage",
        "terseLabel": "Exercise price of call option to buy back ownership percentage"
       }
      }
     },
     "localname": "ExercisePriceOfCallOptionToBuyBackOwnershipPercentage",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ExistingInvestorAndRelatedPartiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Existing investor and related parties.",
        "label": "Existing Investor and Related Parties [Member]",
        "terseLabel": "CMS Bridging DMCC, PureTech Health LLC and SSD2 LLC"
       }
      }
     },
     "localname": "ExistingInvestorAndRelatedPartiesMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_ExpectedTermOfConvertiblePromissoryNotes": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expected term of convertible promissory notes.",
        "label": "Expected Term of Convertible Promissory Notes",
        "terseLabel": "Expected Term"
       }
      }
     },
     "localname": "ExpectedTermOfConvertiblePromissoryNotes",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfAssumptionsUsedToDetermineFairValueOf2022ConvertiblePromissoryNotesDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_FairValueAdjustmentOfConvertiblePromissoryNotes": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 3.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense (income) related to adjustment to fair value of convertible promissory notes.",
        "label": "Fair Value Adjustment Of Convertible Promissory Notes",
        "negatedLabel": "Loss of change in fair value of the instrument",
        "terseLabel": "Change in the fair value of convertible promissory notes",
        "verboseLabel": "Loss of change in fair value of the instrument"
       }
      }
     },
     "localname": "FairValueAdjustmentOfConvertiblePromissoryNotes",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueAdjustmentsOfConvertiblePromissoryNotes": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value adjustments of convertible promissory notes.",
        "label": "Fair Value Adjustments of Convertible Promissory Notes",
        "terseLabel": "Loss of change in fair value instruments"
       }
      }
     },
     "localname": "FairValueAdjustmentsOfConvertiblePromissoryNotes",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueAdjustmentsOfEarnoutLiability": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value adjustments of earnout liability.",
        "label": "Fair Value Adjustments of Earnout Liability",
        "terseLabel": "Change in the fair value of earnout liability"
       }
      }
     },
     "localname": "FairValueAdjustmentsOfEarnoutLiability",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueLiabilitiesLevel1ToLevel2TransferAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value liabilities level1 to level2 transfer amount.",
        "label": "Fair Value Liabilities Level1 To Level2 Transfer Amount",
        "terseLabel": "Liabilities, Transfer from Level 1 to Level 2"
       }
      }
     },
     "localname": "FairValueLiabilitiesLevel1ToLevel2TransferAmount",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueLiabilitiesLevel2ToLevel1TransferAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value liabilities level2 to level1 transfers amount",
        "label": "Fair Value Liabilities Level2 To Level1 Transfer Amount",
        "terseLabel": "Liabilities, Transfer from Level 2 to Level 1"
       }
      }
     },
     "localname": "FairValueLiabilitiesLevel2ToLevel1TransferAmount",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueMeasurementWithUnobservableInputsAssumedUponBusinessCombination": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value measurement with unobservable inputs assumed upon business combination",
        "label": "Fair Value Measurement With Unobservable Inputs Assumed upon Business Combination",
        "terseLabel": "Assumed upon Business Combination"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsAssumedUponBusinessCombination",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueMeasurementWithUnobservableInputsConversionAndExchangeUponBusinessCombination": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value measurement with unobservable inputs Conversion and exchange upon business combination.",
        "label": "Fair value measurement with unobservable inputs Conversion and exchange upon Business Combination",
        "negatedLabel": "Conversion and exchange upon Business Combination",
        "terseLabel": "Conversion and exchange upon Business Combination"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsConversionAndExchangeUponBusinessCombination",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueMeasurementWithUnobservableInputsExerciseOfWarrants": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value measurement with unobservable inputs exercise of warrants.",
        "label": "Fair Value Measurement With Unobservable Inputs Exercise Of Warrants",
        "terseLabel": "Exercise of warrants"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsExerciseOfWarrants",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueMeasurementWithUnobservableInputsIssuranceOfConvertiblePromissoryNotes": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value measurement with unobservable inputs issurance of convertible promissory notes.",
        "label": "Fair Value Measurement With Unobservable Inputs Issurance of Convertible Promissory Notes",
        "terseLabel": "Issuance of convertible promissory notes"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsIssuranceOfConvertiblePromissoryNotes",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueMeasurementWithUnobservableInputsRecognizedUponBusinessCombination": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value measurement with unobservable inputs recognized upon business combination",
        "label": "Fair Value Measurement With Unobservable Inputs Recognized upon Business Combination",
        "terseLabel": "Recognized upon Business Combination"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsRecognizedUponBusinessCombination",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueOfCommonStockIssued": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of common stock issued.",
        "label": "Fair Value of Common Stock Issued",
        "terseLabel": "Fair value of common stock issued"
       }
      }
     },
     "localname": "FairValueOfCommonStockIssued",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueOfIncrementalCompensationCost": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of incremental compensation cost.",
        "label": "Fair Value of Incremental Compensation Cost",
        "terseLabel": "Fair value of incremental compensation cost",
        "verboseLabel": "Fair value of incremental compensation cost vested"
       }
      }
     },
     "localname": "FairValueOfIncrementalCompensationCost",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueOfIncrementalCompensationCostVested": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of incremental compensation cost vested.",
        "label": "Fair value of incremental compensation cost vested",
        "terseLabel": "Fair value of incremental compensation cost vested"
       }
      }
     },
     "localname": "FairValueOfIncrementalCompensationCostVested",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FairValueOfInterestRateSwapContract": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of interest rate swap contract.",
        "label": "Fair Value of Interest Rate Swap Contract",
        "terseLabel": "Fair value of interest rate swap contract"
       }
      }
     },
     "localname": "FairValueOfInterestRateSwapContract",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FixedInterestRateOnLoanRelatedPartyTransaction": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the fixed interest rate on loan.",
        "label": "Fixed Interest Rate on Loan Related Party Transaction",
        "verboseLabel": "Fixed interest rate on loan"
       }
      }
     },
     "localname": "FixedInterestRateOnLoanRelatedPartyTransaction",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_ForeignCurrencyTranslationGain": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Foreign currency translation gain.",
        "label": "Foreign Currency Translation Gain",
        "terseLabel": "Foreign currency translation gain"
       }
      }
     },
     "localname": "ForeignCurrencyTranslationGain",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfChangesInFairValueOfCallOptionLiabilityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FounderOfOneMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Founder Of one.",
        "label": "Founder Of One [Member]",
        "terseLabel": "One S.r.l",
        "verboseLabel": "Founder of One"
       }
      }
     },
     "localname": "FounderOfOneMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_FutureOneTimeNonRefundableAndNonCreditableMilestonePayment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Future one time non-refundable and non-creditable milestone payment.",
        "label": "Future One Time Non-Refundable And Non-Creditable Milestone Payment",
        "verboseLabel": "Future one-time, non-refundable and non-creditable milestone payment"
       }
      }
     },
     "localname": "FutureOneTimeNonRefundableAndNonCreditableMilestonePayment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_FvDiscountOfFutureOneTimeNonRefundableAndNonCreditableMilestonePayment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "FV discount of future one time non-refundable and non-creditable mileStone payment.",
        "label": "FV Discount Of Future One Time Non-Refundable And Non-Creditable MileStone Payment",
        "verboseLabel": "FV discount of future one time non-refundable and non-creditable milestone payment."
       }
      }
     },
     "localname": "FvDiscountOfFutureOneTimeNonRefundableAndNonCreditableMilestonePayment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_GainLossOnAdjustmentForFairValueOfConvertiblePromissoryNotes": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of gain loss on adjustment for fair value for convertible promissory notes.",
        "label": "Gain Loss on Adjustment for Fair Value of Convertible Promissory Notes",
        "negatedLabel": "Loss on change in fair value of the convertible promissory notes",
        "terseLabel": "Loss on change in fair value of the convertible promissory notes"
       }
      }
     },
     "localname": "GainLossOnAdjustmentForFairValueOfConvertiblePromissoryNotes",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_GainLossOnOneSrlAmendment": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 19.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gain (loss) on One SRL amendment.",
        "label": "Gain Loss On One SRL Amendment",
        "negatedLabel": "Loss on One S.r.l. amendment"
       }
      }
     },
     "localname": "GainLossOnOneSrlAmendment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_GainOnCmsAmendment": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gain on CMS Amendment",
        "label": "Gain on CMS Amendment",
        "negatedLabel": "Gain on CMS Amendment"
       }
      }
     },
     "localname": "GainOnCmsAmendment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_GainOnSalesOfCommonStock": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gain on Sales of Common Stock",
        "label": "Gain on sales of common stock",
        "negatedLabel": "Gain on sales of common stock"
       }
      }
     },
     "localname": "GainOnSalesOfCommonStock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_GelesisIncMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gelesis, Inc.",
        "label": "Gelesis Inc [Member]",
        "terseLabel": "Gelesis"
       }
      }
     },
     "localname": "GelesisIncMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureNatureOfBusinessAndBasisOfPresentationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_GoGoMedsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "GoGoMeds.",
        "label": "Go Go Meds [Member]",
        "terseLabel": "GoGoMeds"
       }
      }
     },
     "localname": "GoGoMedsMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfRevenueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_GovernmentGrantsPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Government grants.",
        "label": "Government Grants [Policy Text Block]",
        "terseLabel": "Government Grants"
       }
      }
     },
     "localname": "GovernmentGrantsPolicyTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_GrantAwardedAmountFacilityAndEquipmentInvestments": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of funding awarded as reimbursement for certain facility and equipment investments.",
        "label": "Grant Awarded Amount Facility And Equipment Investments",
        "terseLabel": "Grant funding for certain facility and equipment investments",
        "verboseLabel": "Income attributable to investments in facilities and equipment"
       }
      }
     },
     "localname": "GrantAwardedAmountFacilityAndEquipmentInvestments",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_GrantAwardedAmountResearchAndDevelopmentExpenditures": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of funding awarded as reimbursement for certain research and development expenditures.",
        "label": "Grant Awarded Amount Research And Development Expenditures",
        "terseLabel": "Grant funding for certain research and development expenditures",
        "verboseLabel": "Income attributable to R&amp;D expense"
       }
      }
     },
     "localname": "GrantAwardedAmountResearchAndDevelopmentExpenditures",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_GrantAwardedAmountResearchAndDevelopmentExpendituresPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period of reimbursement from funding awarded for certain research and development expenditures.",
        "label": "Grant Awarded Amount, Research and Development Expenditures, Period",
        "terseLabel": "Grant funding for certain research and development expenditures, period"
       }
      }
     },
     "localname": "GrantAwardedAmountResearchAndDevelopmentExpendituresPeriod",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_GrossProceedsFromIssuanceOfDebt": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross proceeds from issuance of debt.",
        "label": "Gross Proceeds from Issuance of Debt",
        "terseLabel": "Gross proceeds from issuance of debt"
       }
      }
     },
     "localname": "GrossProceedsFromIssuanceOfDebt",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_Horizon2020LoanDecember2019Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Horizon 2020 Loan December 2019.",
        "label": "Horizon 2020 Loan December 2019 [Member]",
        "terseLabel": "Horizon 2020 Loan, December 2019"
       }
      }
     },
     "localname": "Horizon2020LoanDecember2019Member",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_Horizon2020LoanOctober2020Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Horizon 2020 Loan October 2020.",
        "label": "Horizon 2020 Loan October 2020 [Member]",
        "terseLabel": "Horizon 2020 Loan, October 2020"
       }
      }
     },
     "localname": "Horizon2020LoanOctober2020Member",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_HorizonTwentyTwentyLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Horizon twenty twenty loan.",
        "label": "Horizon Twenty Twenty Loan [Member]",
        "terseLabel": "Horizon 2020 Loan"
       }
      }
     },
     "localname": "HorizonTwentyTwentyLoanMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_IncreaseDecreaseInGrantsReceivable": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 23.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in amount due within one year (or one business cycle) from grants.",
        "label": "Increase Decrease In Grants Receivable",
        "negatedLabel": "Grants receivable"
       }
      }
     },
     "localname": "IncreaseDecreaseInGrantsReceivable",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_InterestRateSwapContractOnIntesaSanpaoloLoan1Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate swap contract on intesa sanpaolo loan 1.",
        "label": "Interest Rate Swap Contract on Intesa Sanpaolo Loan 1 [Member]",
        "terseLabel": "Interest Rate Swap Contract on Intesa Sanpaolo Loan 1"
       }
      }
     },
     "localname": "InterestRateSwapContractOnIntesaSanpaoloLoan1Member",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_IntesaSanpaoloLoanOne2020Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Intesa Sanpaolo Loan One 2020.",
        "label": "Intesa Sanpaolo Loan One 2020 [Member]",
        "terseLabel": "Intesa Sanpaolo Loan 1, 2020"
       }
      }
     },
     "localname": "IntesaSanpaoloLoanOne2020Member",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_IntesaSanpaoloLoanOneMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Intesa sanpaolo loan one.",
        "label": "Intesa Sanpaolo Loan One [Member]",
        "terseLabel": "Intesa Sanpaolo Loan 1"
       }
      }
     },
     "localname": "IntesaSanpaoloLoanOneMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_IntesaSanpaoloLoanOneNovember2019Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Intesa Sanpaolo Loan One November 2019.",
        "label": "Intesa Sanpaolo Loan One November 2019 [Member]",
        "terseLabel": "Intesa Sanpaolo Loan 1, November 2019"
       }
      }
     },
     "localname": "IntesaSanpaoloLoanOneNovember2019Member",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_IntesaSanpaoloLoanTwoMarch2021Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Intesa Sanpaolo Loan Two March 2021.",
        "label": "Intesa Sanpaolo Loan Two March 2021 [Member]",
        "terseLabel": "Intesa Sanpaolo Loan 2, March 2021"
       }
      }
     },
     "localname": "IntesaSanpaoloLoanTwoMarch2021Member",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_IntesaSanpaoloLoanTwoMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Intesa sanpaolo loan two.",
        "label": "Intesa Sanpaolo Loan Two [Member]",
        "terseLabel": "Intesa Sanpaolo Loan 2"
       }
      }
     },
     "localname": "IntesaSanpaoloLoanTwoMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_InvestmentTaxCreditReceivable": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails": {
       "order": 9.0,
       "parentTag": "us-gaap_PrepaidExpenseAndOtherAssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment Tax Credit Receivable",
        "label": "Investment Tax Credit Receivable",
        "terseLabel": "Investment tax credit receivable"
       }
      }
     },
     "localname": "InvestmentTaxCreditReceivable",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_IssuanceOfCommonStockCommitment": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Issuance of common stock commitment.",
        "label": "Issuance of common stock commitment shares"
       }
      }
     },
     "localname": "IssuanceOfCommonStockCommitment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ItalianEconomicDevelopmentAgencyLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Italian economic development agency loan.",
        "label": "Italian Economic Development Agency Loan [Member]",
        "terseLabel": "Italian Economic Development Agency Loan"
       }
      }
     },
     "localname": "ItalianEconomicDevelopmentAgencyLoanMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_LaboratoryAndManufacturingEquipmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Laboratory And Manufacturing Equipment.",
        "label": "Laboratory And Manufacturing Equipment [Member]",
        "terseLabel": "Laboratory And Manufacturing Equipment"
       }
      }
     },
     "localname": "LaboratoryAndManufacturingEquipmentMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_LegacyGelesisPreferredStockWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Legacy gelesis preferred stock warrants.",
        "label": "Legacy Gelesis Preferred Stock Warrants [Member]",
        "terseLabel": "Legacy Gelesis Preferred Stock Warrants"
       }
      }
     },
     "localname": "LegacyGelesisPreferredStockWarrantsMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_LegacyGelesisRedeemablePreferredStockWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Legacy gelesis redeemable preferred stock warrants member",
        "label": "Legacy Gelesis Redeemable Preferred Stock Warrants [Member]",
        "terseLabel": "Legacy Gelesis Redeemable Preferred Stock Warrants",
        "verboseLabel": "Legacy Gelesis Warrants"
       }
      }
     },
     "localname": "LegacyGelesisRedeemablePreferredStockWarrantsMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesTables"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_LegacyGelesisWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Legacy gelesis warrants member",
        "label": "Legacy Gelesis Warrants [Member]",
        "terseLabel": "Legacy Gelesis Warrants"
       }
      }
     },
     "localname": "LegacyGelesisWarrantsMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_LegalAndProfessionalCosts": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Legal and professional costs.",
        "label": "Legal and Professional Costs",
        "terseLabel": "Legal and professional costs"
       }
      }
     },
     "localname": "LegalAndProfessionalCosts",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_LiabilityHeldAtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Liability Held at Fair Value",
        "label": "Liability Held at Fair Value",
        "terseLabel": "Liability held at fair value"
       }
      }
     },
     "localname": "LiabilityHeldAtFairValue",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_LicenseAndCollaborationRevenuesPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "License and collaboration revenues.",
        "label": "License and Collaboration Revenues [Policy Text Block]",
        "terseLabel": "License and Collaboration Revenues"
       }
      }
     },
     "localname": "LicenseAndCollaborationRevenuesPolicyTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_LongTermTaxLiabilitiesNoncurrent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherLiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of long term tax liabilities which is included in other long-term liabilities classified as noncurrent.",
        "label": "Long Term Tax Liabilities Noncurrent",
        "terseLabel": "Long-term tax liabilities"
       }
      }
     },
     "localname": "LongTermTaxLiabilitiesNoncurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_LossOnOneSRLAmendment": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loss on One S.r.l. amendment",
        "label": "Loss on One S.r.l. amendment",
        "terseLabel": "Loss due to the amendment to the Warrant Purchase Agreement"
       }
      }
     },
     "localname": "LossOnOneSRLAmendment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_LtdtBaseRateStatedPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "LTDT base rate stated percentage.",
        "label": "LTDT Base Rate Stated Percentage",
        "terseLabel": "Long term debt, base rate"
       }
      }
     },
     "localname": "LtdtBaseRateStatedPercentage",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_LtdtInterestOnlyPeriodPostIssuance": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "LTDT interest only period post issuance.",
        "label": "LTDT Interest Only Period Post Issuance",
        "terseLabel": "LTDT interest only period post issuance"
       }
      }
     },
     "localname": "LtdtInterestOnlyPeriodPostIssuance",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_ManagementServicesExpensesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Management services expenses",
        "label": "Management Services Expenses [Member]",
        "terseLabel": "Management Services Expenses"
       }
      }
     },
     "localname": "ManagementServicesExpensesMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_MeasurementInputFairValueOfRedeemableConvertiblePreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input fair value of redeemable convertible preferred stock member",
        "label": "Measurement Input Fair Value Of Redeemable Convertible Preferred Stock [Member]",
        "terseLabel": "Estimated fair value of the redeemable convertible preferred stock"
       }
      }
     },
     "localname": "MeasurementInputFairValueOfRedeemableConvertiblePreferredStockMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_MeasurementInputPriceOfGelesisCommonStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input price of Gelesis common stock.",
        "label": "Measurement Input Price Of Gelesis Common Stock [Member]",
        "terseLabel": "Price Of Gelesis Common Stock"
       }
      }
     },
     "localname": "MeasurementInputPriceOfGelesisCommonStockMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_MergerRecapitalizationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Merger recapitalization member.",
        "label": "Merger Recapitalization [Member]",
        "terseLabel": "Merger Recapitalization"
       }
      }
     },
     "localname": "MergerRecapitalizationMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_MinimumMarketCapitalization": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum market capitalization.",
        "label": "Minimum Market Capitalization",
        "terseLabel": "Minimum market capitalization"
       }
      }
     },
     "localname": "MinimumMarketCapitalization",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_MinimumSharePriceRequirementTradingDaysPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum share price requirement trading days period.",
        "label": "Minimum Share Price Requirement Trading Days Period",
        "terseLabel": "Minimum share price requirement trading days period"
       }
      }
     },
     "localname": "MinimumSharePriceRequirementTradingDaysPeriod",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_MonteCarloSimulationValueModelMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Monte Carlo Simulation Value Model Member",
        "label": "Monte Carlo Simulation Value Model [Member]",
        "terseLabel": "Monte Carlo Simulation value model"
       }
      }
     },
     "localname": "MonteCarloSimulationValueModelMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_NetGainLossToChangeInFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net gain loss to change in fair value.",
        "label": "Net Gain Loss to Change in Fair Value",
        "terseLabel": "Net gain loss to change in fair value"
       }
      }
     },
     "localname": "NetGainLossToChangeInFairValue",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_NetProceedsFromBusinessCombinationFinancingAndSaleOfStock": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net proceeds from business combination financing and sale of stock.",
        "label": "Net Proceeds from Business Combination Financing and Sale of Stock",
        "terseLabel": "Net proceeds from business combinations"
       }
      }
     },
     "localname": "NetProceedsFromBusinessCombinationFinancingAndSaleOfStock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureNatureOfBusinessAndBasisOfPresentationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_NonControllingInterestPutOptionAccretionToRedemptionValueAdjustment": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease to net income for accretion of of noncontrolling interest put option to redemption value.",
        "label": "Non Controlling Interest Put Option Accretion To Redemption Value Adjustment",
        "negatedLabel": "Accretion of noncontrolling interest put option to redemption value"
       }
      }
     },
     "localname": "NonControllingInterestPutOptionAccretionToRedemptionValueAdjustment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_NonConvertibleDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non-convertible debt.",
        "label": "Non Convertible Debt [Member]",
        "terseLabel": "Non-convertible Debt"
       }
      }
     },
     "localname": "NonConvertibleDebtMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_NoncontrollingInterest": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Noncontrolling interest",
        "label": "Noncontrolling interest"
       }
      }
     },
     "localname": "NoncontrollingInterest",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_NoncontrollingInterestPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Noncontrolling interest.",
        "label": "Noncontrolling Interest [Policy Text Block]",
        "terseLabel": "Noncontrolling Interests"
       }
      }
     },
     "localname": "NoncontrollingInterestPolicyTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_NumberOfEarnoutSharesContingentConsiderationArrangement": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of earn out shares contingent consideration arrangement.",
        "label": "Number of Earnout Shares Contingent Consideration Arrangement",
        "terseLabel": "Number of earn-out shares contingent consideration arrangement",
        "verboseLabel": "Number of earn out shares unissued and unvested"
       }
      }
     },
     "localname": "NumberOfEarnoutSharesContingentConsiderationArrangement",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilityAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_NumberOfPromissoryNotesIssued": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of promissory notes issued.",
        "label": "Number Of Promissory Notes Issued",
        "terseLabel": "Number of promissory notes issued"
       }
      }
     },
     "localname": "NumberOfPromissoryNotesIssued",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "gls_NumberOfRemainingEarnOutShares": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of remaining earn out shares",
        "label": "Number of Remaining Earn Out Shares",
        "terseLabel": "Number of remaining earn out shares"
       }
      }
     },
     "localname": "NumberOfRemainingEarnOutShares",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_NumberOfSharesRestrictedEarnOutShares": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of Shares, Restricted Earn Out Shares.",
        "label": "Number of Shares, Restricted Earn Out Shares",
        "terseLabel": "Number of restricted earn out shares entitled"
       }
      }
     },
     "localname": "NumberOfSharesRestrictedEarnOutShares",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_NumberOfTradingDaysWithinSpecifiedPeriodThatSharePriceMustExceedSharePriceCondition": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of trading days within specified period that share price must exceed share price condition.",
        "label": "Number Of Trading Days Within Specified Period That Share Price Must Exceed Share Price Condition",
        "terseLabel": "Number of trading days within specified period that share price must exceed"
       }
      }
     },
     "localname": "NumberOfTradingDaysWithinSpecifiedPeriodThatSharePriceMustExceedSharePriceCondition",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_OfficeSpaceLocatedInBostonMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Office space located in boston.",
        "label": "Office Space Located In Boston [Member]",
        "terseLabel": "Office space located in Boston"
       }
      }
     },
     "localname": "OfficeSpaceLocatedInBostonMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_OneSRLMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "One S.r.l.",
        "label": "One S R L [Member]",
        "terseLabel": "One S.r.l"
       }
      }
     },
     "localname": "OneSRLMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfChangesInFairValueOfCallOptionLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfCallOptionLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_OneSrlCallOptionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "One Srl call option.",
        "label": "One Srl Call Option [Member]",
        "terseLabel": "One S.r.l. Call Option"
       }
      }
     },
     "localname": "OneSrlCallOptionMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_OneSrlOneAmendedPatentLicenseAndAssignmentAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to One S.r.l. (\"One\") Amended Patent License and Assignment Agreement.",
        "label": "One Srl One Amended Patent License And Assignment Agreement [Member]",
        "terseLabel": "One",
        "verboseLabel": "One Srl"
       }
      }
     },
     "localname": "OneSrlOneAmendedPatentLicenseAndAssignmentAgreementMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_OneTimeNonRefundableAndNonCreditableMilestonePayment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "One-time, non-refundable and non-creditable milestone payment",
        "label": "One-time, non-refundable and non-creditable milestone payment"
       }
      }
     },
     "localname": "OneTimeNonRefundableAndNonCreditableMilestonePayment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_OneTimeNonRefundableAndNonCreditableUpfrontFee": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "One-time, non-refundable and non-creditable upfront fee",
        "label": "One-time, non-refundable and non-creditable upfront fee"
       }
      }
     },
     "localname": "OneTimeNonRefundableAndNonCreditableUpfrontFee",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_OneTimeRegulatoryApprovalMilestonePayment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "One time regulatory approval milestone payment.",
        "label": "One Time Regulatory Approval Milestone Payment",
        "terseLabel": "One-time regulatory approval milestone payment"
       }
      }
     },
     "localname": "OneTimeRegulatoryApprovalMilestonePayment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_OperatingLeaseActivityTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating lease activity.",
        "label": "Operating Lease Activity [Table Text Block]",
        "terseLabel": "Schedule of Operating Lease Activity"
       }
      }
     },
     "localname": "OperatingLeaseActivityTableTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_OperatingLeaseCommencementYearAndMonth": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating lease commencement year and month.",
        "label": "Operating Lease Commencement Year And Month",
        "terseLabel": "Operating lease commencement"
       }
      }
     },
     "localname": "OperatingLeaseCommencementYearAndMonth",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "gYearMonthItemType"
    },
    "gls_OperatingLeaseExpirationYearAndMonth": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating lease expiration year and month.",
        "label": "Operating Lease Expiration Year And Month",
        "terseLabel": "Operating lease expiration"
       }
      }
     },
     "localname": "OperatingLeaseExpirationYearAndMonth",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "gYearMonthItemType"
    },
    "gls_OptionsAndRSUToAcquireCommonStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Options and RSU to acquire common stock.",
        "label": "Options And R S U To Acquire Common Stock [Member]",
        "terseLabel": "Options and RSU to Acquire Common Stock"
       }
      }
     },
     "localname": "OptionsAndRSUToAcquireCommonStockMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_OtherLiabilitiesNoncurrentDueToRelatedParty": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other liabilities noncurrent due to related party.",
        "label": "Other Liabilities Noncurrent Due to Related Party",
        "terseLabel": "Other long-term liabilities noncurrent, due to related party"
       }
      }
     },
     "localname": "OtherLiabilitiesNoncurrentDueToRelatedParty",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_OtherLongTermLiabilityDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for other long-term liabilities.",
        "label": "Other Long Term Liability Disclosure [Text Block]",
        "terseLabel": "Other Long-Term Liabilities"
       }
      }
     },
     "localname": "OtherLongTermLiabilityDisclosureTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_PaymentsToBeMadeUponAchievementOfCertainMilestones": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments to be made upon achievement of certain milestones.",
        "label": "Payments To Be Made Upon Achievement Of Certain Milestones",
        "terseLabel": "Payments to be made upon the achievement of certain milestones"
       }
      }
     },
     "localname": "PaymentsToBeMadeUponAchievementOfCertainMilestones",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_PercentOfOwnershipContingentCallOptionToBuyBack": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of ownership for contingent call option to buy back.",
        "label": "Percent of Ownership, Contingent Call Option to Buy Back",
        "terseLabel": "Percent of ownership, contingent call option to buy back"
       }
      }
     },
     "localname": "PercentOfOwnershipContingentCallOptionToBuyBack",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_PercentageOfRoyalty": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of royalty.",
        "label": "Percentage Of Royalty",
        "terseLabel": "Percentage of royalty"
       }
      }
     },
     "localname": "PercentageOfRoyalty",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_PeriodNotPermittedToMoveReimbursedAssets": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period not permitted to physically move the reimbursed assets from the Puglia region for five years from the project completion date.",
        "label": "Period Not Permitted to Move Reimbursed Assets",
        "terseLabel": "Period not permitted to physically move the reimbursed assets from the Puglia region"
       }
      }
     },
     "localname": "PeriodNotPermittedToMoveReimbursedAssets",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_PeriodOfSubsequentIssuance": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "no definition available",
        "label": "Period Of Subsequent Issuance",
        "terseLabel": "Period of subsequent issuance",
        "verboseLabel": "LTDTInterestOnlyPeriodPostIssuance"
       }
      }
     },
     "localname": "PeriodOfSubsequentIssuance",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_PipeInvestmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "PIPE Investment.",
        "label": "PIPE Investors"
       }
      }
     },
     "localname": "PipeInvestmentMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_PotentialDilutiveCommonShareEquivalentsRelatedToEarnoutLiablity": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Potential dilutive common share equivalents related to earnout liablity",
        "label": "Potential Dilutive Common Share Equivalents Related to Earnout Liablity",
        "terseLabel": "Potentially dilutive common share equivalents"
       }
      }
     },
     "localname": "PotentialDilutiveCommonShareEquivalentsRelatedToEarnoutLiablity",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarningsLossPerShareAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_PreferredStockWarrantsConversionRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Stock Warrants Conversion Ratio.",
        "label": "Preferred Stock Warrants Conversion Ratio",
        "terseLabel": "Preferred stock warrants conversion exchange ratio"
       }
      }
     },
     "localname": "PreferredStockWarrantsConversionRatio",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "gls_PrepaidContractResearchCostsCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_PrepaidExpenseAndOtherAssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset related to prepaid contract research costs that are expected to be realized or consumed within one year or the normal operating cycle, if longer.",
        "label": "Prepaid Contract Research Costs Current",
        "terseLabel": "Prepaid contract research costs"
       }
      }
     },
     "localname": "PrepaidContractResearchCostsCurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_PrepaidExpensesAndOtherCurrentAssetsTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for prepaid expenses and other current assets.",
        "label": "Prepaid Expenses And Other Current Assets [Text Block]",
        "terseLabel": "Prepaid Expenses And Other Current Assets"
       }
      }
     },
     "localname": "PrepaidExpensesAndOtherCurrentAssetsTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePrepaidExpensesAndOtherCurrentAssets"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_PrepaidManufacturingExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_PrepaidExpenseAndOtherAssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prepaid manufacturing expenses.",
        "label": "Prepaid Manufacturing Expenses",
        "terseLabel": "Prepaid manufacturing expenses"
       }
      }
     },
     "localname": "PrepaidManufacturingExpenses",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_PrivatePlacementWarrantLiabilityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Private placement warrant liability.",
        "label": "Private Placement Warrant Liability [Member]",
        "terseLabel": "Private Placement Warrant Liability"
       }
      }
     },
     "localname": "PrivatePlacementWarrantLiabilityMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_PrivatePlacementWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Private Placement Warrants.",
        "label": "Private Placement Warrants [Member]",
        "terseLabel": "Private Placement Warrants"
       }
      }
     },
     "localname": "PrivatePlacementWarrantsMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesTables"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_ProbabilityOfHolderElectingConversionOptionOfConvertiblePromissoryNotes": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Probability of holder electing conversion option of convertible promissory notes.",
        "label": "Probability of Holder Electing Conversion Option of Convertible Promissory Notes",
        "terseLabel": "Probability of holder electing conversion option"
       }
      }
     },
     "localname": "ProbabilityOfHolderElectingConversionOptionOfConvertiblePromissoryNotes",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfAssumptionsUsedToDetermineFairValueOf2022ConvertiblePromissoryNotesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_ProbabilityOfRepaymentAfterQualifiedFinancingOfConvertiblePromissoryNotes": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Probability of repayment after qualified financing of convertible promissory notes.",
        "label": "Probability of Repayment After Qualified Financing of Convertible Promissory Notes",
        "terseLabel": "Probability of repayment after qualified financing"
       }
      }
     },
     "localname": "ProbabilityOfRepaymentAfterQualifiedFinancingOfConvertiblePromissoryNotes",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfAssumptionsUsedToDetermineFairValueOf2022ConvertiblePromissoryNotesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_ProceedsFromBusinessCombinationFinancingAndSaleOfStock": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount received from the business combination together with financing and sale of backstop shares.",
        "label": "Proceeds from Business Combination Financing and Sale of Stock",
        "terseLabel": "Gross proceeds from business combinations"
       }
      }
     },
     "localname": "ProceedsFromBusinessCombinationFinancingAndSaleOfStock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureNatureOfBusinessAndBasisOfPresentationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ProceedsFromBusinessCombinationNetOfTransactionCosts": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from business combination net of transaction costs.",
        "label": "Proceeds From Business Combination Net Of Transaction Costs",
        "terseLabel": "Proceeds from Business Combination, net of transaction costs"
       }
      }
     },
     "localname": "ProceedsFromBusinessCombinationNetOfTransactionCosts",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ProceedsFromWarrantsExercised": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from warrants exercised.",
        "label": "Proceeds From Warrants Exercised",
        "terseLabel": "Proceeds from warrants exercised"
       }
      }
     },
     "localname": "ProceedsFromWarrantsExercised",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ProductRevenueReserveAndAllowances": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Product revenue reserve and allowances.",
        "label": "Product Revenue Reserve and Allowances",
        "periodEndLabel": "Product revenue reserve and allowance, ending balance",
        "periodStartLabel": "Product revenue reserve and allowance, beginning balance"
       }
      }
     },
     "localname": "ProductRevenueReserveAndAllowances",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfActivityInProductRevenueReserveAndAllowanceDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ProductSalesCreditsTaken": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Product sales credits taken.",
        "label": "Product Sales Credits Taken",
        "negatedLabel": "Credits and payments made"
       }
      }
     },
     "localname": "ProductSalesCreditsTaken",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfActivityInProductRevenueReserveAndAllowanceDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_PromissoryNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Promissory notes.",
        "label": "Promissory notes [Member]",
        "terseLabel": "Promissory Notes"
       }
      }
     },
     "localname": "PromissoryNotesMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_PropertyAndEquipmentExpendituresIncurredButNotYetPaid": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Future cash outflow to pay for purchases of property and equipment that have occurred.",
        "label": "Property And Equipment Expenditures Incurred But Not Yet Paid",
        "terseLabel": "Purchases of property and equipment included in accounts payable and accrued expense"
       }
      }
     },
     "localname": "PropertyAndEquipmentExpendituresIncurredButNotYetPaid",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ProvisionForProductSalesCredits": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Provision for product sales credits.",
        "label": "Provision For Product Sales Credits",
        "terseLabel": "Provision related to product sales"
       }
      }
     },
     "localname": "ProvisionForProductSalesCredits",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfActivityInProductRevenueReserveAndAllowanceDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_PublicWarrantMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Public Warrant.",
        "label": "Public Warrant [Member]",
        "terseLabel": "Public Warrants",
        "verboseLabel": "Public Warrant"
       }
      }
     },
     "localname": "PublicWarrantMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_PublicWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Public Warrants.",
        "label": "Public Warrants [Member]",
        "terseLabel": "Public Warrants"
       }
      }
     },
     "localname": "PublicWarrantsMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_Puglia1GrantMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Puglia 1 Grant.",
        "label": "Puglia1 Grant [Member]",
        "terseLabel": "Puglia1 Grant"
       }
      }
     },
     "localname": "Puglia1GrantMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_Puglia2GrantMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Puglia 2 Grant.",
        "label": "Puglia2 Grant [Member]",
        "terseLabel": "Puglia 2 Grant"
       }
      }
     },
     "localname": "Puglia2GrantMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_PurchaseCommitmentFee": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purchase commitment fee.",
        "label": "Purchase Commitment Fee",
        "verboseLabel": "Cost incurred in purchase commitment"
       }
      }
     },
     "localname": "PurchaseCommitmentFee",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_PureTechHealthLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pure Tech Health LLC.",
        "label": "Pure Tech Health L L C [Member]",
        "terseLabel": "PureTech",
        "verboseLabel": "PureTech Health LLC"
       }
      }
     },
     "localname": "PureTechHealthLLCMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_PuretechMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Puretech.",
        "label": "Puretech [Member]",
        "terseLabel": "PureTech"
       }
      }
     },
     "localname": "PuretechMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_PutByRifTransactionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Put by Rif transaction.",
        "label": "Put by Rif Transaction [Member]",
        "terseLabel": "Put by RIF starting in January 2027 and ending in December 2027"
       }
      }
     },
     "localname": "PutByRifTransactionMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_RIFShareholdersLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "RIF shareholders loan.",
        "label": "R I F Shareholders Loan [Member]",
        "terseLabel": "RIF Shareholders Loan"
       }
      }
     },
     "localname": "RIFShareholdersLoanMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_RIFTransactionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "RIF transaction.",
        "label": "R I F Transaction [Member]",
        "terseLabel": "RIF Transaction"
       }
      }
     },
     "localname": "RIFTransactionMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_ReclassificationOfPriorYearPresentationPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reclassification of prior year presentation policy text block.",
        "label": "Reclassification Of Prior Year Presentation [Policy Text Block]",
        "terseLabel": "Reclassification of Prior Year Presentation"
       }
      }
     },
     "localname": "ReclassificationOfPriorYearPresentationPolicyTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_RecognitionOfEarnoutLiability": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Recognition of earnout liability.",
        "label": "Recognition Of Earnout Liability",
        "terseLabel": "Recognition of earnout liability"
       }
      }
     },
     "localname": "RecognitionOfEarnoutLiability",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_RecognitionOfPrivatePlacementWarrantLiability": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Recognition of private placement warrant liability.",
        "label": "Recognition Of Private Placement Warrant Liability",
        "terseLabel": "Recognition of private placement warrant liability"
       }
      }
     },
     "localname": "RecognitionOfPrivatePlacementWarrantLiability",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_RecognizedUponBusinessCombinationContingentEarnoutLiability": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Recognized upon business combination contingent earnout liability.",
        "label": "Recognized Upon Business Combination Contingent Earnout Liability",
        "terseLabel": "Recognized upon Business Combination"
       }
      }
     },
     "localname": "RecognizedUponBusinessCombinationContingentEarnoutLiability",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfEarnoutLiabilityActivityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_RedeemableConvertiblePreferredStockPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Redeemable convertible preferred stock.",
        "label": "Redeemable Convertible Preferred Stock [Policy Text Block]",
        "terseLabel": "Redeemable Convertible Preferred Stock"
       }
      }
     },
     "localname": "RedeemableConvertiblePreferredStockPolicyTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_RedemptionOfWarrantsWhenPricePerShareOfClassCommonStockEqualsOrExceeds1800Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Redemption of warrants when price per share of class common stock equals or exceeds 18.00.",
        "label": "Redemption Of Warrants When Price Per Share Of Class Common Stock Equals Or Exceeds 18.00 [Member]",
        "terseLabel": "Redemption of Warrants When the Price per Class A Ordinary Share Equals or Exceeds $18.00"
       }
      }
     },
     "localname": "RedemptionOfWarrantsWhenPricePerShareOfClassCommonStockEqualsOrExceeds1800Member",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_RedemptionPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Redemption period.",
        "label": "Redemption Period",
        "terseLabel": "Redemption period"
       }
      }
     },
     "localname": "RedemptionPeriod",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_RelatedPartyTransactionResearchAndDevelopmentExpensesFromTransactionsWithRelatedParty": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Related party transaction research and development expenses from transactions with related party.",
        "label": "Related Party Transaction Research and Development Expenses From Transactions With Related Party",
        "terseLabel": "Research and development, related party expense"
       }
      }
     },
     "localname": "RelatedPartyTransactionResearchAndDevelopmentExpensesFromTransactionsWithRelatedParty",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperationsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ResearchAndDevelopmentTaxCreditCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_PrepaidExpenseAndOtherAssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of research and development tax credit included in prepaid expenses and other current assets, classified as current.",
        "label": "Research And Development Tax Credit Current",
        "terseLabel": "Research and development tax credit"
       }
      }
     },
     "localname": "ResearchAndDevelopmentTaxCreditCurrent",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ResearchAndDevelopmentTaxCreditsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Research and development tax credits.",
        "label": "Research And Development Tax Credits [Member]",
        "terseLabel": "Research and Development Tax credits"
       }
      }
     },
     "localname": "ResearchAndDevelopmentTaxCreditsMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_ResearchCreditTaxAssetsGross": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesReconciliationOfBeginningAndEndingAmountOfUncertainTaxPositionsDetails": {
       "order": 0.0,
       "parentTag": "gls_ResearchCreditTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Research credit tax assets gross.",
        "label": "Research Credit Tax Assets Gross",
        "terseLabel": "Gross research credit tax assets"
       }
      }
     },
     "localname": "ResearchCreditTaxAssetsGross",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesReconciliationOfBeginningAndEndingAmountOfUncertainTaxPositionsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ResearchCreditTaxAssetsNet": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesReconciliationOfBeginningAndEndingAmountOfUncertainTaxPositionsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Research credit tax assets net.",
        "label": "Research Credit Tax Assets Net",
        "terseLabel": "Net research credit tax assets",
        "totalLabel": "Net research credit tax assets"
       }
      }
     },
     "localname": "ResearchCreditTaxAssetsNet",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesReconciliationOfBeginningAndEndingAmountOfUncertainTaxPositionsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ResearchInnovationFundFinancingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Research Innovation Fund Financing.",
        "label": "Research Innovation Fund Financing [Member]",
        "terseLabel": "Research Innovation Fund Financing"
       }
      }
     },
     "localname": "ResearchInnovationFundFinancingMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfNoncontrollingInterestDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_RollerWarrantCommonMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Roller warrant common.",
        "label": "Roller Warrant Common [Member]",
        "verboseLabel": "Roller Warrant Common"
       }
      }
     },
     "localname": "RollerWarrantCommonMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_RollerWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Roller Warrants.",
        "label": "Roller Warrants [Member]",
        "terseLabel": "Roller Warrants"
       }
      }
     },
     "localname": "RollerWarrantsMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_RomanHealthPharmacyLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Roman health pharmacy LLC.",
        "label": "Roman Health Pharmacy L L C [Member]",
        "terseLabel": "Roman Health Pharmacy LLC"
       }
      }
     },
     "localname": "RomanHealthPharmacyLLCMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfRevenueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_RoyaltyAndSublicenseIncomeAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Royalty and sublicense income agreement.",
        "label": "Royalty And Sublicense Income Agreement [Member]",
        "terseLabel": "Royalty and Sublicense Income Agreement"
       }
      }
     },
     "localname": "RoyaltyAndSublicenseIncomeAgreementMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_RoyaltyExpenseMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Royalty expense.",
        "label": "Royalty Expense [Member]",
        "terseLabel": "Royalty Expense"
       }
      }
     },
     "localname": "RoyaltyExpenseMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_RoyaltyPaymentRequiredPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Royalty payment required percentage.",
        "label": "Royalty Payment Required Percentage",
        "terseLabel": "Royalty payment required percentage"
       }
      }
     },
     "localname": "RoyaltyPaymentRequiredPercentage",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_SSD2LLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SSD2 ,LLC.",
        "label": "S S D2 L L C [Member]",
        "terseLabel": "SSD2",
        "verboseLabel": "SSD2 LLC"
       }
      }
     },
     "localname": "SSD2LLCMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_SaleOfCommonStockNetOfCommissionsShares": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of common stock net of commissions shares.",
        "label": "Sale of Common Stock Net of Commissions Shares",
        "terseLabel": "Sale of common stock net of commissions, shares"
       }
      }
     },
     "localname": "SaleOfCommonStockNetOfCommissionsShares",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_SaleOfCommonStockNetOfCommissionsValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of common stock net of commissions value.",
        "label": "Sale of Common Stock Net of Commissions Value",
        "terseLabel": "Sale of common stock, net of commissions"
       }
      }
     },
     "localname": "SaleOfCommonStockNetOfCommissionsValue",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_SaleOfCommonStockNetOfIssuanceCostAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale Of Common Stock, Net Of Issuance Cost Amount",
        "label": "Sale Of Common Stock, Net Of Issuance Cost Amount",
        "terseLabel": "Sale of common stock, net of issuance costs"
       }
      }
     },
     "localname": "SaleOfCommonStockNetOfIssuanceCostAmount",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_SaleOfCommonStockNetOfIssuanceCosts": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of common stock, net of issuance costs",
        "label": "Sale Of Common Stock, Net Of Issuance Costs",
        "terseLabel": "Sale of common stock, net of issuance costs, shares"
       }
      }
     },
     "localname": "SaleOfCommonStockNetOfIssuanceCosts",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_ScheduleOfAccruedLiabilitiesAndOtherLiabilitiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of accrued liabilities and other liabilities.",
        "label": "Schedule Of Accrued Liabilities And Other Liabilities [Table Text Block]",
        "terseLabel": "Schedule of Accrued Expenses"
       }
      }
     },
     "localname": "ScheduleOfAccruedLiabilitiesAndOtherLiabilitiesTableTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_ScheduleOfActivityInProductRevenueReserveAndAllowanceTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of activity in product revenue reserve and allowance.",
        "label": "Schedule Of Activity In Product Revenue Reserve And Allowance [Table Text Block]",
        "terseLabel": "Summary of Activity in Product Revenue Reserve and Allowance"
       }
      }
     },
     "localname": "ScheduleOfActivityInProductRevenueReserveAndAllowanceTableTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_ScheduleOfNumberOfSharesIssuedAndImmediatelyConsummationOfBusinessCombinationTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of number of shares issued and immediately consummation of business combination.",
        "label": "Schedule of Number of Shares Issued and Immediately Consummation of Business Combination [Table Text Block]",
        "terseLabel": "Schedule of Number of Shares Issued and Immediately Consummation of Business Combination"
       }
      }
     },
     "localname": "ScheduleOfNumberOfSharesIssuedAndImmediatelyConsummationOfBusinessCombinationTableTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_ScheduleOfPropertyPlantEquipmentUsefulLifeTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of property plant equipment useful life.",
        "label": "Schedule Of Property Plant Equipment Useful Life Table [Text Block]",
        "terseLabel": "Summary of Estimated Useful Lives"
       }
      }
     },
     "localname": "ScheduleOfPropertyPlantEquipmentUsefulLifeTableTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_ScheduleOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of weighted average assumptions used to determine fair value of earnout liability.",
        "label": "Schedule Of Weighted Average Assumptions Used to Determine Fair Value of Earnout Liability [Table Text Block]",
        "terseLabel": "Summary of Weighted Average Assumptions Used to Determine Fair Value of Earnout Liability"
       }
      }
     },
     "localname": "ScheduleOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityTableTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_SecondAmendedAndRestatedAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Second amended and restated agreement [Member]",
        "label": "Second amended and restated agreement [Member]",
        "terseLabel": "Second amended and restated agreement"
       }
      }
     },
     "localname": "SecondAmendedAndRestatedAgreementMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_SeriesA4RedeemableConvertiblePreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series A4 redeemable convertible preferred stock.",
        "label": "Series A4 Redeemable Convertible Preferred Stock [Member]",
        "terseLabel": "Series A-4"
       }
      }
     },
     "localname": "SeriesA4RedeemableConvertiblePreferredStockMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share Based Compensation Arrangement By Share Based Payment Award Options Outstanding Aggregate Intrinsic Value.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Options Outstanding Aggregate Intrinsic Value [Abstract]",
        "terseLabel": "Aggregate Intrinsic Value"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "gls_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTermAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share Based Compensation Arrangement By Share Based Payment Award Options Outstanding Weighted Average Remaining Contractual Term.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Options Outstanding Weighted Average Remaining Contractual Term [Abstract]",
        "terseLabel": "Weighted Average Remaining Contractual Term (Years)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTermAbstract",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "gls_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsNonvestedOptionsForfeituresInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share based compensation arrangements by share based payment award options nonvested options forfeitures in period weighted average exercise price.",
        "label": "Share Based Compensation Arrangements by Share Based Payment Award Options Nonvested Options Forfeitures in Period Weighted Average Exercise Price",
        "terseLabel": "Weighted-Average Exercise Price per Share, Forfeited - unvested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsNonvestedOptionsForfeituresInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "gls_SignificantAgreementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No definition available.",
        "label": "Significant Agreements [Abstract]"
       }
      }
     },
     "localname": "SignificantAgreementsAbstract",
     "nsuri": "http://ir.gelesis.com/20221231",
     "xbrltype": "stringItemType"
    },
    "gls_SignificantAgreementsDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for significant agreements.",
        "label": "Significant Agreements Disclosure [Text Block]",
        "terseLabel": "Significant Agreements"
       }
      }
     },
     "localname": "SignificantAgreementsDisclosureTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_Ssd2Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SSD2.",
        "label": "SSD2 [Member]",
        "terseLabel": "SSD2"
       }
      }
     },
     "localname": "Ssd2Member",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_StockIssuanceCommitted": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issuance committed.",
        "label": "Stock Issuance Committed",
        "verboseLabel": "Stock issuance committed"
       }
      }
     },
     "localname": "StockIssuanceCommitted",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_StockIssuanceSharesCommitted": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issuance shares committed.",
        "label": "Stock Issuance Shares Committed",
        "verboseLabel": "Stock issuance committed in shares"
       }
      }
     },
     "localname": "StockIssuanceSharesCommitted",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_StockIssuedDuringPeriodShareConverted": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock Issued During Period Share Converted",
        "label": "Stock Issued During Period Share Converted",
        "terseLabel": "CPSR stockholders"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodShareConverted",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_StockIssuedDuringPeriodShareOther": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock Issued During Period Share Other",
        "label": "Stock Issued During Period Share Other",
        "terseLabel": "Common stock issued to Gelesis Legacy Equityholders"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodShareOther",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_StockIssuedDuringPeriodSharesExerciseOfWarrants": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued during period shares, exercise of warrants.",
        "label": "Stock Issued During Period Shares, Exercise of Warrants",
        "terseLabel": "Exercise of warrants, shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesExerciseOfWarrants",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_StockIssuedDuringPeriodSharesProceedsFromBusinessCombinationNetOfIssuanceCostsAndAssumedLiabilities": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued during period shares, proceeds from business combination, net of issuance costs and assumed liabilities.",
        "label": "Stock Issued During Period Shares, Proceeds from Business Combination, Net of Issuance Costs and Assumed Liabilities",
        "terseLabel": "Proceeds from Business Combination, net of issuance costs and assumed liabilities, shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesProceedsFromBusinessCombinationNetOfIssuanceCostsAndAssumedLiabilities",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_StockIssuedDuringPeriodSharesWarrantsExercised": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued during period shares warrants exercised.",
        "label": "Stock Issued During Period Shares Warrants Exercised",
        "terseLabel": "Exercise of warrants, shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesWarrantsExercised",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_StockIssuedDuringPeriodValueConversionOfWarrantsUponMergerRecapitalization": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued during period value, conversion of warrants upon merger recapitalization.",
        "label": "Stock Issued During Period Value, Conversion of Warrants Upon Merger Recapitalization",
        "terseLabel": "Conversion of preferred stock warrants into common stock warrants upon merger recapitalization"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueConversionOfWarrantsUponMergerRecapitalization",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_StockIssuedDuringPeriodValueExerciseOfWarrants": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued during period value exercise of warrants.",
        "label": "Stock Issued During Period Value Exercise Of Warrants",
        "terseLabel": "Exercise of warrants"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueExerciseOfWarrants",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_StockIssuedDuringPeriodValueProceedsFromBusinessCombinationNetOfIssuanceCostsAndAssumedLiabilities": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued during period value, proceeds from business combination, net of issuance costs and assumed liabilities.",
        "label": "Stock Issued During Period Value, Proceeds from Business Combination, Net of Issuance Costs and Assumed Liabilities",
        "terseLabel": "Proceeds from Business Combination, net of issuance costs and assumed liabilities"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueProceedsFromBusinessCombinationNetOfIssuanceCostsAndAssumedLiabilities",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_StockOptionsAndRestrictedStockUnitsConversionRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock options and restricted stock units conversion ratio.",
        "label": "Stock Options and Restricted Stock Units Conversion Ratio",
        "terseLabel": "Stock options and restricted stock units conversion exchange ratio"
       }
      }
     },
     "localname": "StockOptionsAndRestrictedStockUnitsConversionRatio",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "gls_SummaryOfAssumptionsUsedToDetermineFairValueTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of assumptions used to determine fair value.",
        "label": "Summary of Assumptions Used to Determine Fair Value [Text Block]",
        "terseLabel": "Summary of Assumptions Used to Determine Fair Value of 2022 Convertible Promissory Notes"
       }
      }
     },
     "localname": "SummaryOfAssumptionsUsedToDetermineFairValueTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_SummaryOfChangesInWarrantLiabilitiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of changes in warrant liabilities.",
        "label": "Summary of Changes in Warrant Liabilities [Table Text Block]",
        "terseLabel": "Summary of Changes in Warrant Liabilities Activity"
       }
      }
     },
     "localname": "SummaryOfChangesInWarrantLiabilitiesTableTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_SummaryOfGrantRecognizedTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary Of Grant Recognized.",
        "label": "Summary Of Grant Recognized [Table Text Block]",
        "terseLabel": "Summary of Grant Recognized"
       }
      }
     },
     "localname": "SummaryOfGrantRecognizedTableTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_TaxYear2027Through2037Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tax year 2027 through 2037.",
        "label": "Tax Year 2027 Through 2037 [Member]",
        "terseLabel": "Year 2027 Through 2037"
       }
      }
     },
     "localname": "TaxYear2027Through2037Member",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_TaxYear2030Through2041Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tax year 2030 through 2041.",
        "label": "Tax Year 2030 Through 2041 [Member]",
        "terseLabel": "Tax Year 2030 Through 2041 [Member]",
        "verboseLabel": "Tax Year 2030 Through 2041"
       }
      }
     },
     "localname": "TaxYear2030Through2041Member",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_TemporaryEquityAccretionOfNoncontrollingInterestPutOptionToRedemptionValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Temporary Equity Accretion of noncontrolling interest put option to redemption value.",
        "label": "Temporary Equity Accretion Of Noncontrolling Interest Put Option To Redemption Value",
        "terseLabel": "Temporary Equity, Accretion of put option"
       }
      }
     },
     "localname": "TemporaryEquityAccretionOfNoncontrollingInterestPutOptionToRedemptionValue",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_TemporaryEquityAccretionOfSeniorPreferredStockToRedemptionValuePriorToBusinessCombination": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Temporary equity, accretion of senior preferred stock to redemption value prior to business combination.",
        "label": "Temporary Equity, Accretion of Senior Preferred Stock to Redemption Value Prior to Business Combination",
        "terseLabel": "Temporary Equity, Accretion of legacy gelesis senior preferred stock to redemption value prior to business combination"
       }
      }
     },
     "localname": "TemporaryEquityAccretionOfSeniorPreferredStockToRedemptionValuePriorToBusinessCombination",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_TemporaryEquityExerciseOfWarrantsValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Temporary equity exercise of warrants value.",
        "label": "Temporary Equity Exercise Of Warrants Value",
        "terseLabel": "Temporary Equity, Exercise of warrants"
       }
      }
     },
     "localname": "TemporaryEquityExerciseOfWarrantsValue",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_TemporaryEquitySharesExerciseOfWarrants": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Temporary equity shares exercise of warrants.",
        "label": "Temporary Equity Shares Exercise Of Warrants",
        "terseLabel": "Temporary Equity, Exercise of warrants, shares"
       }
      }
     },
     "localname": "TemporaryEquitySharesExerciseOfWarrants",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_TemporaryEquityStockIssuedDuringPeriodSharesConversionOfConvertibleSecuritiesMergerRecapitalization": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Temporary equity, stock issued during period shares, conversion of convertible securities merger recapitalization.",
        "label": "Temporary Equity, Stock Issued During Period Shares, Conversion of Convertible Securities Merger Recapitalization",
        "terseLabel": "Temporary Equity, Conversion of redeemable convertible preferred stock into common stock upon merger recapitalization, shares"
       }
      }
     },
     "localname": "TemporaryEquityStockIssuedDuringPeriodSharesConversionOfConvertibleSecuritiesMergerRecapitalization",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_TemporaryEquityStockIssuedDuringPeriodValueConversionOfConvertibleSecuritiesMergerRecapitalization": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Temporary equity, stock issued during period value, conversion of convertible securities merger recapitalization.",
        "label": "Temporary Equity, Stock Issued During Period Value, Conversion of Convertible Securities Merger Recapitalization",
        "terseLabel": "Temporary Equity, Conversion of redeemable convertible preferred stock into common stock upon merger recapitalization"
       }
      }
     },
     "localname": "TemporaryEquityStockIssuedDuringPeriodValueConversionOfConvertibleSecuritiesMergerRecapitalization",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_ThirdAmendedAndRestatedSupplyAndDistributionAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Third Amended and Restated Supply and Distribution Agreement.",
        "label": "Third Amended and Restated Supply and Distribution Agreement [Member]",
        "terseLabel": "Third Amended and Restated Supply and Distribution Agreement"
       }
      }
     },
     "localname": "ThirdAmendedAndRestatedSupplyAndDistributionAgreementMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_ThreeMonthsEuriborRatePerAnnum": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Three months Euribor rate per annum.",
        "label": "Three Months Euribor Rate Per Annum",
        "terseLabel": "Three months Euribor rate per annum"
       }
      }
     },
     "localname": "ThreeMonthsEuriborRatePerAnnum",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_ThresholdNumberOfBusinessDaysBeforeSendingNoticeOfRedemptionToWarrantHolders": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Threshold number of business days before sending notice of redemption to warrant holders.",
        "label": "Threshold Number Of Business Days Before Sending Notice Of Redemption To Warrant Holders",
        "terseLabel": "Threshold number of business days before sending notice of redemption to warrant holders"
       }
      }
     },
     "localname": "ThresholdNumberOfBusinessDaysBeforeSendingNoticeOfRedemptionToWarrantHolders",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "gls_ThresholdNumberOfBusinessDaysFollowingAQualifiedFinancing": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Threshold number of business days following a qualified financing.",
        "label": "Threshold number of business days following a qualified financing",
        "terseLabel": "Threshold number of business days following a qualified financing"
       }
      }
     },
     "localname": "ThresholdNumberOfBusinessDaysFollowingAQualifiedFinancing",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "gls_ThresholdPeriodBeforeSharePriceConditionCommences": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Threshold period before share price condition commences.",
        "label": "Threshold Period Before Share Price Condition Commences",
        "terseLabel": "Threshold period before share price condition commences"
       }
      }
     },
     "localname": "ThresholdPeriodBeforeSharePriceConditionCommences",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_ThresholdPeriodOfSharePriceConditionCommencesFromClosing": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Threshold period of share price condition commences from closing.",
        "label": "Threshold Period of Share Price Condition Commences from Closing",
        "terseLabel": "Threshold period of share price condition commences from closing"
       }
      }
     },
     "localname": "ThresholdPeriodOfSharePriceConditionCommencesFromClosing",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_TradingPriceForFutureVestingThresholdFirstThird": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Trading price for future vesting threshold of the first third.",
        "label": "Trading Price for Future Vesting Threshold, First Third",
        "terseLabel": "Trading price for future vesting threshold of the first third"
       }
      }
     },
     "localname": "TradingPriceForFutureVestingThresholdFirstThird",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "gls_TradingPriceForFutureVestingThresholdSecondThird": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Trading price for future vesting threshold of the second third.",
        "label": "Trading Price For Future Vesting Threshold, Second Third",
        "terseLabel": "Trading price for future vesting threshold of the second third"
       }
      }
     },
     "localname": "TradingPriceForFutureVestingThresholdSecondThird",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "gls_TradingPriceForFutureVestingThresholdThirdPortion": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Trading price for future vesting threshold of the third portion.",
        "label": "Trading Price For Future Vesting Threshold, Third Portion",
        "terseLabel": "Trading price for future vesting threshold of the third portion"
       }
      }
     },
     "localname": "TradingPriceForFutureVestingThresholdThirdPortion",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "gls_TransactionCostsAdvisoryFeesAndLiabilitiesPaid": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails": {
       "order": 1.0,
       "parentTag": "gls_BusinessCombinationNetProceeds",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Transaction costs advisory fees and liabilities paid",
        "label": "Transaction Costs Advisory Fees and Liabilities Paid",
        "negatedLabel": "Less: transaction costs, advisory fees and liabilities paid"
       }
      }
     },
     "localname": "TransactionCostsAdvisoryFeesAndLiabilitiesPaid",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_TwoThousandAndTwentyOneBridgeFinancingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand and twenty one bridge financing.",
        "label": "Two Thousand And Twenty One Bridge Financing [Member]",
        "terseLabel": "2021 Bridge Financing"
       }
      }
     },
     "localname": "TwoThousandAndTwentyOneBridgeFinancingMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_TwoThousandAndTwentyOneStockOptionPlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand and twenty one stock option plan.",
        "label": "Two Thousand and Twenty One Stock Option Plan [Member]",
        "terseLabel": "2021 Stock Option Plan"
       }
      }
     },
     "localname": "TwoThousandAndTwentyOneStockOptionPlanMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_TwoThousandTwentyTwoPromissoryNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand twenty two promissory notes.",
        "label": "Two Thousand Twenty Two Promissory Notes [Member]",
        "terseLabel": "2022 Promissory Notes",
        "verboseLabel": "2022 Convertible Promissory Notes"
       }
      }
     },
     "localname": "TwoThousandTwentyTwoPromissoryNotesMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfAssumptionsUsedToDetermineFairValueOf2022ConvertiblePromissoryNotesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_UniCreditLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "UniCredit loan.",
        "label": "Uni Credit Loan [Member]",
        "terseLabel": "UniCredit Loan"
       }
      }
     },
     "localname": "UniCreditLoanMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_UnsoldOrUnutilizedInventoryFinishedGoods": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unsold or unutilized inventory finished goods.",
        "label": "Unsold or Unutilized Inventory Finished Goods",
        "terseLabel": "Estimated unsold or unutilized inventory finished goods"
       }
      }
     },
     "localname": "UnsoldOrUnutilizedInventoryFinishedGoods",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureInventoriesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_UnsoldOrUnutilizedInventoryRawMaterial": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unsold or unutilized inventory raw material.",
        "label": "Unsold or Unutilized Inventory Raw Material",
        "terseLabel": "Estimated unsold or unutilized inventory raw material"
       }
      }
     },
     "localname": "UnsoldOrUnutilizedInventoryRawMaterial",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureInventoriesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_UnsoldOrUnutilizedInventoryWorkInProcess": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unsold or unutilized inventory work in process.",
        "label": "Unsold or Unutilized Inventory Work In Process",
        "terseLabel": "Estimated unsold or unutilized inventory work-in-progress"
       }
      }
     },
     "localname": "UnsoldOrUnutilizedInventoryWorkInProcess",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureInventoriesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_VolumeWeightedAveragePricePercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Volume weighted average price percentage.",
        "label": "Volume Weighted Average Price Percentage",
        "terseLabel": "Volume weighted average price percentage"
       }
      }
     },
     "localname": "VolumeWeightedAveragePricePercentage",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_WarrantConversionTerms": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrant Conversion Terms",
        "label": "Warrant Conversion Terms",
        "terseLabel": "Warrant conversion terms"
       }
      }
     },
     "localname": "WarrantConversionTerms",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "gls_WarrantLiabilitiesFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of warrant liabilities.",
        "label": "Warrant Liabilities Fair Value Disclosure",
        "terseLabel": "Legacy Gelesis preferred stock warrants (See Note 13)"
       }
      }
     },
     "localname": "WarrantLiabilitiesFairValueDisclosure",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_WarrantPurchaseAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrant Purchase Agreement [Member]",
        "label": "Warrant Purchase Agreement [Member]",
        "terseLabel": "Warrant purchase agreement"
       }
      }
     },
     "localname": "WarrantPurchaseAgreementMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_WarrantsDisclosuresTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the Warrants of financial instruments.",
        "label": "Warrants Disclosures [Text Block]",
        "terseLabel": "Warrant Liabilities"
       }
      }
     },
     "localname": "WarrantsDisclosuresTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilities1"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_WarrantsExchangeRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants exchange ratio.",
        "label": "Warrants Exchange Ratio",
        "terseLabel": "Warrants exchange ratio"
       }
      }
     },
     "localname": "WarrantsExchangeRatio",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "gls_WarrantsExercised": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants exercised.",
        "label": "Warrants Exercised",
        "terseLabel": "Warrants exercised"
       }
      }
     },
     "localname": "WarrantsExercised",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_WarrantsGrantedUponSecondAmendment": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants Granted Upon Second Amendment",
        "label": "Warrants Granted Upon Second Amendment",
        "terseLabel": "Warrants granted upon 2nd amendment"
       }
      }
     },
     "localname": "WarrantsGrantedUponSecondAmendment",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_WarrantsOnCommonStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants on common stock.",
        "label": "Warrants On Common Stock [Member]",
        "terseLabel": "Warrants on Common Stock"
       }
      }
     },
     "localname": "WarrantsOnCommonStockMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_WarrantsOnConvertiblePreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants on convertible preferred stock.",
        "label": "Warrants On Convertible Preferred Stock [Member]",
        "terseLabel": "Warrants on Convertible Preferred Stock"
       }
      }
     },
     "localname": "WarrantsOnConvertiblePreferredStockMember",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "gls_WarrantsOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants outstanding.",
        "label": "Warrants Outstanding",
        "terseLabel": "Warrants outstanding"
       }
      }
     },
     "localname": "WarrantsOutstanding",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "gls_WeightedAverageAssumptionsUsedToDetermineFairValueCallOptionTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average assumptions used to determine fair value call option.",
        "label": "Weighted Average Assumptions Used To Determine Fair value Call Option [Table Text Block]",
        "terseLabel": "Weighted Average Assumptions Used to Determine Fair Value of Call Option Liability"
       }
      }
     },
     "localname": "WeightedAverageAssumptionsUsedToDetermineFairValueCallOptionTableTextBlock",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "gls_WeightedAverageDiscountRateOfConvertiblePromissoryNotes": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average discount rate of convertible promissory notes.",
        "label": "Weighted Average Discount Rate of Convertible Promissory Notes",
        "terseLabel": "Weighted average discount rate"
       }
      }
     },
     "localname": "WeightedAverageDiscountRateOfConvertiblePromissoryNotes",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfAssumptionsUsedToDetermineFairValueOf2022ConvertiblePromissoryNotesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_WeightedAverageEstimatedFairValueOfOwnershipInterest": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average estimated fair value of ownership interest.",
        "label": "Weighted Average Estimated Fair Value Of Ownership Interest",
        "terseLabel": "Estimated fair value of ownership interest"
       }
      }
     },
     "localname": "WeightedAverageEstimatedFairValueOfOwnershipInterest",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfCallOptionLiabilityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_WeightedAverageExercisePriceOfCallOption": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average exercise price Of Call Option",
        "label": "Weighted Average Exercise Price Of Call Option",
        "terseLabel": "Exercise price of call option"
       }
      }
     },
     "localname": "WeightedAverageExercisePriceOfCallOption",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfCallOptionLiabilityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "gls_WeightedAverageExpectedDividendYield": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average expected dividend yield.",
        "label": "Weighted Average Expected Dividend Yield",
        "terseLabel": "Expected dividend yield"
       }
      }
     },
     "localname": "WeightedAverageExpectedDividendYield",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfCallOptionLiabilityDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "gls_WeightedAverageExpectedTermOfCallOptionLiability": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average expected term of Call Option Liability",
        "label": "Weighted Average Expected Term Of Call Option Liability",
        "terseLabel": "Expected term"
       }
      }
     },
     "localname": "WeightedAverageExpectedTermOfCallOptionLiability",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfCallOptionLiabilityDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "gls_WeightedAverageExpectedVolatilityOfCallOptionLiability": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average expected volatility of call option liability.",
        "label": "Weighted Average Expected Volatility Of Call Option Liability",
        "terseLabel": "Expected Volatility"
       }
      }
     },
     "localname": "WeightedAverageExpectedVolatilityOfCallOptionLiability",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfCallOptionLiabilityDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "gls_WeightedAverageRiskFreeInterestOfCallOptionLiability": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average risk free interest of call option liability.",
        "label": "Weighted Average Risk Free Interest Of Call Option Liability",
        "terseLabel": "Risk free interest rate"
       }
      }
     },
     "localname": "WeightedAverageRiskFreeInterestOfCallOptionLiability",
     "nsuri": "http://ir.gelesis.com/20221231",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfCallOptionLiabilityDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "srt_CounterpartyNameAxis": {
     "auth_ref": [
      "r274",
      "r275",
      "r403",
      "r433",
      "r744",
      "r746"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparty Name [Axis]",
        "terseLabel": "Counterparty Name"
       }
      }
     },
     "localname": "CounterpartyNameAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfRevenueDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_EquityMethodInvesteeNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Name [Domain]",
        "terseLabel": "Investment, Name"
       }
      }
     },
     "localname": "EquityMethodInvesteeNameDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfChangesInFairValueOfCallOptionLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfNoncontrollingInterestDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfCallOptionLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r385",
      "r386",
      "r387",
      "r388",
      "r470",
      "r673",
      "r704",
      "r737",
      "r738",
      "r760",
      "r769",
      "r781",
      "r846",
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r909"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]",
        "terseLabel": "Maximum"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r385",
      "r386",
      "r387",
      "r388",
      "r470",
      "r673",
      "r704",
      "r737",
      "r738",
      "r760",
      "r769",
      "r781",
      "r846",
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r909"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum [Member]",
        "terseLabel": "Minimum",
        "verboseLabel": "Minimum"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ProductOrServiceAxis": {
     "auth_ref": [
      "r340",
      "r679",
      "r762",
      "r779",
      "r840",
      "r841",
      "r849",
      "r911"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Axis]",
        "terseLabel": "Product and Service"
       }
      }
     },
     "localname": "ProductOrServiceAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfActivityInProductRevenueReserveAndAllowanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfRevenueDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ProductsAndServicesDomain": {
     "auth_ref": [
      "r340",
      "r679",
      "r762",
      "r779",
      "r840",
      "r841",
      "r849",
      "r911"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Domain]",
        "terseLabel": "Product and Service"
       }
      }
     },
     "localname": "ProductsAndServicesDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfActivityInProductRevenueReserveAndAllowanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfRevenueDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r385",
      "r386",
      "r387",
      "r388",
      "r462",
      "r470",
      "r498",
      "r499",
      "r500",
      "r649",
      "r673",
      "r704",
      "r737",
      "r738",
      "r760",
      "r769",
      "r781",
      "r837",
      "r846",
      "r905",
      "r906",
      "r907",
      "r908",
      "r909"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Axis]",
        "terseLabel": "Statistical Measurement"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r385",
      "r386",
      "r387",
      "r388",
      "r462",
      "r470",
      "r498",
      "r499",
      "r500",
      "r649",
      "r673",
      "r704",
      "r737",
      "r738",
      "r760",
      "r769",
      "r781",
      "r837",
      "r846",
      "r905",
      "r906",
      "r907",
      "r908",
      "r909"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Domain]",
        "terseLabel": "Statistical Measurement"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RepurchaseAgreementCounterpartyNameDomain": {
     "auth_ref": [
      "r274",
      "r275",
      "r403",
      "r433",
      "r745",
      "r746"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparty Name [Domain]",
        "terseLabel": "Counterparty Name"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyNameDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfRevenueDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RestatementAxis": {
     "auth_ref": [
      "r226",
      "r277",
      "r278",
      "r279",
      "r281",
      "r282",
      "r285",
      "r286",
      "r287",
      "r288",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r296",
      "r310",
      "r365",
      "r366",
      "r536",
      "r569",
      "r573",
      "r574",
      "r575",
      "r622",
      "r632",
      "r633",
      "r707",
      "r708",
      "r709",
      "r710",
      "r711",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period [Axis]"
       }
      }
     },
     "localname": "RestatementAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RestatementDomain": {
     "auth_ref": [
      "r226",
      "r277",
      "r278",
      "r279",
      "r281",
      "r282",
      "r285",
      "r286",
      "r287",
      "r288",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r296",
      "r310",
      "r365",
      "r366",
      "r536",
      "r569",
      "r573",
      "r574",
      "r575",
      "r622",
      "r632",
      "r633",
      "r707",
      "r708",
      "r709",
      "r710",
      "r711",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period [Domain]"
       }
      }
     },
     "localname": "RestatementDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RevisionOfPriorPeriodAccountingStandardsUpdateAdjustmentMember": {
     "auth_ref": [
      "r226",
      "r281",
      "r282",
      "r288",
      "r296",
      "r365",
      "r366",
      "r536",
      "r569",
      "r575",
      "r622",
      "r632",
      "r633",
      "r707",
      "r708",
      "r709",
      "r710",
      "r711",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period, Accounting Standards Update, Adjustment [Member]",
        "terseLabel": "Retroactive Application of Reverse Recapitalization",
        "verboseLabel": "Retroactive Application of Recapitalization"
       }
      }
     },
     "localname": "RevisionOfPriorPeriodAccountingStandardsUpdateAdjustmentMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioPreviouslyReportedMember": {
     "auth_ref": [
      "r226",
      "r277",
      "r279",
      "r281",
      "r282",
      "r285",
      "r286",
      "r294",
      "r310",
      "r536",
      "r569",
      "r573",
      "r574",
      "r622",
      "r707",
      "r708",
      "r709",
      "r710",
      "r711",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716",
      "r818",
      "r819",
      "r821",
      "r822",
      "r823",
      "r834",
      "r835",
      "r890",
      "r898",
      "r899"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Previously Reported [Member]",
        "terseLabel": "Previously Reported"
       }
      }
     },
     "localname": "ScenarioPreviouslyReportedMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioUnspecifiedDomain": {
     "auth_ref": [
      "r296",
      "r471",
      "r793",
      "r820"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario [Domain]"
       }
      }
     },
     "localname": "ScenarioUnspecifiedDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis": {
     "auth_ref": [
      "r355"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Name [Axis]",
        "terseLabel": "Investment, Name"
       }
      }
     },
     "localname": "ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfChangesInFairValueOfCallOptionLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfNoncontrollingInterestDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfCallOptionLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_SegmentGeographicalDomain": {
     "auth_ref": [
      "r341",
      "r342",
      "r728",
      "r729",
      "r730",
      "r731",
      "r732",
      "r733",
      "r734",
      "r735",
      "r736",
      "r763",
      "r780",
      "r849"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Domain]"
       }
      }
     },
     "localname": "SegmentGeographicalDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_StatementGeographicalAxis": {
     "auth_ref": [
      "r341",
      "r342",
      "r723",
      "r728",
      "r729",
      "r730",
      "r731",
      "r732",
      "r733",
      "r734",
      "r735",
      "r736",
      "r763",
      "r780",
      "r849"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Axis]"
       }
      }
     },
     "localname": "StatementGeographicalAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_StatementScenarioAxis": {
     "auth_ref": [
      "r296",
      "r471",
      "r793",
      "r794",
      "r820"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario [Axis]"
       }
      }
     },
     "localname": "StatementScenarioAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_TitleOfIndividualAxis": {
     "auth_ref": [
      "r827",
      "r900"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of Individual [Axis]"
       }
      }
     },
     "localname": "TitleOfIndividualAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_TitleOfIndividualWithRelationshipToEntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of Individual [Domain]"
       }
      }
     },
     "localname": "TitleOfIndividualWithRelationshipToEntityDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "localname": "AccountingPoliciesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingStandardsUpdate202001Member": {
     "auth_ref": [
      "r592",
      "r593",
      "r594",
      "r595"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Standards Update 2020-01 Investments - Equity Securities (Topic 321), Investments - Equity Method and Joint Ventures (Topic 323), and Derivatives and Hedging (Topic 815): Clarifying the Interactions between Topic 321, Topic 323, and Topic 815 (a consensus of the FASB Emerging Issues Task Force).",
        "label": "Accounting Standards Update 2020-01 [Member]",
        "terseLabel": "ASU 2020-01"
       }
      }
     },
     "localname": "AccountingStandardsUpdate202001Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingStandardsUpdate202006Member": {
     "auth_ref": [
      "r565",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Standards Update 2020-06 Debt - Debt with Conversion and Other Options (Subtopic 470-20) and Derivatives and Hedging - Contracts in Entity's Own Equity (Subtopic 815-40): Accounting for Convertible Instruments and Contracts in an Entity's Own Equity.",
        "label": "Accounting Standards Update 2020-06 [Member]",
        "terseLabel": "ASU 2020-06"
       }
      }
     },
     "localname": "AccountingStandardsUpdate202006Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingStandardsUpdate202104Member": {
     "auth_ref": [
      "r576"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Standards Update 2021-04 Earnings Per Share (Topic 260), Debt-Modifications and Extinguishments (Subtopic 470-50), Compensation-Stock Compensation (Topic 718), and Derivatives and Hedging-Contracts in Entity's Own Equity (Subtopic 815-40): Issuer's Accounting for Certain Modifications or Exchanges of Freestanding Equity-Classified Written Call Options (a consensus of the FASB Emerging Issues Task Force).",
        "label": "Accounting Standards Update 2021-04 [Member]",
        "terseLabel": "ASU 2020-06"
       }
      }
     },
     "localname": "AccountingStandardsUpdate202104Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountsPayableCurrent": {
     "auth_ref": [
      "r22",
      "r778"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accounts Payable, Current",
        "terseLabel": "Accounts payable, including due to related party of $135 and $147, respectively",
        "totalLabel": "Accounts Payable, Current, Total",
        "verboseLabel": "Outstanding accounts payable and remaining undiscounted payments, related parties"
       }
      }
     },
     "localname": "AccountsPayableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccountsPayableRelatedPartiesCurrent": {
     "auth_ref": [
      "r22",
      "r191",
      "r192",
      "r814"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount for accounts payable to related parties. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accounts Payable, Related Parties, Current",
        "terseLabel": "Due to related party, accounts payable",
        "verboseLabel": "Accounts payable, due to related party"
       }
      }
     },
     "localname": "AccountsPayableRelatedPartiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccountsReceivableNetCurrent": {
     "auth_ref": [
      "r344",
      "r345"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, of right to consideration from customer for product sold and service rendered in normal course of business, classified as current.",
        "label": "Accounts Receivable, after Allowance for Credit Loss, Current",
        "terseLabel": "Accounts receivable",
        "totalLabel": "Accounts Receivable, after Allowance for Credit Loss, Current, Total"
       }
      }
     },
     "localname": "AccountsReceivableNetCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedIncomeTaxesCurrent": {
     "auth_ref": [
      "r4",
      "r196",
      "r209"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of the unpaid sum of the known and estimated amounts payable to satisfy all currently due domestic and foreign income tax obligations.",
        "label": "Accrued Income Taxes, Current",
        "terseLabel": "Tax payable"
       }
      }
     },
     "localname": "AccruedIncomeTaxesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedLiabilitiesAndOtherLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expenses incurred but not yet paid nor invoiced, and liabilities classified as other.",
        "label": "Accrued Liabilities and Other Liabilities",
        "totalLabel": "Total accrued expenses"
       }
      }
     },
     "localname": "AccruedLiabilitiesAndOtherLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedLiabilitiesCurrent": {
     "auth_ref": [
      "r27"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of obligations incurred and payable, pertaining to costs that are statutory in nature, are incurred on contractual obligations, or accumulate over time and for which invoices have not yet been received or will not be rendered. Examples include taxes, interest, rent and utilities. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accrued Liabilities, Current",
        "terseLabel": "Accrued expenses and other current liabilities, including due to related party of $2,809 and $5,664 respectively",
        "totalLabel": "Total accrued expenses"
       }
      }
     },
     "localname": "AccruedLiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment": {
     "auth_ref": [
      "r95",
      "r234"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated depreciation, depletion and amortization for physical assets used in the normal conduct of business to produce goods and services.",
        "label": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment",
        "negatedLabel": "Less accumulated depreciation",
        "periodEndLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Ending Balance",
        "periodStartLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Beginning Balance",
        "totalLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Total"
       }
      }
     },
     "localname": "AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r41",
      "r42",
      "r43",
      "r241",
      "r700",
      "r712",
      "r716"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated change in equity from transactions and other events and circumstances from non-owner sources, net of tax effect, at period end. Excludes Net Income (Loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners. Includes foreign currency translation items, certain pension adjustments, unrealized gains and losses on certain investments in debt and equity securities, other than temporary impairment (OTTI) losses related to factors other than credit losses on available-for-sale and held-to-maturity debt securities that an entity does not intend to sell and it is not more likely than not that the entity will be required to sell before recovery of the amortized cost basis, as well as changes in the fair value of derivatives related to the effective portion of a designated cash flow hedge.",
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax",
        "terseLabel": "Accumulated other comprehensive income",
        "totalLabel": "Accumulated Other Comprehensive Income (Loss), Net of Tax, Total"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r40",
      "r43",
      "r166",
      "r633",
      "r707",
      "r708",
      "r803",
      "r804",
      "r805",
      "r815",
      "r816",
      "r817"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners.",
        "label": "AOCI Attributable to Parent [Member]",
        "terseLabel": "Accumulated Other Comprehensive (Loss) Income"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdditionalPaidInCapital": {
     "auth_ref": [
      "r12",
      "r778"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of excess of issue price over par or stated value of stock and from other transaction involving stock or stockholder. Includes, but is not limited to, additional paid-in capital (APIC) for common and preferred stock.",
        "label": "Additional Paid in Capital",
        "negatedLabel": "Additional paid-in capital",
        "periodEndLabel": "Additional Paid in Capital, Ending Balance",
        "periodStartLabel": "Additional Paid in Capital, Beginning Balance",
        "terseLabel": "Additional paid-in capital",
        "totalLabel": "Additional Paid in Capital, Total"
       }
      }
     },
     "localname": "AdditionalPaidInCapital",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [
      "r507",
      "r508",
      "r509",
      "r815",
      "r816",
      "r817",
      "r889"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Excess of issue price over par or stated value of the entity's capital stock and amounts received from other transactions involving the entity's stock or stockholders.",
        "label": "Additional Paid-in Capital [Member]",
        "terseLabel": "Additional Paid-in Capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "auth_ref": [
      "r223",
      "r224",
      "r225",
      "r226",
      "r227",
      "r281",
      "r282",
      "r283",
      "r284",
      "r296",
      "r349",
      "r350",
      "r360",
      "r361",
      "r362",
      "r363",
      "r365",
      "r366",
      "r507",
      "r508",
      "r509",
      "r533",
      "r534",
      "r535",
      "r536",
      "r551",
      "r552",
      "r553",
      "r565",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r589",
      "r590",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r597",
      "r614",
      "r615",
      "r619",
      "r620",
      "r621",
      "r622",
      "r628",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r681",
      "r682",
      "r683",
      "r705",
      "r706",
      "r707",
      "r708",
      "r709",
      "r710",
      "r711",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by amendment to accounting standards.",
        "label": "Accounting Standards Update [Axis]"
       }
      }
     },
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationAndExerciseOfStockOptions": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) to additional paid-in capital (APIC) for recognition and exercise of award under share-based payment arrangement.",
        "label": "APIC, Share-Based Payment Arrangement, Recognition and Exercise",
        "terseLabel": "Issuance of common stock upon exercise of stock options"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationAndExerciseOfStockOptions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": {
     "auth_ref": [
      "r141",
      "r142",
      "r473"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for award under share-based payment arrangement.",
        "label": "APIC, Share-Based Payment Arrangement, Increase for Cost Recognition",
        "terseLabel": "Stock based compensation expense",
        "totalLabel": "APIC, Share-based Payment Arrangement, Increase for Cost Recognition, Total"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalWarrantIssued": {
     "auth_ref": [
      "r104",
      "r118",
      "r125"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in additional paid in capital (APIC) resulting from the issuance of warrants. Includes allocation of proceeds of debt securities issued with detachable stock purchase warrants.",
        "label": "Adjustments to Additional Paid in Capital, Warrant Issued",
        "terseLabel": "Issuance of common stock warrants",
        "verboseLabel": "Exercise of warrants"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalWarrantIssued",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Adjustments to reconcile net loss to net cash used in operating activities:"
       }
      }
     },
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "auth_ref": [
      "r502"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized.",
        "label": "Share-Based Payment Arrangement, Expense",
        "terseLabel": "Stock-based compensation expense"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForCreditLossesTextBlock": {
     "auth_ref": [
      "r78"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for allowance for credit losses.",
        "label": "Allowance for Credit Losses [Text Block]",
        "terseLabel": "Product Revenue and Reserve and Allowances"
       }
      }
     },
     "localname": "AllowanceForCreditLossesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowances1"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AmortizationOfIntangibleAssets": {
     "auth_ref": [
      "r64",
      "r86",
      "r89"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 25.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 3.0,
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Amortization of Intangible Assets",
        "negatedLabel": "Amortization expense",
        "terseLabel": "Amortization of intangible assets",
        "totalLabel": "Amortization of Intangible Assets, Total"
       }
      }
     },
     "localname": "AmortizationOfIntangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": {
     "auth_ref": [
      "r307"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) or earnings per unit (EPU) in the future that were not included in the computation of diluted EPS or EPU because to do so would increase EPS or EPU amounts or decrease loss per share or unit amounts for the period presented.",
        "label": "Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount",
        "terseLabel": "Anti-dilutive securities excluded from computation of net loss per share"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis": {
     "auth_ref": [
      "r70"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of antidilutive security.",
        "label": "Antidilutive Securities [Axis]",
        "terseLabel": "Antidilutive Securities"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]",
        "terseLabel": "Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AntidilutiveSecuritiesNameDomain": {
     "auth_ref": [
      "r70"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Incremental common shares attributable to securities that were not included in diluted earnings per share (EPS) because to do so would increase EPS amounts or decrease loss per share amounts for the period presented.",
        "label": "Antidilutive Securities, Name [Domain]",
        "terseLabel": "Antidilutive Securities, Name"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AreaOfLand": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area of land held.",
        "label": "Area of Land",
        "terseLabel": "Area of land"
       }
      }
     },
     "localname": "AreaOfLand",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAdditionalInformationDetails"
     ],
     "xbrltype": "areaItemType"
    },
    "us-gaap_ArrangementsAndNonarrangementTransactionsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collaborative arrangement and arrangement other than collaborative applicable to revenue-generating activity or operations.",
        "label": "Collaborative Arrangement and Arrangement Other than Collaborative [Domain]",
        "terseLabel": "Collaborative Arrangement and Arrangement Other than Collaborative"
       }
      }
     },
     "localname": "ArrangementsAndNonarrangementTransactionsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r194",
      "r208",
      "r236",
      "r270",
      "r324",
      "r334",
      "r338",
      "r356",
      "r389",
      "r390",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r398",
      "r399",
      "r556",
      "r560",
      "r588",
      "r778",
      "r844",
      "r845",
      "r902"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets",
        "terseLabel": "Total assets",
        "totalLabel": "Total assets"
       }
      }
     },
     "localname": "Assets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "ASSETS"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsCurrent": {
     "auth_ref": [
      "r229",
      "r245",
      "r270",
      "r356",
      "r389",
      "r390",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r398",
      "r399",
      "r556",
      "r560",
      "r588",
      "r778",
      "r844",
      "r845",
      "r902"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are expected to be realized in cash, sold, or consumed within one year (or the normal operating cycle, if longer). Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets, Current",
        "totalLabel": "Total current assets"
       }
      }
     },
     "localname": "AssetsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Current [Abstract]",
        "terseLabel": "Current assets:"
       }
      }
     },
     "localname": "AssetsCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "auth_ref": [
      "r177"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets, Fair Value Disclosure",
        "terseLabel": "Interest rate swap contract (see Note 12)",
        "totalLabel": "Assets, Fair Value Disclosure, Total"
       }
      }
     },
     "localname": "AssetsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of award under share-based payment arrangement.",
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by location on balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Axis]",
        "terseLabel": "Balance Sheet Location"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r169",
      "r170"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for basis of accounting, or basis of presentation, used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS).",
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "terseLabel": "Basis of Presentation"
       }
      }
     },
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "auth_ref": [
      "r550",
      "r767",
      "r768"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identification of the acquiree in a material business combination (or series of individually immaterial business combinations), which may include the name or other type of identification of the acquiree.",
        "label": "Business Acquisition, Acquiree [Domain]",
        "terseLabel": "Business Acquisition, Acquiree"
       }
      }
     },
     "localname": "BusinessAcquisitionAcquireeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureNatureOfBusinessAndBasisOfPresentationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "auth_ref": [
      "r154",
      "r155",
      "r550",
      "r767",
      "r768"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by business combination or series of individually immaterial business combinations.",
        "label": "Business Acquisition [Axis]",
        "terseLabel": "Business Acquisition"
       }
      }
     },
     "localname": "BusinessAcquisitionAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureNatureOfBusinessAndBasisOfPresentationAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionCostOfAcquiredEntityTransactionCosts": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of direct costs of the business combination including legal, accounting, and other costs incurred to consummate the business acquisition.",
        "label": "Business Acquisition, Transaction Costs",
        "terseLabel": "Business combination, direct transaction costs"
       }
      }
     },
     "localname": "BusinessAcquisitionCostOfAcquiredEntityTransactionCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessAcquisitionLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Business Acquisition [Line Items]"
       }
      }
     },
     "localname": "BusinessAcquisitionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationAcquisitionRelatedCosts": {
     "auth_ref": [
      "r153"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents acquisition-related costs incurred to effect a business combination which costs have been expensed during the period. Such costs include finder's fees; advisory, legal, accounting, valuation, and other professional or consulting fees; general administrative costs, including the costs of maintaining an internal acquisitions department; and may include costs of registering and issuing debt and equity securities.",
        "label": "Business Combination, Acquisition Related Costs",
        "terseLabel": "Business combination, aggregate transaction costs"
       }
      }
     },
     "localname": "BusinessCombinationAcquisitionRelatedCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationContingentConsiderationLiability": {
     "auth_ref": [
      "r157",
      "r158",
      "r554"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liability recognized arising from contingent consideration in a business combination.",
        "label": "Business Combination, Contingent Consideration, Liability",
        "terseLabel": "Liability upon the closing of business combination",
        "totalLabel": "Business Combination, Contingent Consideration, Liability, Total"
       }
      }
     },
     "localname": "BusinessCombinationContingentConsiderationLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities": {
     "auth_ref": [
      "r156"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities assumed at the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities",
        "terseLabel": "Business combination, liabilities assumed",
        "totalLabel": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities, Total"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessDescriptionAndBasisOfPresentationTextBlock": {
     "auth_ref": [
      "r0",
      "r69",
      "r75"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the business description and basis of presentation concepts. Business description describes the nature and type of organization including but not limited to organizational structure as may be applicable to holding companies, parent and subsidiary relationships, business divisions, business units, business segments, affiliates and information about significant ownership of the reporting entity. Basis of presentation describes the underlying basis used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS).",
        "label": "Business Description and Basis of Presentation [Text Block]",
        "terseLabel": "Nature of the Business and Basis of Presentation"
       }
      }
     },
     "localname": "BusinessDescriptionAndBasisOfPresentationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureNatureOfBusinessAndBasisOfPresentation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CallOptionMember": {
     "auth_ref": [
      "r717",
      "r718",
      "r719",
      "r720",
      "r721",
      "r722"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial contract between two parties, the buyer and the seller of the option, where the buyer has the right but not the obligation to buy an agreed quantity of a particular commodity or financial instrument (the underlying instrument) from the seller of the option for a certain price (the strike price). Seller is obligated to sell the asset to the buyer, if the buyer exercises the option.",
        "label": "Call Option [Member]",
        "terseLabel": "Call Option"
       }
      }
     },
     "localname": "CallOptionMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r66",
      "r232",
      "r740"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation.",
        "label": "Cash and Cash Equivalents, at Carrying Value",
        "periodEndLabel": "Cash and Cash Equivalents, at Carrying Value, Ending Balance",
        "periodStartLabel": "Cash and Cash Equivalents, at Carrying Value, Beginning Balance",
        "terseLabel": "Cash and cash equivalents",
        "totalLabel": "Cash and Cash Equivalents, at Carrying Value, Total"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsPolicyTextBlock": {
     "auth_ref": [
      "r67"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for cash and cash equivalents, including the policy for determining which items are treated as cash equivalents. Other information that may be disclosed includes (1) the nature of any restrictions on the entity's use of its cash and cash equivalents, (2) whether the entity's cash and cash equivalents are insured or expose the entity to credit risk, (3) the classification of any negative balance accounts (overdrafts), and (4) the carrying basis of cash equivalents (for example, at cost) and whether the carrying amount of cash equivalents approximates fair value.",
        "label": "Cash and Cash Equivalents, Policy [Policy Text Block]",
        "terseLabel": "Cash Equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "auth_ref": [
      "r60",
      "r66",
      "r68"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage. Excludes amount for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents",
        "periodEndLabel": "Cash and cash equivalents at end of period",
        "periodStartLabel": "Cash and cash equivalents at beginning of year",
        "totalLabel": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Total"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "auth_ref": [
      "r60",
      "r184"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "totalLabel": "Net decrease in cash"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted": {
     "auth_ref": [
      "r223",
      "r224",
      "r280",
      "r349",
      "r350",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r533",
      "r551",
      "r552",
      "r562",
      "r565",
      "r566",
      "r576",
      "r589",
      "r591",
      "r592",
      "r593",
      "r596",
      "r597",
      "r614",
      "r618",
      "r619",
      "r620",
      "r621",
      "r628",
      "r629",
      "r681",
      "r682",
      "r705",
      "r706"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates (true false) whether accounting standards update was adopted.",
        "label": "Change in Accounting Principle, Accounting Standards Update, Adopted [true false]",
        "terseLabel": "Change in accounting principle, accounting standards update, adopted"
       }
      }
     },
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "booleanItemType"
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate": {
     "auth_ref": [
      "r223",
      "r224",
      "r349",
      "r350",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r533",
      "r551",
      "r552",
      "r553",
      "r562",
      "r565",
      "r566",
      "r567",
      "r570",
      "r576",
      "r589",
      "r591",
      "r592",
      "r593",
      "r596",
      "r597",
      "r614",
      "r618",
      "r619",
      "r620",
      "r621",
      "r628",
      "r629",
      "r681",
      "r682",
      "r705",
      "r706",
      "r819"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Date accounting standards update was adopted, in YYYY-MM-DD format.",
        "label": "Change in Accounting Principle, Accounting Standards Update, Adoption Date",
        "terseLabel": "Change in accounting principle, accounting standards update, adoption date"
       }
      }
     },
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateImmaterialEffect": {
     "auth_ref": [
      "r281",
      "r295",
      "r351",
      "r364",
      "r537"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates (true false) whether effect from applying amendment to accounting standards is immaterial.",
        "label": "Change in Accounting Principle, Accounting Standards Update, Immaterial Effect [true false]",
        "terseLabel": "Change in accounting principle, accounting standards update, immaterial effect"
       }
      }
     },
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateImmaterialEffect",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "booleanItemType"
    },
    "us-gaap_ClassOfStockDomain": {
     "auth_ref": [
      "r238",
      "r239",
      "r240",
      "r270",
      "r300",
      "r301",
      "r304",
      "r306",
      "r314",
      "r315",
      "r356",
      "r389",
      "r392",
      "r393",
      "r394",
      "r398",
      "r399",
      "r430",
      "r431",
      "r435",
      "r439",
      "r446",
      "r588",
      "r739",
      "r792",
      "r810",
      "r824"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share of stock differentiated by the voting rights the holder receives. Examples include, but are not limited to, common stock, redeemable preferred stock, nonredeemable preferred stock, and convertible stock.",
        "label": "Class of Stock [Domain]",
        "terseLabel": "Class of Stock"
       }
      }
     },
     "localname": "ClassOfStockDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ClassOfStockLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Class of Stock [Line Items]",
        "terseLabel": "Common Stock"
       }
      }
     },
     "localname": "ClassOfStockLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ClassOfWarrantOrRightAxis": {
     "auth_ref": [
      "r126",
      "r131"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of warrant or right issued.",
        "label": "Class of Warrant or Right [Axis]",
        "terseLabel": "Class of Warrant or Right"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ClassOfWarrantOrRightDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the class or type of warrant or right outstanding. Warrants and rights represent derivative securities that give the holder the right to purchase securities (usually equity) from the issuer at a specific price within a certain time frame. Warrants are often included in a new debt issue to entice investors by a higher return potential. The main difference between warrants and call options is that warrants are issued and guaranteed by the company, whereas options are exchange instruments and are not issued by the company. Also, the lifetime of a warrant is often measured in years, while the lifetime of a typical option is measured in months.",
        "label": "Class of Warrant or Right [Domain]",
        "terseLabel": "Class of Warrant or Right"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1": {
     "auth_ref": [
      "r447"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Exercise price per share or per unit of warrants or rights outstanding.",
        "label": "Class of Warrant or Right, Exercise Price of Warrants or Rights",
        "terseLabel": "Exercise price of warrants",
        "verboseLabel": "Exercise price"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ClassOfWarrantOrRightLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Class of Warrant or Right [Line Items]",
        "terseLabel": "Class Of Warrant Or Right [Line Items]"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights": {
     "auth_ref": [
      "r447"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_CommonStockCapitalSharesReservedForFutureIssuance",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of securities into which the class of warrant or right may be converted. For example, but not limited to, 500,000 warrants may be converted into 1,000,000 shares.",
        "label": "Class of Warrant or Right, Number of Securities Called by Warrants or Rights",
        "terseLabel": "Sale of Private Placement Warrants (in shares)",
        "verboseLabel": "Warrants to purchase common stock"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ClassOfWarrantOrRightOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of warrants or rights outstanding.",
        "label": "Class of Warrant or Right, Outstanding",
        "terseLabel": "Number of warrants outstanding",
        "verboseLabel": "Common stock warrants"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ClassOfWarrantOrRightTable": {
     "auth_ref": [
      "r126",
      "r131"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure for warrants or rights issued, which includes the title of issue of securities called for by warrants and rights outstanding, the aggregate amount of securities called for by warrants and rights outstanding, the date from which the warrants or rights are exercisable, and the price at which the warrant or right is exercisable.",
        "label": "Class of Warrant or Right [Table]",
        "terseLabel": "Class Of Warrant Or Right [Table]"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Collaborative Arrangement and Arrangement Other than Collaborative [Line Items]",
        "terseLabel": "Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items]"
       }
      }
     },
     "localname": "CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfChangesInFairValueOfCallOptionLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfNoncontrollingInterestDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfCallOptionLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingencies": {
     "auth_ref": [
      "r33",
      "r201",
      "r214"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the caption on the face of the balance sheet to indicate that the entity has entered into (1) purchase or supply arrangements that will require expending a portion of its resources to meet the terms thereof, and (2) is exposed to potential losses or, less frequently, gains, arising from (a) possible claims against a company's resources due to future performance under contract terms, and (b) possible losses or likely gains from uncertainties that will ultimately be resolved when one or more future events that are deemed likely to occur do occur or fail to occur.",
        "label": "Commitments and Contingencies",
        "terseLabel": "Commitments and contingencies (Note 19)"
       }
      }
     },
     "localname": "CommitmentsAndContingencies",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "auth_ref": [
      "r99",
      "r382",
      "r383",
      "r724",
      "r842"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for commitments and contingencies.",
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "terseLabel": "Commitments and Contingencies"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingencies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CommonClassAMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Classification of common stock representing ownership interest in a corporation.",
        "label": "Common Class A [Member]",
        "terseLabel": "Class A common stock"
       }
      }
     },
     "localname": "CommonClassAMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockCapitalSharesReservedForFutureIssuance": {
     "auth_ref": [
      "r35"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate number of common shares reserved for future issuance.",
        "label": "Common Stock, Capital Shares Reserved for Future Issuance",
        "totalLabel": "Total common stock reserved for future issuance"
       }
      }
     },
     "localname": "CommonStockCapitalSharesReservedForFutureIssuance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [
      "r815",
      "r816",
      "r889"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock that is subordinate to all other stock of the issuer.",
        "label": "Common Stock [Member]",
        "terseLabel": "Common Stock"
       }
      }
     },
     "localname": "CommonStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face amount or stated value per share of common stock.",
        "label": "Common Stock, Par or Stated Value Per Share",
        "terseLabel": "Common stock, par value",
        "verboseLabel": "Common shares, par value (in dollars per share)"
       }
      }
     },
     "localname": "CommonStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws.",
        "label": "Common Stock, Shares Authorized",
        "terseLabel": "Common stock, shares authorized",
        "verboseLabel": "Common shares, shares authorized (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesIssued": {
     "auth_ref": [
      "r11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury.",
        "label": "Common Stock, Shares, Issued",
        "terseLabel": "Common stock, shares issued",
        "totalLabel": "Common Stock, Shares, Issued, Total",
        "verboseLabel": "Common shares, shares issued (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "auth_ref": [
      "r11",
      "r118"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation.",
        "label": "Common shares, shares outstanding (in shares)",
        "periodEndLabel": "Common Stock, Shares, Outstanding, Ending Balance",
        "periodStartLabel": "Common Stock, Shares, Outstanding, Beginning Balance",
        "terseLabel": "Common stock, shares outstanding",
        "verboseLabel": "Total common stock immediately after Closing"
       }
      }
     },
     "localname": "CommonStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r11",
      "r778"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Common Stock, Value, Issued",
        "periodEndLabel": "Common Stock, Value, Issued, Ending Balance",
        "periodStartLabel": "Common Stock, Value, Issued, Beginning Balance",
        "terseLabel": "Common stock, $0.0001 par value - 900,000,000 shares authorized at December 31, 2022; 73,325,022 shares issued and outstanding at December 31, 2022; 125,961,571 shares authorized at December 31, 2021; 6,248,192 shares issued and outstanding at December 31, 2021",
        "totalLabel": "Common Stock, Value, Issued, Total",
        "verboseLabel": "Aggregate common stock value"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CompensationAndEmployeeBenefitPlansTextBlock": {
     "auth_ref": [
      "r128",
      "r129",
      "r130",
      "r143"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for an entity's employee compensation and benefit plans, including, but not limited to, postemployment and postretirement benefit plans, defined benefit pension plans, defined contribution plans, non-qualified and supplemental benefit plans, deferred compensation, share-based compensation, life insurance, severance, health care, unemployment and other benefit plans.",
        "label": "Compensation and Employee Benefit Plans [Text Block]",
        "verboseLabel": "Employee Benefit Plan"
       }
      }
     },
     "localname": "CompensationAndEmployeeBenefitPlansTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEmployeeBenefitPlan1"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CompensationAndRetirementDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Benefits [Abstract]"
       }
      }
     },
     "localname": "CompensationAndRetirementDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CompensationRelatedCostsPolicyTextBlock": {
     "auth_ref": [
      "r132"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for salaries, bonuses, incentive awards, postretirement and postemployment benefits granted to employees, including equity-based arrangements; discloses methodologies for measurement, and the bases for recognizing related assets and liabilities and recognizing and reporting compensation expense.",
        "label": "Compensation Related Costs, Policy [Policy Text Block]",
        "terseLabel": "Stock-Based Compensation"
       }
      }
     },
     "localname": "CompensationRelatedCostsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r44",
      "r249",
      "r251",
      "r257",
      "r696",
      "r701"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLoss": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income, attributable to parent entity. Excludes changes in equity resulting from investments by owners and distributions to owners.",
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "totalLabel": "Comprehensive loss"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConstructionInProgressMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Structure or a modification to a structure under construction. Includes recently completed structures or modifications to structures that have not been placed into service.",
        "label": "Construction in Progress [Member]",
        "terseLabel": "Construction in Process"
       }
      }
     },
     "localname": "ConstructionInProgressMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ContractWithCustomerLiabilityChangeInTimeframePerformanceObligationSatisfiedRevenueRecognized": {
     "auth_ref": [
      "r761"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of revenue recognized arising from contract liability from change in timeframe for performance obligation to be satisfied.",
        "label": "Contract with Customer, Liability, Change in Timeframe, Performance Obligation Satisfied, Revenue Recognized",
        "terseLabel": "Performance obligations to be satisfied over time for recognition purposes amount"
       }
      }
     },
     "localname": "ContractWithCustomerLiabilityChangeInTimeframePerformanceObligationSatisfiedRevenueRecognized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerRefundLiability": {
     "auth_ref": [
      "r850"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liability for consideration received or receivable from customer which is not included in transaction price, when consideration is expected to be refunded to customer.",
        "label": "Contract with Customer, Refund Liability",
        "terseLabel": "Deferred income",
        "totalLabel": "Contract with Customer, Refund Liability, Total",
        "verboseLabel": "Deferred income"
       }
      }
     },
     "localname": "ContractWithCustomerRefundLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerRefundLiabilityCurrent": {
     "auth_ref": [
      "r850"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liability for consideration received or receivable from customer which is not included in transaction price, when consideration is expected to be refunded to customer, classified as current.",
        "label": "Contract with Customer, Refund Liability, Current",
        "terseLabel": "Deferred income, current liability",
        "verboseLabel": "Current portion of deferred income"
       }
      }
     },
     "localname": "ContractWithCustomerRefundLiabilityCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConvertiblePreferredStockMember": {
     "auth_ref": [
      "r430",
      "r431",
      "r435"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred stock that may be exchanged into common shares or other types of securities at the owner's option.",
        "label": "Convertible Preferred Stock [Member]",
        "terseLabel": "Convertible Preferred Stock"
       }
      }
     },
     "localname": "ConvertiblePreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConvertiblePreferredStockTermsOfConversion": {
     "auth_ref": [
      "r9",
      "r10",
      "r119",
      "r122",
      "r123",
      "r124"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of conversion terms for preferred stock.",
        "label": "Preferred Stock, Convertible, Terms",
        "terseLabel": "Convertible preferred stock, terms of conversion"
       }
      }
     },
     "localname": "ConvertiblePreferredStockTermsOfConversion",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CostOfGoodsAndServicesSold": {
     "auth_ref": [
      "r50",
      "r679"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 0.0,
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate costs related to goods produced and sold and services rendered by an entity during the reporting period. This excludes costs incurred during the reporting period related to financial services rendered and other revenue generating activities.",
        "label": "Cost of Goods and Services Sold",
        "terseLabel": "Costs of goods sold, including related party expenses of $1,027 and $447, respectively",
        "totalLabel": "Cost of Goods and Services Sold, Total"
       }
      }
     },
     "localname": "CostOfGoodsAndServicesSold",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CostOfSalesPolicyTextBlock": {
     "auth_ref": [
      "r852"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for cost of product sold and service rendered.",
        "label": "Cost of Goods and Service [Policy Text Block]",
        "terseLabel": "Cost of goods sold"
       }
      }
     },
     "localname": "CostOfSalesPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CostsAndExpenses": {
     "auth_ref": [
      "r48"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total costs of sales and operating expenses for the period.",
        "label": "Costs and Expenses",
        "terseLabel": "Total operating expenses",
        "totalLabel": "Total operating expenses"
       }
      }
     },
     "localname": "CostsAndExpenses",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CostsAndExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Costs and Expenses [Abstract]",
        "terseLabel": "Operating expenses:"
       }
      }
     },
     "localname": "CostsAndExpensesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CurrentFederalStateAndLocalTaxExpenseBenefitAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Federal, State and Local, Tax Expense (Benefit) [Abstract]",
        "terseLabel": "Current tax expense:"
       }
      }
     },
     "localname": "CurrentFederalStateAndLocalTaxExpenseBenefitAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CurrentFederalTaxExpenseBenefit": {
     "auth_ref": [
      "r813",
      "r884",
      "r886"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_CurrentIncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current federal tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, current national tax expense (benefit) for non-US (United States of America) jurisdiction.",
        "label": "Current Federal Tax Expense (Benefit)",
        "terseLabel": "U.S. federal"
       }
      }
     },
     "localname": "CurrentFederalTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CurrentForeignTaxExpenseBenefit": {
     "auth_ref": [
      "r813",
      "r884"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_CurrentIncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current foreign income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Current Foreign Tax Expense (Benefit)",
        "terseLabel": "Foreign"
       }
      }
     },
     "localname": "CurrentForeignTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CurrentIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r152",
      "r530",
      "r541",
      "r813"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) pertaining to taxable income (loss) from continuing operations.",
        "label": "Current Income Tax Expense (Benefit)",
        "totalLabel": "Total current tax expense"
       }
      }
     },
     "localname": "CurrentIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Disclosure [Abstract]"
       }
      }
     },
     "localname": "DebtDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "auth_ref": [
      "r105",
      "r268",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r416",
      "r423",
      "r424",
      "r426"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for information about short-term and long-term debt arrangements, which includes amounts of borrowings under each line of credit, note payable, commercial paper issue, bonds indenture, debenture issue, own-share lending arrangements and any other contractual agreement to repay funds, and about the underlying arrangements, rationale for a classification as long-term, including repayment terms, interest rates, collateral provided, restrictions on use of assets and activities, whether or not in compliance with debt covenants, and other matters important to users of the financial statements, such as the effects of refinancing and noncompliance with debt covenants.",
        "label": "Debt Disclosure [Text Block]",
        "terseLabel": "Debt"
       }
      }
     },
     "localname": "DebtDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebt"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtInstrumentAxis": {
     "auth_ref": [
      "r3",
      "r4",
      "r5",
      "r195",
      "r198",
      "r207",
      "r276",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r406",
      "r412",
      "r413",
      "r414",
      "r415",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r617",
      "r755",
      "r756",
      "r757",
      "r758",
      "r759",
      "r811"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities.",
        "label": "Debt Instrument [Axis]",
        "terseLabel": "Debt Instrument"
       }
      }
     },
     "localname": "DebtInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentCarryingAmount": {
     "auth_ref": [
      "r5",
      "r198",
      "r207",
      "r427"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt.",
        "label": "Long-Term Debt, Gross",
        "terseLabel": "Total debt obligation carrying amount",
        "totalLabel": "Total debt obligation carrying amount",
        "verboseLabel": "Total debt obligation"
       }
      }
     },
     "localname": "DebtInstrumentCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "auth_ref": [
      "r186",
      "r188",
      "r400",
      "r617",
      "r756",
      "r757"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face (par) amount of debt instrument at time of issuance.",
        "label": "Debt Instrument, Face Amount",
        "terseLabel": "Aggregate principal amount of notes",
        "verboseLabel": "Aggregate principal amount"
       }
      }
     },
     "localname": "DebtInstrumentFaceAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "auth_ref": [
      "r29",
      "r401"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement.",
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "terseLabel": "Interest rate",
        "verboseLabel": "Interest rate"
       }
      }
     },
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Debt Instrument [Line Items]",
        "terseLabel": "Debt Instrument [Line Items]"
       }
      }
     },
     "localname": "DebtInstrumentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfAssumptionsUsedToDetermineFairValueOf2022ConvertiblePromissoryNotesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentMaturityDate": {
     "auth_ref": [
      "r246",
      "r755",
      "r892"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Date when the debt instrument is scheduled to be fully repaid, in YYYY-MM-DD format.",
        "label": "Debt Instrument, Maturity Date",
        "terseLabel": "Maturity date",
        "verboseLabel": "Maturity date"
       }
      }
     },
     "localname": "DebtInstrumentMaturityDate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "auth_ref": [
      "r30",
      "r276",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r406",
      "r412",
      "r413",
      "r414",
      "r415",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r617",
      "r755",
      "r756",
      "r757",
      "r758",
      "r759",
      "r811"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities.",
        "label": "Debt Instrument, Name [Domain]",
        "terseLabel": "Debt Instrument, Name"
       }
      }
     },
     "localname": "DebtInstrumentNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentTable": {
     "auth_ref": [
      "r30",
      "r119",
      "r122",
      "r123",
      "r124",
      "r185",
      "r186",
      "r188",
      "r205",
      "r276",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r406",
      "r412",
      "r413",
      "r414",
      "r415",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r425",
      "r617",
      "r755",
      "r756",
      "r757",
      "r758",
      "r759",
      "r811"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Schedule of Long-Term Debt Instruments [Table]",
        "terseLabel": "Debt Instrument [Table]"
       }
      }
     },
     "localname": "DebtInstrumentTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfAssumptionsUsedToDetermineFairValueOf2022ConvertiblePromissoryNotesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet": {
     "auth_ref": [
      "r187",
      "r412",
      "r428",
      "r756",
      "r757"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unamortized debt discount (premium) and debt issuance costs.",
        "label": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net",
        "negatedLabel": "Unamortized loan discount and issuance costs",
        "terseLabel": "More than 5 years",
        "totalLabel": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net, Total"
       }
      }
     },
     "localname": "DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Costs, Capitalized, Prepaid, and Other Assets Disclosure [Abstract]"
       }
      }
     },
     "localname": "DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amounts paid in advance for capitalized costs that will be expensed with the passage of time or the occurrence of a triggering event, and will be charged against earnings within one year or the normal operating cycle, if longer; the aggregate carrying amount of current assets, not separately presented elsewhere in the balance sheet; and other deferred costs.",
        "label": "Deferred Costs, Capitalized, Prepaid, and Other Assets Disclosure [Table Text Block]",
        "terseLabel": "Schedule of Prepaid Expenses and Other Current Assets"
       }
      }
     },
     "localname": "DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePrepaidExpensesAndOtherCurrentAssetsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DeferredFederalIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r813",
      "r885",
      "r886"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred federal tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, deferred national tax expense (benefit) for non-US (United States of America) jurisdiction.",
        "label": "Deferred Federal Income Tax Expense (Benefit)",
        "terseLabel": "U.S. federal"
       }
      }
     },
     "localname": "DeferredFederalIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredFederalStateAndLocalTaxExpenseBenefitAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Federal, State and Local, Tax Expense (Benefit) [Abstract]",
        "verboseLabel": "Deferred tax expense:"
       }
      }
     },
     "localname": "DeferredFederalStateAndLocalTaxExpenseBenefitAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredFinanceCostsNet": {
     "auth_ref": [
      "r187",
      "r847"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs.",
        "label": "Debt Issuance Costs, Net",
        "terseLabel": "Net of transaction costs",
        "totalLabel": "Debt Issuance Costs, Net, Total"
       }
      }
     },
     "localname": "DeferredFinanceCostsNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredForeignIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r152",
      "r813",
      "r885"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred foreign income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred Foreign Income Tax Expense (Benefit)",
        "terseLabel": "Foreign"
       }
      }
     },
     "localname": "DeferredForeignIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeCurrent": {
     "auth_ref": [
      "r843"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income excluding obligation to transfer product and service to customer for which consideration has been received or is receivable, classified as current.",
        "label": "Deferred Income, Current",
        "terseLabel": "Deferred income"
       }
      }
     },
     "localname": "DeferredIncomeCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r64",
      "r152",
      "r531",
      "r540",
      "r541",
      "r813"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred Income Tax Expense (Benefit)",
        "totalLabel": "Total deferred tax expense"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxLiabilities": {
     "auth_ref": [
      "r6",
      "r7",
      "r197",
      "r206",
      "r524"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences.",
        "label": "Deferred Tax Liabilities, Gross",
        "negatedTotalLabel": "Total deferred tax liabilities",
        "totalLabel": "Total deferred tax liabilities"
       }
      }
     },
     "localname": "DeferredIncomeTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredRevenueNoncurrent": {
     "auth_ref": [
      "r796"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income and obligation to transfer product and service to customer for which consideration has been received or is receivable, classified as noncurrent.",
        "label": "Deferred Revenue, Noncurrent",
        "terseLabel": "Deferred income",
        "totalLabel": "Deferred Revenue, Noncurrent, Total"
       }
      }
     },
     "localname": "DeferredRevenueNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r813",
      "r885",
      "r886"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred state and local tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, deferred regional, territorial, and provincial tax expense (benefit) for non-US (United States of America) jurisdiction.",
        "label": "Deferred State and Local Income Tax Expense (Benefit)",
        "terseLabel": "State"
       }
      }
     },
     "localname": "DeferredStateAndLocalIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsDeferredIncome": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from deferred income.",
        "label": "Deferred Tax Assets, Deferred Income",
        "terseLabel": "Deferred income"
       }
      }
     },
     "localname": "DeferredTaxAssetsDeferredIncome",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsGross": {
     "auth_ref": [
      "r525"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards.",
        "label": "Deferred Tax Assets, Gross",
        "totalLabel": "Total deferred tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsGrossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Gross [Abstract]",
        "terseLabel": "Deferred tax assets:"
       }
      }
     },
     "localname": "DeferredTaxAssetsGrossAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredTaxAssetsInProcessResearchAndDevelopment": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from in-process research and development costs expensed in connection with a business combination.",
        "label": "Deferred Tax Assets, in Process Research and Development",
        "terseLabel": "Research credits"
       }
      }
     },
     "localname": "DeferredTaxAssetsInProcessResearchAndDevelopment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsInventory": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 12.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from inventory.",
        "label": "Deferred Tax Assets, Inventory",
        "terseLabel": "Inventory reserve"
       }
      }
     },
     "localname": "DeferredTaxAssetsInventory",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsInvestmentInSubsidiaries": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from the entity's investment in its wholly-owned subsidiaries.",
        "label": "Deferred Tax Assets, Investment in Subsidiaries",
        "terseLabel": "Investment in subsidiaries"
       }
      }
     },
     "localname": "DeferredTaxAssetsInvestmentInSubsidiaries",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsNet": {
     "auth_ref": [
      "r882"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards.",
        "label": "Deferred Tax Assets, Net of Valuation Allowance",
        "totalLabel": "Total deferred tax assets net of valuation allowance"
       }
      }
     },
     "localname": "DeferredTaxAssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsDomestic": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible domestic operating loss carryforwards. Excludes state and local operating loss carryforwards.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, Domestic",
        "terseLabel": "Federal net operating loss carryforwards",
        "verboseLabel": "Operating loss carryforward, Domestic"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsDomestic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsForeign": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible foreign operating loss carryforwards.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, Foreign",
        "terseLabel": "Operating loss carryforward, Foreign"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsForeign",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards that are not subject to expiration dates.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, Not Subject to Expiration",
        "terseLabel": "Operating loss carry forward, Not Subject to Expiration"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 8.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible state and local operating loss carryforwards.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, State and Local",
        "terseLabel": "State net operating loss carryforwards",
        "verboseLabel": "Operating loss carryforward, State"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards that are subject to expiration dates.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, Subject to Expiration",
        "terseLabel": "Operating loss carry forward, Subject to Expiration"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOther": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 9.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other.",
        "label": "Deferred Tax Assets, Other",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsOther",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch": {
     "auth_ref": [
      "r149",
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible research tax credit carryforwards.",
        "label": "Deferred Tax Assets, Tax Credit Carryforwards, Research",
        "terseLabel": "Research credits"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxCreditCarryforwardsResearch",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from share-based compensation.",
        "label": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits, Share-Based Compensation Cost",
        "terseLabel": "Equity compensation"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from reserves and accruals.",
        "label": "Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals",
        "terseLabel": "Accruals and reserves",
        "totalLabel": "Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Total"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsValuationAllowance": {
     "auth_ref": [
      "r526"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized.",
        "label": "Deferred Tax Assets, Valuation Allowance",
        "negatedLabel": "Valuation allowance"
       }
      }
     },
     "localname": "DeferredTaxAssetsValuationAllowance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Gross [Abstract]",
        "terseLabel": "Deferred tax liabilities:"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from intangible assets including goodwill.",
        "label": "Deferred Tax Liabilities, Goodwill and Intangible Assets",
        "negatedLabel": "Intangible assets and amortization",
        "totalLabel": "Deferred Tax Liabilities, Goodwill and Intangible Assets, Total"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesGoodwillAndIntangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from intangible assets other than goodwill.",
        "label": "Deferred Tax Liabilities, Intangible Assets",
        "terseLabel": "Deferred tax liability recognized for intangible asset acquired"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesLeasingArrangements": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from leasing arrangements.",
        "label": "Deferred Tax Liabilities, Leasing Arrangements",
        "negatedLabel": "Right-of-use asset"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesLeasingArrangements",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesOther": {
     "auth_ref": [
      "r150",
      "r883"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences classified as other.",
        "label": "Deferred Tax Liabilities, Other",
        "negatedLabel": "Other liabilities"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesOther",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesSignificantComponentsOfConsolidatedDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilityNotRecognizedAmountOfUnrecognizedDeferredTaxLiabilityUndistributedEarningsOfForeignSubsidiaries": {
     "auth_ref": [
      "r548"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability not recognized because of the exceptions to comprehensive recognition of deferred taxes related to undistributed earnings of foreign subsidiaries.",
        "label": "Deferred Tax Liability Not Recognized, Amount of Unrecognized Deferred Tax Liability, Undistributed Earnings of Foreign Subsidiaries",
        "terseLabel": "Accumulated undistributed earnings of foreign subsidiaries"
       }
      }
     },
     "localname": "DeferredTaxLiabilityNotRecognizedAmountOfUnrecognizedDeferredTaxLiabilityUndistributedEarningsOfForeignSubsidiaries",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of discretionary contributions made by an employer to a defined contribution plan.",
        "label": "Defined Contribution Plan, Employer Discretionary Contribution Amount",
        "terseLabel": "Discretionary plan contributions"
       }
      }
     },
     "localname": "DefinedContributionPlanEmployerDiscretionaryContributionAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEmployeeBenefitPlanAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Depreciation": {
     "auth_ref": [
      "r64",
      "r93"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 21.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of expense recognized in the current period that reflects the allocation of the cost of tangible assets over the assets' useful lives. Includes production and non-production related depreciation.",
        "label": "Depreciation",
        "terseLabel": "Depreciation",
        "totalLabel": "Depreciation, Total"
       }
      }
     },
     "localname": "Depreciation",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeInstrumentDetailAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instrument Detail [Abstract]"
       }
      }
     },
     "localname": "DerivativeInstrumentDetailAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeLiabilityMeasurementInput": {
     "auth_ref": [
      "r581"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of input used to measure derivative liability.",
        "label": "Derivative Liability, Measurement Input",
        "terseLabel": "Warrent Liability"
       }
      }
     },
     "localname": "DerivativeLiabilityMeasurementInput",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "decimalItemType"
    },
    "us-gaap_DerivativesAndFairValueTextBlock": {
     "auth_ref": [
      "r176",
      "r183"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for derivatives and fair value of assets and liabilities.",
        "label": "Derivatives and Fair Value [Text Block]",
        "terseLabel": "Earnout Liability"
       }
      }
     },
     "localname": "DerivativesAndFairValueTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiability1"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DerivativesFairValueLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Derivatives, Fair Value [Line Items]"
       }
      }
     },
     "localname": "DerivativesFairValueLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilityAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfEarnoutLiabilityActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r475",
      "r503",
      "r504",
      "r506",
      "r510",
      "r770"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for share-based payment arrangement.",
        "label": "Share-Based Payment Arrangement [Text Block]",
        "terseLabel": "Stock-Based Compensation"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Abstract]"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DueToRelatedPartiesCurrent": {
     "auth_ref": [
      "r22",
      "r391",
      "r392",
      "r393",
      "r397",
      "r398",
      "r399",
      "r637",
      "r814"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of obligations due all related parties. For classified balance sheets, represents the current portion of such liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Due to Related Parties, Current",
        "terseLabel": "Outstanding accrued expenses and remaining undiscounted payments, related parties",
        "totalLabel": "Due to Related Parties, Current, Total",
        "verboseLabel": "Loan from related party"
       }
      }
     },
     "localname": "DueToRelatedPartiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Abstract]"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r258",
      "r285",
      "r286",
      "r288",
      "r289",
      "r290",
      "r297",
      "r300",
      "r304",
      "r305",
      "r306",
      "r310",
      "r574",
      "r575",
      "r697",
      "r702",
      "r750"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period.",
        "label": "Earnings Per Share, Basic",
        "terseLabel": "Net loss per share attributable to common stockholders - basic",
        "totalLabel": "Earnings Per Share, Basic, Total"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r258",
      "r285",
      "r286",
      "r288",
      "r289",
      "r290",
      "r300",
      "r304",
      "r305",
      "r306",
      "r310",
      "r574",
      "r575",
      "r697",
      "r702",
      "r750"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period.",
        "label": "Earnings Per Share, Diluted",
        "terseLabel": "Net loss per share attributable to common stockholders - diluted",
        "totalLabel": "Earnings Per Share, Diluted, Total"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerSharePolicyTextBlock": {
     "auth_ref": [
      "r70",
      "r71"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for computing basic and diluted earnings or loss per share for each class of common stock and participating security. Addresses all significant policy factors, including any antidilutive items that have been excluded from the computation and takes into account stock dividends, splits and reverse splits that occur after the balance sheet date of the latest reporting period but before the issuance of the financial statements.",
        "label": "Earnings Per Share, Policy [Policy Text Block]",
        "terseLabel": "Earnings (Loss) per Share"
       }
      }
     },
     "localname": "EarningsPerSharePolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r307",
      "r308",
      "r309",
      "r311"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "Earnings (Loss) Per Share"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShare"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "auth_ref": [
      "r604"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) from effect of exchange rate changes on cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; held in foreign currencies. Excludes amounts for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Effect of Exchange Rate on Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Continuing Operations",
        "terseLabel": "Effect of exchange rates on cash"
       }
      }
     },
     "localname": "EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateContinuingOperations": {
     "auth_ref": [
      "r515"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Effective Income Tax Rate Reconciliation, Percent",
        "totalLabel": "Effective income tax rate"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate": {
     "auth_ref": [
      "r272",
      "r515",
      "r543"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of domestic federal statutory tax rate applicable to pretax income (loss).",
        "label": "Effective Income Tax Rate Reconciliation, at Federal Statutory Income Tax Rate, Percent",
        "terseLabel": "U.S statutory rate",
        "verboseLabel": "U.S. Federal income tax provision expense at statutory rate"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential": {
     "auth_ref": [
      "r880",
      "r887"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations applicable to statutory income tax expense (benefit) outside of the country of domicile.",
        "label": "Effective Income Tax Rate Reconciliation, Foreign Income Tax Rate Differential, Percent",
        "terseLabel": "Foreign rate differential"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationGiltiPercent": {
     "auth_ref": [
      "r880"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": 9.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of reported income tax expense from difference to expected income tax expense (benefit) computed by applying domestic federal statutory income tax rate to pretax income (loss) from continuing operations, attributable to global intangible low-taxed income (GILTI).",
        "label": "Effective Income Tax Rate Reconciliation, GILTI, Percent",
        "negatedLabel": "GILTI",
        "terseLabel": "GILTI"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationGiltiPercent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost": {
     "auth_ref": [
      "r880",
      "r887"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": 10.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying domestic federal statutory income tax rate to pretax income (loss) from continuing operation, attributable to nondeductible expense for share-based payment arrangement.",
        "label": "Effective Income Tax Rate Reconciliation, Nondeductible Expense, Share-Based Payment Arrangement, Percent",
        "terseLabel": "Effect of nondeductible stock-based compensation"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes": {
     "auth_ref": [
      "r880",
      "r887"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations applicable to state and local income tax expense (benefit), net of federal tax expense (benefit).",
        "label": "Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Percent",
        "terseLabel": "State taxes net of federal benefit"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies": {
     "auth_ref": [
      "r880",
      "r887"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to income tax contingencies. Includes, but not limited to, domestic tax contingency, foreign tax contingency, state and local tax contingency, and other contingencies.",
        "label": "Effective Income Tax Rate Reconciliation, Tax Contingency, Percent",
        "terseLabel": "Uncertain tax positions",
        "totalLabel": "Effective Income Tax Rate Reconciliation, Tax Contingency, Percent, Total"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationTaxContingencies",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfReconciliationOfUsFederalStatutoryRateToEffectiveIncomeTaxRateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EmployeeRelatedLiabilitiesCurrent": {
     "auth_ref": [
      "r27"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of the carrying values as of the balance sheet date of obligations incurred through that date and payable for obligations related to services received from employees, such as accrued salaries and bonuses, payroll taxes and fringe benefits. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Employee-related Liabilities, Current",
        "terseLabel": "Accrued payroll and related benefits",
        "totalLabel": "Employee-related Liabilities, Current, Total"
       }
      }
     },
     "localname": "EmployeeRelatedLiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "auth_ref": [
      "r505"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition",
        "terseLabel": "Weighted-average period of unrecognized compensation cost expected to be recognized"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions": {
     "auth_ref": [
      "r879"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost to be recognized for option under share-based payment arrangement.",
        "label": "Share-Based Payment Arrangement, Nonvested Award, Option, Cost Not yet Recognized, Amount",
        "terseLabel": "Unrecognized compensation cost"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]"
       }
      }
     },
     "localname": "EquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r118",
      "r225",
      "r253",
      "r254",
      "r255",
      "r277",
      "r278",
      "r279",
      "r282",
      "r291",
      "r294",
      "r313",
      "r363",
      "r448",
      "r507",
      "r508",
      "r509",
      "r535",
      "r536",
      "r573",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r633",
      "r707",
      "r708",
      "r709"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc.",
        "label": "Equity Component [Domain]",
        "terseLabel": "Equity Component"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvestmentAggregateCost": {
     "auth_ref": [
      "r20"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the aggregate cost of investments accounted for under the equity method of accounting.",
        "label": "Equity Method Investment, Aggregate Cost",
        "totalLabel": "Total assets acquired"
       }
      }
     },
     "localname": "EquityMethodInvestmentAggregateCost",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestmentOwnershipPercentage": {
     "auth_ref": [
      "r80"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting.",
        "label": "Equity Method Investment, Ownership Percentage",
        "terseLabel": "Equity investment ownership percentage",
        "verboseLabel": "Equity interest acquired (as a percent)"
       }
      }
     },
     "localname": "EquityMethodInvestmentOwnershipPercentage",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EquityMethodInvestmentQuotedMarketValue": {
     "auth_ref": [
      "r81"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents the aggregate value of each identified investment accounted for under the equity method of accounting based on the quoted market price for those investments in common stock for which a quoted market price is available.",
        "label": "Equity Method Investment, Quoted Market Value",
        "terseLabel": "Cash consideration"
       }
      }
     },
     "localname": "EquityMethodInvestmentQuotedMarketValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestments": {
     "auth_ref": [
      "r79",
      "r325",
      "r795"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_EquityMethodInvestmentAggregateCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents the carrying amount on the entity's balance sheet of its investment in common stock of an equity method investee. This is not an indicator of the fair value of the investment, rather it is the initial cost adjusted for the entity's share of earnings and losses of the investee, adjusted for any distributions (dividends) and other than temporary impairment (OTTI) losses recognized.",
        "label": "Equity Method Investments",
        "terseLabel": "Equity-method investment"
       }
      }
     },
     "localname": "EquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestmentsTextBlock": {
     "auth_ref": [
      "r82"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of equity method investments including, but not limited to, name of each investee or group of investments, percentage ownership, difference between recorded amount of an investment and the value of the underlying equity in the net assets, and summarized financial information.",
        "label": "Equity Method Investments [Table Text Block]",
        "terseLabel": "Summary of Initially Allocated Consideration"
       }
      }
     },
     "localname": "EquityMethodInvestmentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAdjustmentOfWarrants": {
     "auth_ref": [
      "r64",
      "r106"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 4.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense (income) related to adjustment to fair value of warrant liability.",
        "label": "Fair Value Adjustment of Warrants",
        "negatedLabel": "Change in the fair value of warrants",
        "terseLabel": "Change in the fair value of warrants"
       }
      }
     },
     "localname": "FairValueAdjustmentOfWarrants",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "auth_ref": [
      "r577",
      "r578",
      "r586"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis.",
        "label": "Fair Value, Recurring and Nonrecurring [Table]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r414",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r578",
      "r646",
      "r647",
      "r648",
      "r756",
      "r757",
      "r764",
      "r765",
      "r766"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient.",
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "terseLabel": "Fair Value Hierarchy and NAV"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r577",
      "r578",
      "r580",
      "r581",
      "r587"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Measurement Frequency [Axis]",
        "terseLabel": "Measurement Frequency"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r585"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities. Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information.",
        "label": "Fair Value Disclosures [Text Block]",
        "terseLabel": "Fair Value Measurements"
       }
      }
     },
     "localname": "FairValueDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r414",
      "r463",
      "r468",
      "r578",
      "r646",
      "r764",
      "r765",
      "r766"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date.",
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Level 1"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r414",
      "r463",
      "r468",
      "r578",
      "r647",
      "r756",
      "r757",
      "r764",
      "r765",
      "r766"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets.",
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Level 2"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r414",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r578",
      "r648",
      "r756",
      "r757",
      "r764",
      "r765",
      "r766"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Level 3"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisTextBlock": {
     "auth_ref": [
      "r177",
      "r178"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, by class that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3). Where the quoted price in an active market for the identical liability is not available, the Level 1 input is the quoted price of an identical liability when traded as an asset.",
        "label": "Fair Value, Liabilities Measured on Recurring Basis [Table Text Block]",
        "terseLabel": "Summary of Weighted Average Assumptions of Fair Value of Liabilities",
        "verboseLabel": "Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesTables",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable": {
     "auth_ref": [
      "r180",
      "r182"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of information required and determined to be provided for purposes of reconciling beginning and ending balances of fair value measurements of liabilities using significant unobservable inputs (level 3). Separately presenting changes during the period, attributable to: (1) total gains or losses for the period (realized and unrealized) and location reported in the statement of income (or activities); (2) purchases, sales, issuances, and settlements (net); (3) transfers in and/or out of Level 3.",
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table]"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "auth_ref": [
      "r180",
      "r182"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value measurement of liabilities using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets), and gains or losses recognized in other comprehensive income (loss) and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs) by class of liability.",
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "terseLabel": "Summary of Changes in Fair Value of Company's Level 3 Financial Instruments"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement frequency.",
        "label": "Measurement Frequency [Domain]",
        "terseLabel": "Measurement Frequency"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for fair value measurements of financial and non-financial assets, liabilities and instruments classified in shareholders' equity. Disclosures include, but are not limited to, how an entity that manages a group of financial assets and liabilities on the basis of its net exposure measures the fair value of those assets and liabilities.",
        "label": "Fair Value Measurement, Policy [Policy Text Block]",
        "terseLabel": "Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueMeasurementPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationLiabilityTransfersIntoLevel3": {
     "auth_ref": [
      "r584"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of financial instrument classified as a liability into level 3 of the fair value hierarchy.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Liability, Transfers Into Level 3",
        "terseLabel": "Liabilities, Transfer into Level 3"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationLiabilityTransfersIntoLevel3",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationLiabilityTransfersOutOfLevel3": {
     "auth_ref": [
      "r584"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of financial instrument classified as a liability out of level 3 of the fair value hierarchy.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Liability, Transfers out of Level 3",
        "terseLabel": "Liabilities, Transfer out of Level 3"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationLiabilityTransfersOutOfLevel3",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings": {
     "auth_ref": [
      "r582"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in income from liability measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings",
        "terseLabel": "Change in fair value"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInOtherComprehensiveIncome": {
     "auth_ref": [
      "r583"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in other comprehensive income (OCI) from liability measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Other Comprehensive Income (Loss)",
        "negatedLabel": "Foreign currency translation adjustment",
        "terseLabel": "Foreign currency translation gain/(loss)"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInOtherComprehensiveIncome",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements": {
     "auth_ref": [
      "r181"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of settlements of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Settlements",
        "negatedLabel": "Settlement",
        "terseLabel": "Settlement"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityTransfersNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Transfers, Net [Abstract]"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityTransfersNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue": {
     "auth_ref": [
      "r180"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability Value",
        "periodEndLabel": "Balance",
        "periodStartLabel": "Balance"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r414",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r646",
      "r647",
      "r648",
      "r756",
      "r757",
      "r764",
      "r765",
      "r766"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r585",
      "r587"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Frequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, frequently measured at fair value.",
        "label": "Fair Value, Recurring [Member]",
        "terseLabel": "Recurring"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueRecurringBasisUnobservableInputReconciliationLiabilityGainLossStatementOfIncomeExtensibleList": {
     "auth_ref": [
      "r582"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement in which net income is reported that includes gain (loss) from liability measured at fair value using unobservable input (level 3).",
        "label": "Fair Value, Liability, Recurring Basis, Unobservable Input Reconciliation, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]"
       }
      }
     },
     "localname": "FairValueRecurringBasisUnobservableInputReconciliationLiabilityGainLossStatementOfIncomeExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_FairValueRecurringBasisUnobservableInputReconciliationLiabilityGainLossStatementOfOtherComprehensiveIncomeExtensibleList": {
     "auth_ref": [
      "r583"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement in which other comprehensive income (OCI) is reported that includes gain (loss) from liability measured at fair value using unobservable input (level 3).",
        "label": "Fair Value, Liability, Recurring Basis, Unobservable Input Reconciliation, Liability, Gain (Loss), Statement of Other Comprehensive Income or Comprehensive Income [Extensible Enumeration]"
       }
      }
     },
     "localname": "FairValueRecurringBasisUnobservableInputReconciliationLiabilityGainLossStatementOfOtherComprehensiveIncomeExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable": {
     "auth_ref": [
      "r169",
      "r171",
      "r172"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule that discloses the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position.",
        "label": "Fair Values Derivatives, Balance Sheet Location, by Derivative Contract Type [Table]"
       }
      }
     },
     "localname": "FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilityAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfEarnoutLiabilityActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [
      "r352",
      "r353",
      "r367",
      "r368",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r374",
      "r425",
      "r444",
      "r563",
      "r643",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r650",
      "r651",
      "r652",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663",
      "r664",
      "r665",
      "r666",
      "r667",
      "r668",
      "r669",
      "r670",
      "r671",
      "r672",
      "r753",
      "r830",
      "r831",
      "r832",
      "r912",
      "r913",
      "r914",
      "r915",
      "r916",
      "r917",
      "r918"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of financial instrument.",
        "label": "Financial Instrument [Axis]",
        "terseLabel": "Financial Instrument"
       }
      }
     },
     "localname": "FinancialInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilityAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfEarnoutLiabilityActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialLiabilitiesFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial obligations, including, but not limited to, debt instruments, derivative liabilities, federal funds purchased and sold under agreements to repurchase, securities loaned or sold under agreements to repurchase, financial instruments sold not yet purchased, guarantees, line of credit, loans and notes payable, servicing liability, and trading liabilities.",
        "label": "Financial Liabilities Fair Value Disclosure",
        "terseLabel": "Earnout liability (See Note 14)",
        "totalLabel": "Financial Liabilities Fair Value Disclosure, Total"
       }
      }
     },
     "localname": "FinancialLiabilitiesFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ForeignCurrencyTransactionGainLossBeforeTax": {
     "auth_ref": [
      "r598",
      "r600",
      "r602",
      "r603"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 28.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax of foreign currency transaction realized and unrealized gain (loss) recognized in the income statement.",
        "label": "Foreign Currency Transaction Gain (Loss), before Tax",
        "negatedLabel": "Unrealized loss (gain) on foreign currency transactions",
        "totalLabel": "Foreign Currency Transaction Gain (Loss), before Tax, Total"
       }
      }
     },
     "localname": "ForeignCurrencyTransactionGainLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock": {
     "auth_ref": [
      "r613"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for (1) transactions denominated in a currency other than the reporting enterprise's functional currency, (2) translating foreign currency financial statements that are incorporated into the financial statements of the reporting enterprise by consolidation, combination, or the equity method of accounting, and (3) remeasurement of the financial statements of a foreign reporting enterprise in a hyperinflationary economy.",
        "label": "Foreign Currency Transactions and Translations Policy [Policy Text Block]",
        "terseLabel": "Foreign Currency Translation"
       }
      }
     },
     "localname": "ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_GeneralAndAdministrativeExpenseMember": {
     "auth_ref": [
      "r47"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing general and administrative expense.",
        "label": "General and Administrative Expense [Member]",
        "terseLabel": "General and Administrative",
        "verboseLabel": "General and Administrative Expense"
       }
      }
     },
     "localname": "GeneralAndAdministrativeExpenseMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GrantsReceivableCurrent": {
     "auth_ref": [
      "r797"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of amounts due under the terms of governmental, corporate, or foundation grants. For classified balance sheets, represents the current amount receivable, that is amounts expected to be collected within one year or the normal operating cycle, if longer.",
        "label": "Grants Receivable, Current",
        "terseLabel": "Grants receivable"
       }
      }
     },
     "localname": "GrantsReceivableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf": {
     "auth_ref": [
      "r64",
      "r92"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate amount of write-downs for impairments recognized during the period for long-lived assets held for abandonment, exchange or sale.",
        "label": "Impairment of Long-Lived Assets to be Disposed of",
        "terseLabel": "Impairment of long-lived assets"
       }
      }
     },
     "localname": "ImpairmentOfLongLivedAssetsToBeDisposedOf",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairmentOrDisposalOfLongLivedAssetsPolicyTextBlock": {
     "auth_ref": [
      "r90",
      "r97"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for recognizing and measuring the impairment of long-lived assets. An entity also may disclose its accounting policy for long-lived assets to be sold. This policy excludes goodwill and intangible assets.",
        "label": "Impairment or Disposal of Long-Lived Assets, Policy [Policy Text Block]",
        "terseLabel": "Impairment of Long-Lived Assets"
       }
      }
     },
     "localname": "ImpairmentOrDisposalOfLongLivedAssetsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeLossAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r49",
      "r805"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of income (loss) attributable to noncontrolling interest. Includes, but is not limited to, income (loss) from continuing operations, discontinued operations and equity method investments.",
        "label": "Income (Loss) Attributable to Noncontrolling Interest, before Tax",
        "terseLabel": "Income allocated to noncontrolling interest holder"
       }
      }
     },
     "localname": "IncomeLossAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfNoncontrollingInterestDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic": {
     "auth_ref": [
      "r271",
      "r542"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfLossIncomeBeforeIncomeTaxesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of earnings or loss from continuing operations before income taxes that is attributable to domestic operations.",
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Domestic",
        "terseLabel": "United States"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfLossIncomeBeforeIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "auth_ref": [
      "r45",
      "r193",
      "r202",
      "r217",
      "r324",
      "r333",
      "r337",
      "r339",
      "r698",
      "r752"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfLossIncomeBeforeIncomeTaxesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest.",
        "label": "(loss) income before income taxes",
        "totalLabel": "(loss) income before income taxes"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfLossIncomeBeforeIncomeTaxesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign": {
     "auth_ref": [
      "r271",
      "r542"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfLossIncomeBeforeIncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of earnings or loss from continuing operations before income taxes that is attributable to foreign operations, which is defined as Income or Loss generated from operations located outside the entity's country of domicile.",
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Foreign",
        "terseLabel": "Non-U.S."
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfLossIncomeBeforeIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "auth_ref": [
      "r380",
      "r381"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by location in the income statement.",
        "label": "Income Statement Location [Axis]",
        "terseLabel": "Income Statement Location"
       }
      }
     },
     "localname": "IncomeStatementLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "auth_ref": [
      "r381"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the income statement.",
        "label": "Income Statement Location [Domain]",
        "terseLabel": "Income Statement Location"
       }
      }
     },
     "localname": "IncomeStatementLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "localname": "IncomeTaxDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "auth_ref": [
      "r272",
      "r516",
      "r522",
      "r529",
      "r538",
      "r544",
      "r546",
      "r547",
      "r549"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for income taxes. Disclosures may include net deferred tax liability or asset recognized in an enterprise's statement of financial position, net change during the year in the total valuation allowance, approximate tax effect of each type of temporary difference and carryforward that gives rise to a significant portion of deferred tax liabilities and deferred tax assets, utilization of a tax carryback, and tax uncertainties information.",
        "label": "Income Tax Disclosure [Text Block]",
        "terseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxExaminationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Income Tax Examination [Line Items]"
       }
      }
     },
     "localname": "IncomeTaxExaminationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxExaminationTable": {
     "auth_ref": [
      "r147"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A summary of income tax examinations that an enterprise is currently subject to or that have been completed in the current period typically including a description of the examination, the jurisdiction conducting the examination, the tax year(s) under examination, the likelihood of an unfavorable settlement, the range of possible losses, the liability recorded, the Increase or Decrease in the liability from the prior period, and any penalties and interest that have been incurred or accrued.",
        "label": "Income Tax Examination [Table]"
       }
      }
     },
     "localname": "IncomeTaxExaminationTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r273",
      "r293",
      "r294",
      "r323",
      "r514",
      "r539",
      "r545",
      "r703"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 0.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Income Tax Expense (Benefit)",
        "terseLabel": "Provision for income taxes",
        "totalLabel": "Total provision for income taxes"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "auth_ref": [
      "r252",
      "r512",
      "r513",
      "r522",
      "r523",
      "r528",
      "r532"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for income taxes, which may include its accounting policies for recognizing and measuring deferred tax assets and liabilities and related valuation allowances, recognizing investment tax credits, operating loss carryforwards, tax credit carryforwards, and other carryforwards, methodologies for determining its effective income tax rate and the characterization of interest and penalties in the financial statements.",
        "label": "Income Tax, Policy [Policy Text Block]",
        "terseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxesReceivable": {
     "auth_ref": [
      "r200",
      "r215",
      "r797"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_PrepaidExpenseAndOtherAssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount due within one year of the balance sheet date (or one operating cycle, if longer) from tax authorities as of the balance sheet date representing refunds of overpayments or recoveries based on agreed-upon resolutions of disputes.",
        "label": "Income Taxes Receivable, Current",
        "terseLabel": "Income tax receivable"
       }
      }
     },
     "localname": "IncomeTaxesReceivable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsPayable": {
     "auth_ref": [
      "r63"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 15.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the aggregate amount of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business.",
        "label": "Increase (Decrease) in Accounts Payable",
        "terseLabel": "Accounts payable",
        "totalLabel": "Increase (Decrease) in Accounts Payable, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsPayable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsReceivable": {
     "auth_ref": [
      "r63"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 22.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in amount due within one year (or one business cycle) from customers for the credit sale of goods and services.",
        "label": "Increase (Decrease) in Accounts Receivable",
        "negatedLabel": "Account receivable"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsReceivable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities": {
     "auth_ref": [
      "r808"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in accrued expenses, and obligations classified as other.",
        "label": "Increase (Decrease) in Accrued Liabilities and Other Operating Liabilities",
        "terseLabel": "Accrued expenses and other current liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInContractWithCustomerLiability": {
     "auth_ref": [
      "r674",
      "r808"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 27.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in obligation to transfer good or service to customer for which consideration has been received or is receivable.",
        "label": "Increase (Decrease) in Contract with Customer, Liability",
        "terseLabel": "Deferred income"
       }
      }
     },
     "localname": "IncreaseDecreaseInContractWithCustomerLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInInventories": {
     "auth_ref": [
      "r63"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the aggregate value of all inventory held by the reporting entity, associated with underlying transactions that are classified as operating activities.",
        "label": "Increase (Decrease) in Inventories",
        "negatedLabel": "Inventories",
        "totalLabel": "Increase (Decrease) in Inventories, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInInventories",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOperatingCapitalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Operating Capital [Abstract]",
        "terseLabel": "Changes in operating assets and liabilities:"
       }
      }
     },
     "localname": "IncreaseDecreaseInOperatingCapitalAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncreaseDecreaseInOperatingLeaseLiability": {
     "auth_ref": [
      "r808",
      "r896"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in obligation for operating lease.",
        "label": "Increase (Decrease) in Operating Lease Liability",
        "terseLabel": "Operating lease liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInOperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in noncurrent operating liabilities classified as other.",
        "label": "Increase (Decrease) in Other Noncurrent Liabilities",
        "terseLabel": "Other long-term liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherNoncurrentLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "auth_ref": [
      "r63"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in operating assets classified as other.",
        "label": "Increase (Decrease) in Other Operating Assets",
        "negatedLabel": "Other assets",
        "totalLabel": "Increase (Decrease) in Other Operating Assets, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets": {
     "auth_ref": [
      "r63"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in prepaid expenses, and assets classified as other.",
        "label": "Increase (Decrease) in Prepaid Expense and Other Assets",
        "negatedLabel": "Prepaid expenses and other current assets",
        "totalLabel": "Increase (Decrease) in Prepaid Expense and Other Assets, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IntangibleAssetsFiniteLivedPolicy": {
     "auth_ref": [
      "r88",
      "r676",
      "r677",
      "r678",
      "r680",
      "r747"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for finite-lived intangible assets. This accounting policy also might address: (1) the amortization method used; (2) the useful lives of such assets; and (3) how the entity assesses and measures impairment of such assets.",
        "label": "Intangible Assets, Finite-Lived, Policy [Policy Text Block]",
        "terseLabel": "Intangible Assets"
       }
      }
     },
     "localname": "IntangibleAssetsFiniteLivedPolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IntangibleAssetsNetExcludingGoodwill": {
     "auth_ref": [
      "r85",
      "r87"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts of all intangible assets, excluding goodwill, as of the balance sheet date, net of accumulated amortization and impairment charges.",
        "label": "Intangible Assets, Net (Excluding Goodwill)",
        "terseLabel": "Intangible assets, net",
        "totalLabel": "Intangible Assets, Net (Excluding Goodwill), Total"
       }
      }
     },
     "localname": "IntangibleAssetsNetExcludingGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r187",
      "r204",
      "r256",
      "r322",
      "r616"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 5.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense.",
        "label": "Interest Expense",
        "negatedLabel": "Interest expense, net",
        "totalLabel": "Interest Expense, Total"
       }
      }
     },
     "localname": "InterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r261",
      "r265",
      "r266"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount.",
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "terseLabel": "Interest paid on notes payable"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateSwapMember": {
     "auth_ref": [
      "r776"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Forward based contracts in which two parties agree to swap periodic payments that are fixed at the outset of the swap contract with variable payments based on a market interest rate (index rate) over a specified period.",
        "label": "Interest Rate Swap [Member]",
        "terseLabel": "Interest Rate Swap Contract"
       }
      }
     },
     "localname": "InterestRateSwapMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InventoryAdjustments": {
     "auth_ref": [
      "r83",
      "r801"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_InventoryNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of inventory reserves for last-in first-out (LIFO) and other inventory valuation methods.",
        "label": "Inventory Adjustments",
        "negatedLabel": "Less: inventory reserves",
        "terseLabel": "Inventory reserves",
        "totalLabel": "Inventory Adjustments, Total"
       }
      }
     },
     "localname": "InventoryAdjustments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureInventoriesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory Disclosure [Abstract]"
       }
      }
     },
     "localname": "InventoryDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InventoryDisclosureTextBlock": {
     "auth_ref": [
      "r377"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for inventory. Includes, but is not limited to, the basis of stating inventory, the method of determining inventory cost, the classes of inventory, and the nature of the cost elements included in inventory.",
        "label": "Inventory Disclosure [Text Block]",
        "terseLabel": "Inventories"
       }
      }
     },
     "localname": "InventoryDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventories"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InventoryFinishedGoods": {
     "auth_ref": [
      "r798"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_InventoryGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before valuation and LIFO reserves of completed merchandise or goods expected to be sold within one year or operating cycle, if longer.",
        "label": "Inventory, Finished Goods, Gross",
        "terseLabel": "Finished goods",
        "verboseLabel": "Finished goods"
       }
      }
     },
     "localname": "InventoryFinishedGoods",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryGross": {
     "auth_ref": [
      "r801"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_InventoryNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross amount, as of the balance sheet date, of merchandise, goods, commodities, or supplies held for future sale or to be used in manufacturing, servicing or production process.",
        "label": "Inventory, Gross",
        "totalLabel": "Inventories gross"
       }
      }
     },
     "localname": "InventoryGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryLIFOReservePeriodCharge": {
     "auth_ref": [
      "r84"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 26.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The change in the inventory reserve representing the cumulative difference in cost between the first in, first out and the last in, first out inventory valuation methods, which change has been reflected in the statement of income during the period.",
        "label": "Inventory, LIFO Reserve, Period Charge",
        "terseLabel": "Increase in inventory reserves"
       }
      }
     },
     "localname": "InventoryLIFOReservePeriodCharge",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryNet": {
     "auth_ref": [
      "r243",
      "r741",
      "r778"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after valuation and LIFO reserves of inventory expected to be sold, or consumed within one year or operating cycle, if longer.",
        "label": "Inventory, Net",
        "terseLabel": "Inventories",
        "totalLabel": "Total inventories"
       }
      }
     },
     "localname": "InventoryNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryPolicyTextBlock": {
     "auth_ref": [
      "r231",
      "r242",
      "r312",
      "r375",
      "r376",
      "r377",
      "r675",
      "r748"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of inventory accounting policy for inventory classes, including, but not limited to, basis for determining inventory amounts, methods by which amounts are added and removed from inventory classes, loss recognition on impairment of inventories, and situations in which inventories are stated above cost.",
        "label": "Inventory, Policy [Policy Text Block]",
        "terseLabel": "Inventory"
       }
      }
     },
     "localname": "InventoryPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InventoryRawMaterials": {
     "auth_ref": [
      "r800"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_InventoryGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before valuation and LIFO reserves of raw materials expected to be sold, or consumed within one year or operating cycle, if longer.",
        "label": "Inventory, Raw Materials, Gross",
        "terseLabel": "Raw materials"
       }
      }
     },
     "localname": "InventoryRawMaterials",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryWorkInProcess": {
     "auth_ref": [
      "r799"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_InventoryGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before valuation and LIFO reserves of merchandise or goods in the production process expected to be completed within one year or operating cycle, if longer.",
        "label": "Inventory, Work in Process, Gross",
        "terseLabel": "Work in process"
       }
      }
     },
     "localname": "InventoryWorkInProcess",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentInterestRate": {
     "auth_ref": [
      "r828",
      "r829"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rate of interest on investment.",
        "label": "Investment Interest Rate",
        "terseLabel": "Investments interest rate"
       }
      }
     },
     "localname": "InvestmentInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_LandAndBuildingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Real estate held for productive use and structures used in the conduct of business, including but not limited to, office, production, storage and distribution facilities.",
        "label": "Land and Building [Member]",
        "terseLabel": "Land And Buildings"
       }
      }
     },
     "localname": "LandAndBuildingMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LandMember": {
     "auth_ref": [
      "r851"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Part of earth's surface not covered by water.",
        "label": "Land [Member]",
        "terseLabel": "Land"
       }
      }
     },
     "localname": "LandMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LeaseholdImprovementsMember": {
     "auth_ref": [
      "r94"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additions or improvements to assets held under a lease arrangement.",
        "label": "Leasehold Improvements [Member]",
        "terseLabel": "Leasehold Improvements"
       }
      }
     },
     "localname": "LeaseholdImprovementsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LesseeLeasesPolicyTextBlock": {
     "auth_ref": [
      "r625"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for leasing arrangement entered into by lessee.",
        "label": "Lessee, Leases [Policy Text Block]",
        "terseLabel": "Leases"
       }
      }
     },
     "localname": "LesseeLeasesPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "auth_ref": [
      "r897"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position.",
        "label": "Lessee, Operating Lease, Liability, Maturity [Table Text Block]",
        "terseLabel": "Schedule of Future Maturities of the Lease Liability Under the Company's Noncancelable Operating Leases"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "auth_ref": [
      "r627"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfTheLeaseLiabilityUnderTheCompanysNoncancelableOperatingLeasesDetails2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease.",
        "label": "Lessee, Operating Lease, Liability, to be Paid",
        "terseLabel": "Total lease payments",
        "totalLabel": "Total undiscounted lease maturities",
        "verboseLabel": "Operating lease payments"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive": {
     "auth_ref": [
      "r627"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease due after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, after Year Five",
        "terseLabel": "More than 5 years"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "auth_ref": [
      "r627"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year One",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive": {
     "auth_ref": [
      "r627"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Five",
        "terseLabel": "2027"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFive",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "auth_ref": [
      "r627"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Four",
        "terseLabel": "2026"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "auth_ref": [
      "r627"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Three",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "auth_ref": [
      "r627"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Two",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "auth_ref": [
      "r627"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfTheLeaseLiabilityUnderTheCompanysNoncancelableOperatingLeasesDetails2": {
       "order": 0.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for operating lease.",
        "label": "Lessee, Operating Lease, Liability, Undiscounted Excess Amount",
        "negatedLabel": "Imputed interest"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseRemainingLeaseTerm": {
     "auth_ref": [
      "r895"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Remaining lease term of operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Lessee, Operating Lease, Remaining Lease Term",
        "terseLabel": "Operating lease remaining lease terms"
       }
      }
     },
     "localname": "LesseeOperatingLeaseRemainingLeaseTerm",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r26",
      "r270",
      "r356",
      "r389",
      "r390",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r398",
      "r399",
      "r557",
      "r560",
      "r561",
      "r588",
      "r751",
      "r844",
      "r902",
      "r903"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future.",
        "label": "Liabilities",
        "totalLabel": "Total liabilities"
       }
      }
     },
     "localname": "Liabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r16",
      "r199",
      "r212",
      "r778",
      "r812",
      "r833",
      "r893"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
        "label": "Liabilities and Equity",
        "totalLabel": "Total liabilities, noncontrolling interest, redeemable convertible preferred stock and stockholders' deficit"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Equity [Abstract]",
        "terseLabel": "LIABILITIES, REDEEMABLE CONVERTIBLE PREFERRED STOCK AND STOCKHOLDERS\u2019 DEFICIT"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesCurrent": {
     "auth_ref": [
      "r28",
      "r230",
      "r270",
      "r356",
      "r389",
      "r390",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r398",
      "r399",
      "r557",
      "r560",
      "r561",
      "r588",
      "r778",
      "r844",
      "r902",
      "r903"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total obligations incurred as part of normal operations that are expected to be paid during the following twelve months or within one business cycle, if longer.",
        "label": "Liabilities, Current",
        "totalLabel": "Total current liabilities"
       }
      }
     },
     "localname": "LiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Current [Abstract]",
        "terseLabel": "Current liabilities:"
       }
      }
     },
     "localname": "LiabilitiesCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesFairValueDisclosure": {
     "auth_ref": [
      "r177"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial and nonfinancial obligations.",
        "label": "Liabilities, Fair Value Disclosure",
        "terseLabel": "Total liabilities measured at fair value",
        "totalLabel": "Liabilities, Fair Value Disclosure, Total"
       }
      }
     },
     "localname": "LiabilitiesFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Fair Value Disclosure [Abstract]",
        "terseLabel": "Liabilities"
       }
      }
     },
     "localname": "LiabilitiesFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LicenseMember": {
     "auth_ref": [
      "r851"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Right to use intangible asset. Intangible asset includes, but is not limited to, patent, copyright, technology, manufacturing process, software or trademark.",
        "label": "License [Member]",
        "terseLabel": "Licensing Revenue, Net",
        "verboseLabel": "Licensing Revenue"
       }
      }
     },
     "localname": "LicenseMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LongTermDebt": {
     "auth_ref": [
      "r5",
      "r198",
      "r210",
      "r413",
      "r429",
      "r756",
      "r757"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, excluding unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation.",
        "label": "Long term debt",
        "terseLabel": "Principal amount",
        "totalLabel": "Total debt obligation carrying amount",
        "verboseLabel": "Total debt obligation carrying amount"
       }
      }
     },
     "localname": "LongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtCurrent": {
     "auth_ref": [
      "r24"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails2": {
       "order": 0.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt, classified as current. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations.",
        "label": "Long-Term Debt, Current Maturities",
        "terseLabel": "Current portion",
        "totalLabel": "Long-term Debt, Current Maturities, Total"
       }
      }
     },
     "localname": "LongTermDebtCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive": {
     "auth_ref": [
      "r102",
      "r276",
      "r848"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DebtInstrumentCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, after Year Five",
        "terseLabel": "More than 5 years"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths": {
     "auth_ref": [
      "r102",
      "r276",
      "r418"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_DebtInstrumentCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year One",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive": {
     "auth_ref": [
      "r102",
      "r276",
      "r418"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtInstrumentCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year Five",
        "terseLabel": "2027"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour": {
     "auth_ref": [
      "r102",
      "r276",
      "r418"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtInstrumentCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year Four",
        "terseLabel": "2026"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree": {
     "auth_ref": [
      "r102",
      "r276",
      "r418"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DebtInstrumentCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year Three",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo": {
     "auth_ref": [
      "r102",
      "r276",
      "r418"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_DebtInstrumentCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year Two",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfFutureMaturitiesToDebtOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt arrangement having an initial term longer than one year or beyond the normal operating cycle, if longer.",
        "label": "Long-Term Debt [Member]",
        "terseLabel": "Convertible Promissory Notes"
       }
      }
     },
     "localname": "LongTermDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LongTermDebtNoncurrent": {
     "auth_ref": [
      "r237"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails2": {
       "order": 1.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, excluding unamortized premium (discount) and debt issuance cost, of long-term debt classified as noncurrent. Excludes lease obligation.",
        "label": "Long-Term Debt, Excluding Current Maturities",
        "terseLabel": "Long-term portion",
        "totalLabel": "Long-term Debt, Excluding Current Maturities, Total"
       }
      }
     },
     "localname": "LongTermDebtNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtTerm": {
     "auth_ref": [
      "r892"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period between issuance and maturity of long-term debt, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Long-Term Debt, Term",
        "terseLabel": "Long term debt term"
       }
      }
     },
     "localname": "LongTermDebtTerm",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LongTermNotesPayable": {
     "auth_ref": [
      "r30"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of notes payable (with maturities initially due after one year or beyond the operating cycle if longer), excluding current portion.",
        "label": "Notes Payable, Noncurrent",
        "terseLabel": "Notes payable, including due to related party of $13,659 and $16,523, respectively",
        "totalLabel": "Notes Payable, Noncurrent, Total"
       }
      }
     },
     "localname": "LongTermNotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "auth_ref": [
      "r30"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of long-term debt.",
        "label": "Long-Term Debt, Type [Axis]",
        "terseLabel": "Long-term Debt, Type"
       }
      }
     },
     "localname": "LongtermDebtTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "auth_ref": [
      "r30",
      "r103"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of long-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Long-Term Debt, Type [Domain]",
        "terseLabel": "Long-term Debt, Type"
       }
      }
     },
     "localname": "LongtermDebtTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfNonconvertibleDebtOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LossContingenciesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Loss Contingencies [Line Items]",
        "terseLabel": "Loss Contingencies [Line Items]"
       }
      }
     },
     "localname": "LossContingenciesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LossContingenciesTable": {
     "auth_ref": [
      "r100",
      "r101",
      "r384",
      "r385",
      "r386",
      "r838",
      "r839"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discloses the specific components (such as the nature, name, and date) of the loss contingency and gives an estimate of the possible loss or range of loss, or states that a reasonable estimate cannot be made. Excludes environmental contingencies, warranties and unconditional purchase obligations.",
        "label": "Loss Contingencies [Table]",
        "terseLabel": "Loss Contingencies [Table]"
       }
      }
     },
     "localname": "LossContingenciesTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MarketableSecuritiesGainLoss": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized and realized gain (loss) on investment in marketable security, including other-than-temporary impairment (OTTI).",
        "label": "Marketable Securities, Gain (Loss)",
        "negatedLabel": "Accretion on marketable securities",
        "totalLabel": "Marketable Securities, Gain (Loss), Total"
       }
      }
     },
     "localname": "MarketableSecuritiesGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MeasurementInputExercisePriceMember": {
     "auth_ref": [
      "r891"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using agreed upon price for exchange of underlying asset.",
        "label": "Measurement Input, Exercise Price [Member]",
        "terseLabel": "Exercise Price of Warrants",
        "verboseLabel": "Exercise Price of Call Option"
       }
      }
     },
     "localname": "MeasurementInputExercisePriceMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputExpectedDividendRateMember": {
     "auth_ref": [
      "r891"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using expected dividend rate to be paid to holder of share per year.",
        "label": "Measurement Input, Expected Dividend Rate [Member]",
        "terseLabel": "Expected Dividend Yield"
       }
      }
     },
     "localname": "MeasurementInputExpectedDividendRateMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputMaturityMember": {
     "auth_ref": [
      "r891"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using due date of last payment of principal and interest for financial instrument. Excludes expected term.",
        "label": "Measurement Input, Maturity [Member]",
        "terseLabel": "Expected Term"
       }
      }
     },
     "localname": "MeasurementInputMaturityMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputPriceVolatilityMember": {
     "auth_ref": [
      "r891"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using rate at which price of security will increase (decrease) for given set of returns.",
        "label": "Measurement Input, Price Volatility [Member]",
        "terseLabel": "Expected Volatility"
       }
      }
     },
     "localname": "MeasurementInputPriceVolatilityMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputRiskFreeInterestRateMember": {
     "auth_ref": [
      "r891"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using interest rate on instrument with zero risk of financial loss.",
        "label": "Measurement Input, Risk Free Interest Rate [Member]",
        "terseLabel": "Risk Free Interest Rate"
       }
      }
     },
     "localname": "MeasurementInputRiskFreeInterestRateMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputTypeAxis": {
     "auth_ref": [
      "r579"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of measurement input used to determine value of asset and liability.",
        "label": "Measurement Input Type [Axis]",
        "terseLabel": "Measurement Input Type"
       }
      }
     },
     "localname": "MeasurementInputTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MeasurementInputTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input used to determine value of asset and liability.",
        "label": "Measurement Input Type [Domain]",
        "terseLabel": "Measurement Input Type"
       }
      }
     },
     "localname": "MeasurementInputTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r264"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit.",
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "totalLabel": "Net cash provided by financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]",
        "terseLabel": "Cash flows from financing activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r264"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets.",
        "label": "Net Cash Provided by (Used in) Investing Activities",
        "totalLabel": "Net cash (used in) provided by investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities [Abstract]",
        "terseLabel": "Cash flows from investing activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r60",
      "r62",
      "r65"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "totalLabel": "Net cash used in operating activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Cash flows from operating activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r46",
      "r65",
      "r203",
      "r216",
      "r228",
      "r247",
      "r250",
      "r255",
      "r270",
      "r281",
      "r285",
      "r286",
      "r288",
      "r289",
      "r293",
      "r294",
      "r302",
      "r324",
      "r333",
      "r337",
      "r339",
      "r356",
      "r389",
      "r390",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r398",
      "r399",
      "r575",
      "r588",
      "r752",
      "r844"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 4.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent.",
        "label": "Net Income (Loss) Attributable to Parent",
        "terseLabel": "Net loss",
        "totalLabel": "Net loss"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLoss",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss) Attributable to Parent [Abstract]",
        "terseLabel": "Numerator:"
       }
      }
     },
     "localname": "NetIncomeLossAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLossAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r163",
      "r168",
      "r247",
      "r250",
      "r293",
      "r294",
      "r805"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Net Income (Loss) attributable to noncontrolling interest.",
        "label": "Net Income (Loss) Attributable to Noncontrolling Interest",
        "negatedLabel": "Income allocated to noncontrolling interest holder",
        "terseLabel": "Income allocated to noncontrolling interest holder",
        "totalLabel": "Net Income (Loss) Attributable to Noncontrolling Interest, Total"
       }
      }
     },
     "localname": "NetIncomeLossAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAttributableToRedeemableNoncontrollingInterest": {
     "auth_ref": [
      "r49"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Net Income (Loss) attributable to redeemable noncontrolling interest.",
        "label": "Net Income (Loss) Attributable to Redeemable Noncontrolling Interest",
        "terseLabel": "Temporary Equity, Income allocated to noncontrolling interest holder",
        "totalLabel": "Temporary Equity, Income allocated to noncontrolling interest holder"
       }
      }
     },
     "localname": "NetIncomeLossAttributableToRedeemableNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic": {
     "auth_ref": [
      "r285",
      "r286",
      "r288",
      "r289",
      "r297",
      "r298",
      "r303",
      "r306",
      "r324",
      "r333",
      "r337",
      "r339",
      "r752"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities; of income (loss) available to common shareholders.",
        "label": "Net Income (Loss) Available to Common Stockholders, Basic",
        "totalLabel": "Net loss attributable to common stockholders"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersBasic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossIncludingPortionAttributableToNonredeemableNoncontrollingInterest": {
     "auth_ref": [
      "r113",
      "r163",
      "r164"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after income tax of income (loss) including the portion attributable to nonredeemable noncontrolling interest. Excludes the portion attributable to redeemable noncontrolling interest recognized as temporary equity.",
        "label": "Net Income (Loss), Including Portion Attributable to Nonredeemable Noncontrolling Interest",
        "terseLabel": "Income allocated to noncontrolling interest holder",
        "totalLabel": "Income allocated to noncontrolling interest holder"
       }
      }
     },
     "localname": "NetIncomeLossIncludingPortionAttributableToNonredeemableNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact.",
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "terseLabel": "Effect of Recently Issued Pronouncements"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NoncashInvestingAndFinancingItemsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncash Investing and Financing Items [Abstract]",
        "terseLabel": "Noncash investing and financing activities:"
       }
      }
     },
     "localname": "NoncashInvestingAndFinancingItemsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoncontrollingInterestMember": {
     "auth_ref": [
      "r159",
      "r448",
      "r815",
      "r816",
      "r817"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents that portion of equity (net assets) in a subsidiary not attributable, directly or indirectly, to the parent. A noncontrolling interest is sometimes called a minority interest.",
        "label": "Noncontrolling Interest [Member]",
        "terseLabel": "Noncontrolling Interest"
       }
      }
     },
     "localname": "NoncontrollingInterestMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NotesPayableCurrent": {
     "auth_ref": [
      "r24"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying values as of the balance sheet date of the portions of long-term notes payable due within one year or the operating cycle if longer.",
        "label": "Notes Payable, Current",
        "terseLabel": "Notes payable, including due to related party of $2,007 and $0, respectively",
        "totalLabel": "Notes Payable, Current, Total"
       }
      }
     },
     "localname": "NotesPayableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NotesPayableFairValueDisclosure": {
     "auth_ref": [
      "r25"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of notes payable.",
        "label": "Notes Payable, Fair Value Disclosure",
        "terseLabel": "Convertible promissory notes (see Note 12)",
        "verboseLabel": "Fair value of promissory notes"
       }
      }
     },
     "localname": "NotesPayableFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NotesPayableRelatedPartiesClassifiedCurrent": {
     "auth_ref": [
      "r21",
      "r191",
      "r814"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount for notes payable (written promise to pay), due to related parties. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Notes Payable, Related Parties, Current",
        "terseLabel": "Notes payable",
        "verboseLabel": "Notes payable, due to related party current"
       }
      }
     },
     "localname": "NotesPayableRelatedPartiesClassifiedCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NotesPayableRelatedPartiesNoncurrent": {
     "auth_ref": [
      "r31",
      "r190",
      "r814"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount for notes payable (written promise to pay), payable to related parties, which are due after one year (or one business cycle).",
        "label": "Notes Payable, Related Parties, Noncurrent",
        "terseLabel": "Notes payable, due to related party noncurrent"
       }
      }
     },
     "localname": "NotesPayableRelatedPartiesNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NumberOfOperatingSegments": {
     "auth_ref": [
      "r826"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of operating segments. An operating segment is a component of an enterprise: (a) that engages in business activities from which it may earn revenues and incur expenses (including revenues and expenses relating to transactions with other components of the same enterprise), (b) whose operating results are regularly reviewed by the enterprise's chief operating decision maker to make decisions about resources to be allocated to the segment and assess its performance, and (c) for which discrete financial information is available. An operating segment may engage in business activities for which it has yet to earn revenues, for example, start-up operations may be operating segments before earning revenues.",
        "label": "Number of Operating Segments",
        "terseLabel": "Number operating segment"
       }
      }
     },
     "localname": "NumberOfOperatingSegments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_OperatingIncomeLoss": {
     "auth_ref": [
      "r324",
      "r333",
      "r337",
      "r339",
      "r752"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net result for the period of deducting operating expenses from operating revenues.",
        "label": "Operating Income (Loss)",
        "totalLabel": "Loss from operations"
       }
      }
     },
     "localname": "OperatingIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseExpense": {
     "auth_ref": [
      "r894"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating lease expense. Excludes sublease income.",
        "label": "Operating lease rental expense",
        "terseLabel": "Operating lease expense",
        "verboseLabel": "Lease liabilities, net of current portion"
       }
      }
     },
     "localname": "OperatingLeaseExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfOperatingLeaseActivityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiability": {
     "auth_ref": [
      "r624"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfTheLeaseLiabilityUnderTheCompanysNoncancelableOperatingLeasesDetails2": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfOperatingLeaseActivityDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease.",
        "label": "Operating Lease, Liability",
        "terseLabel": "Total lease liability",
        "totalLabel": "Total operating lease liabilities"
       }
      }
     },
     "localname": "OperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfOperatingLeaseActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesScheduleOfFutureMaturitiesOfLeaseLiabilityUnderCompanySNoncancelableOperatingLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilityCurrent": {
     "auth_ref": [
      "r624"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfOperatingLeaseActivityDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_OperatingLeaseLiability",
       "weight": 1.0
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease, classified as current.",
        "label": "Lease liabilities, current",
        "terseLabel": "Operating lease liabilities",
        "verboseLabel": "Short-term lease liabilities"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfOperatingLeaseActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilityNoncurrent": {
     "auth_ref": [
      "r624"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfOperatingLeaseActivityDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_OperatingLeaseLiability",
       "weight": 1.0
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease, classified as noncurrent.",
        "label": "Lease liabilities, net of current portion",
        "terseLabel": "Operating lease liabilities",
        "verboseLabel": "Long-term lease liabilities"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfOperatingLeaseActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "auth_ref": [
      "r623"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's right to use underlying asset under operating lease.",
        "label": "Operating Lease, Right-of-Use Asset",
        "terseLabel": "Operating lease right-of-use assets",
        "verboseLabel": "Total operating lease liabilities"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense": {
     "auth_ref": [
      "r809"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 17.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of amortization expense for right-of-use asset from operating lease.",
        "label": "Operating Lease, Right-of-Use Asset, Amortization Expense",
        "terseLabel": "Reduction in carrying amount of right-of-use assets"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAssetAmortizationExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "auth_ref": [
      "r626",
      "r777"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average discount rate for operating lease calculated at point in time.",
        "label": "Operating lease weighted average discount rate, percent"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageDiscountRatePercent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_OperatingLossCarryforwards": {
     "auth_ref": [
      "r149"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws.",
        "label": "Operating Loss Carryforwards"
       }
      }
     },
     "localname": "OperatingLossCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OptionIndexedToIssuersEquityTypeAxis": {
     "auth_ref": [
      "r108",
      "r173",
      "r174",
      "r175"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of freestanding contracts issued by an entity that are indexed to, and potentially settled in, an entity's own stock.",
        "label": "Option Indexed to Issuer's Equity, Type [Axis]"
       }
      }
     },
     "localname": "OptionIndexedToIssuersEquityTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OptionIndexedToIssuersEquityTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of the type of freestanding contract issued by a Company that is indexed to, and potentially settled in, a Company's own stock. Specifically, the pertinent rights and privileges of the securities outstanding.",
        "label": "Option Indexed to Issuer's Equity, Type [Domain]"
       }
      }
     },
     "localname": "OptionIndexedToIssuersEquityTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherAssetsMember": {
     "auth_ref": [
      "r169",
      "r172"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other assets.",
        "label": "Other Assets [Member]",
        "terseLabel": "Other Assets"
       }
      }
     },
     "localname": "OtherAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherAssetsNoncurrent": {
     "auth_ref": [
      "r235"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncurrent assets classified as other.",
        "label": "Other Assets, Noncurrent",
        "terseLabel": "Other assets",
        "totalLabel": "Other Assets, Noncurrent, Total"
       }
      }
     },
     "localname": "OtherAssetsNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r161",
      "r162",
      "r165"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax and reclassification adjustments of gain (loss) on foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature, attributable to noncontrolling interests.",
        "label": "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax, Portion Attributable to Noncontrolling Interest",
        "terseLabel": "Foreign currency translation loss",
        "verboseLabel": "Foreign currency translation gain"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax": {
     "auth_ref": [
      "r39",
      "r41",
      "r599",
      "r601",
      "r605"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax, before reclassification adjustments of gain (loss) on foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature.",
        "label": "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Gain (Loss) Arising During Period, Net of Tax",
        "negatedLabel": "Foreign currency translation adjustment",
        "terseLabel": "Foreign currency translation adjustment"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax": {
     "auth_ref": [
      "r38"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax and reclassification adjustments of gain (loss) on foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature.",
        "label": "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax",
        "terseLabel": "Foreign currency translation adjustment",
        "totalLabel": "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax, Total"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r161",
      "r162",
      "r165",
      "r248",
      "r251"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLoss": {
       "order": 1.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of other comprehensive income (loss) attributable to parent entity.",
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent",
        "totalLabel": "Total other comprehensive loss"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent [Abstract]",
        "terseLabel": "Other comprehensive loss:"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLoss"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherLiabilitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities Disclosure [Abstract]"
       }
      }
     },
     "localname": "OtherLiabilitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherLiabilitiesNoncurrent": {
     "auth_ref": [
      "r32"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 7.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities classified as other, due after one year or the normal operating cycle, if longer.",
        "label": "Other Liabilities, Noncurrent",
        "terseLabel": "Other long-term liabilities, including due to related party of $674 and $2,416, respectively",
        "totalLabel": "Total other long-term liabilities",
        "verboseLabel": "Other long-term liabilities"
       }
      }
     },
     "localname": "OtherLiabilitiesNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilitiesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherNoncashIncomeExpense": {
     "auth_ref": [
      "r65"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 24.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (expense) included in net income that results in no cash inflow (outflow), classified as other.",
        "label": "Other Noncash Income (Expense)",
        "negatedLabel": "Non-cash interest expense",
        "totalLabel": "Other Noncash Income (Expense), Total"
       }
      }
     },
     "localname": "OtherNoncashIncomeExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherNoncurrentLiabilitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other noncurrent liabilities.",
        "label": "Other Noncurrent Liabilities [Member]",
        "terseLabel": "Other Long-Term Liabilities"
       }
      }
     },
     "localname": "OtherNoncurrentLiabilitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherNoncurrentLiabilitiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of other noncurrent liabilities.",
        "label": "Other Noncurrent Liabilities [Table Text Block]",
        "terseLabel": "Other Long-Term Liabilities"
       }
      }
     },
     "localname": "OtherNoncurrentLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureOtherLongTermLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherNonoperatingIncome": {
     "auth_ref": [
      "r259"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income related to nonoperating activities, classified as other.",
        "label": "Other Nonoperating Income",
        "terseLabel": "Other income",
        "verboseLabel": "Grant Income"
       }
      }
     },
     "localname": "OtherNonoperatingIncome",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherNonoperatingIncomeExpense": {
     "auth_ref": [
      "r53"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 6.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (expense) related to nonoperating activities, classified as other.",
        "label": "Other Nonoperating Income (Expense)",
        "terseLabel": "Other income, net",
        "totalLabel": "Other Nonoperating Income (Expense), Total"
       }
      }
     },
     "localname": "OtherNonoperatingIncomeExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PayablesAndAccrualsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payables and Accruals [Abstract]"
       }
      }
     },
     "localname": "PayablesAndAccrualsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_PaymentsOfDebtIssuanceCosts": {
     "auth_ref": [
      "r59"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow paid to third parties in connection with debt origination, which will be amortized over the remaining maturity period of the associated long-term debt.",
        "label": "Payments of Debt Issuance Costs",
        "terseLabel": "Proceeds form issuance of promissory notes(net of issuance costs of $0 and $30, respectively)",
        "verboseLabel": "Payment of issuance costs"
       }
      }
     },
     "localname": "PaymentsOfDebtIssuanceCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireEquitySecuritiesFvNi": {
     "auth_ref": [
      "r262",
      "r354"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow to acquire investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI), classified as investing activity.",
        "label": "Payments to Acquire Equity Securities, FV-NI",
        "terseLabel": "Payments related to acquisition"
       }
      }
     },
     "localname": "PaymentsToAcquireEquitySecuritiesFvNi",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "auth_ref": [
      "r55"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets.",
        "label": "Payments to Acquire Property, Plant, and Equipment",
        "negatedLabel": "Purchases of property and equipment",
        "totalLabel": "Payments to Acquire Property, Plant, and Equipment, Total"
       }
      }
     },
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PlanNameAxis": {
     "auth_ref": [
      "r853",
      "r854",
      "r855",
      "r856",
      "r857",
      "r858",
      "r859",
      "r860",
      "r861",
      "r862",
      "r863",
      "r864",
      "r865",
      "r866",
      "r867",
      "r868",
      "r869",
      "r870",
      "r871",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876",
      "r877",
      "r878"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by plan name for share-based payment arrangement.",
        "label": "Plan Name [Axis]",
        "terseLabel": "Plan Name"
       }
      }
     },
     "localname": "PlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PlanNameDomain": {
     "auth_ref": [
      "r853",
      "r854",
      "r855",
      "r856",
      "r857",
      "r858",
      "r859",
      "r860",
      "r861",
      "r862",
      "r863",
      "r864",
      "r865",
      "r866",
      "r867",
      "r868",
      "r869",
      "r870",
      "r871",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876",
      "r877",
      "r878"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan name for share-based payment arrangement.",
        "label": "Plan Name [Domain]",
        "terseLabel": "Plan Name"
       }
      }
     },
     "localname": "PlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PreferredStockConvertibleConversionRatio": {
     "auth_ref": [
      "r432"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of common shares issuable upon conversion for each share of preferred stock to be converted.",
        "label": "Preferred Stock, Convertible, Conversion Ratio",
        "terseLabel": "Convertible preferred stock exchange ratio"
       }
      }
     },
     "localname": "PreferredStockConvertibleConversionRatio",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_PreferredStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r10",
      "r430"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face amount or stated value per share of preferred stock nonredeemable or redeemable solely at the option of the issuer.",
        "label": "Preferred Stock, Par or Stated Value Per Share",
        "terseLabel": "Preferred stock, par value"
       }
      }
     },
     "localname": "PreferredStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockSharesAuthorized": {
     "auth_ref": [
      "r10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws.",
        "label": "Preferred Stock, Shares Authorized",
        "terseLabel": "Preferred stock, shares authorized"
       }
      }
     },
     "localname": "PreferredStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockSharesIssued": {
     "auth_ref": [
      "r10",
      "r430"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) issued to shareholders (includes related preferred shares that were issued, repurchased, and remain in the treasury). May be all or portion of the number of preferred shares authorized. Excludes preferred shares that are classified as debt.",
        "label": "Preferred Stock, Shares Issued",
        "terseLabel": "Preferred stock, shares issued",
        "totalLabel": "Preferred Stock, Shares Issued, Total"
       }
      }
     },
     "localname": "PreferredStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockSharesOutstanding": {
     "auth_ref": [
      "r10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate share number for all nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) held by stockholders. Does not include preferred shares that have been repurchased.",
        "label": "Preferred Stock, Shares Outstanding",
        "periodEndLabel": "Preferred Stock, Shares Outstanding, Ending Balance",
        "periodStartLabel": "Preferred Stock, Shares Outstanding, Beginning Balance",
        "terseLabel": "Preferred stock, shares outstanding"
       }
      }
     },
     "localname": "PreferredStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockValue": {
     "auth_ref": [
      "r10",
      "r778"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable preferred shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Preferred Stock, Value, Issued",
        "periodEndLabel": "Preferred Stock, Value, Issued, Ending Balance",
        "periodStartLabel": "Preferred Stock, Value, Issued, Beginning Balance",
        "terseLabel": "Preferred stock, $0.0001 par value - 250,000,000 shares authorized at December 31, 2022; zero shares issued and outstanding at December 31, 2022 and December 31, 2021",
        "totalLabel": "Preferred Stock, Value, Issued, Total"
       }
      }
     },
     "localname": "PreferredStockValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrepaidExpenseAndOtherAssetsCurrent": {
     "auth_ref": [
      "r802"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset related to consideration paid in advance for costs that provide economic benefits in future periods, and amount of other assets that are expected to be realized or consumed within one year or the normal operating cycle, if longer.",
        "label": "Prepaid Expense and Other Assets, Current",
        "terseLabel": "Prepaid expenses and other current assets",
        "totalLabel": "Prepaid expenses and other current assets"
       }
      }
     },
     "localname": "PrepaidExpenseAndOtherAssetsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrepaidExpenseCurrent": {
     "auth_ref": [
      "r244",
      "r378",
      "r379",
      "r742"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_PrepaidExpenseAndOtherAssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset related to consideration paid in advance for costs that provide economic benefits within a future period of one year or the normal operating cycle, if longer.",
        "label": "Prepaid Expense, Current",
        "terseLabel": "Prepaid expenses",
        "totalLabel": "Prepaid Expense, Current, Total"
       }
      }
     },
     "localname": "PrepaidExpenseCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrepaidInsurance": {
     "auth_ref": [
      "r743",
      "r754",
      "r836"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_PrepaidExpenseAndOtherAssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset related to consideration paid in advance for insurance that provides economic benefits within a future period of one year or the normal operating cycle, if longer.",
        "label": "Prepaid Insurance",
        "terseLabel": "Prepaid Insurance"
       }
      }
     },
     "localname": "PrepaidInsurance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrivatePlacementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A private placement is a direct offering of securities to a limited number of sophisticated investors such as insurance companies, pension funds, mezzanine funds, stock funds and trusts.",
        "label": "Private Placement [Member]",
        "terseLabel": "Private Placement"
       }
      }
     },
     "localname": "PrivatePlacementMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWarrantsOutstandingDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProceedsFromConvertibleDebt": {
     "auth_ref": [
      "r57"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from the issuance of a long-term debt instrument which can be exchanged for a specified amount of another security, typically the entity's common stock, at the option of the issuer or the holder.",
        "label": "Proceeds from Convertible Debt",
        "terseLabel": "Proceeds from convertible promissory notes due to related parties, held at fair value",
        "verboseLabel": "Proceeds from convertible promissory notes"
       }
      }
     },
     "localname": "ProceedsFromConvertibleDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromDebtNetOfIssuanceCosts": {
     "auth_ref": [
      "r260"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from additional borrowings, net of cash paid to third parties in connection with debt origination.",
        "label": "Proceeds from Debt, Net of Issuance Costs",
        "terseLabel": "Proceeds from issuance of promissory notes (net of issuance costs of $0 and $207, respectively)"
       }
      }
     },
     "localname": "ProceedsFromDebtNetOfIssuanceCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromGrantors": {
     "auth_ref": [
      "r61"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash received from grantors during the current period related to operating activities. This element represents receipts from a guarantor for the amount of guarantee provided.",
        "label": "Proceeds from Grantors",
        "terseLabel": "Grant proceeds collected",
        "verboseLabel": "Proceeds"
       }
      }
     },
     "localname": "ProceedsFromGrantors",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "auth_ref": [
      "r56"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from the additional capital contribution to the entity.",
        "label": "Proceeds from Issuance of Common Stock",
        "terseLabel": "Proceeds from sales of common stock, net of issuance costs",
        "verboseLabel": "Aggregate purchase price"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfDebt": {
     "auth_ref": [
      "r807"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow during the period from additional borrowings in aggregate debt. Includes proceeds from short-term and long-term debt.",
        "label": "Proceeds from Issuance of Debt",
        "terseLabel": "Aggregate cash purchase price"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans": {
     "auth_ref": [
      "r56",
      "r140"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from issuance of shares under share-based payment arrangement. Excludes option exercised.",
        "label": "Proceeds, Issuance of Shares, Share-Based Payment Arrangement, Excluding Option Exercised",
        "terseLabel": "Proceeds from exercise of share-based awards",
        "verboseLabel": "Issuance of common stock upon exercise of stock options"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOrSaleOfEquity": {
     "auth_ref": [
      "r56"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from the issuance of common stock, preferred stock, treasury stock, stock options, and other types of equity.",
        "label": "Proceeds from Issuance or Sale of Equity",
        "terseLabel": "Proceeds from sale of equity investment",
        "totalLabel": "Proceeds from Issuance or Sale of Equity, Total"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOrSaleOfEquity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the aggregate amount received by the entity through sale or maturity of marketable securities (held-to-maturity or available-for-sale) during the period.",
        "label": "Proceeds from Sale and Maturity of Marketable Securities",
        "terseLabel": "Maturities of marketable securities",
        "totalLabel": "Proceeds from Sale and Maturity of Marketable Securities, Total"
       }
      }
     },
     "localname": "ProceedsFromSaleAndMaturityOfMarketableSecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfEquityMethodInvestments": {
     "auth_ref": [
      "r54"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the sale of equity method investments, which are investments in joint ventures and entities in which the entity has an equity ownership interest normally of 20 to 50 percent and exercises significant influence.",
        "label": "Proceeds from Sale of Equity Method Investments",
        "terseLabel": "Proceeds from RIF"
       }
      }
     },
     "localname": "ProceedsFromSaleOfEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromWarrantExercises": {
     "auth_ref": [
      "r806"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the amount received from holders exercising their stock warrants.",
        "label": "Proceeds from Warrant Exercises",
        "terseLabel": "Proceeds from the exercise of warrants"
       }
      }
     },
     "localname": "ProceedsFromWarrantExercises",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProductInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Product Information [Line Items]",
        "terseLabel": "Product Information [Line Items]"
       }
      }
     },
     "localname": "ProductInformationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfActivityInProductRevenueReserveAndAllowanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfRevenueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ProductMember": {
     "auth_ref": [
      "r762"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Article or substance produced by nature, labor or machinery.",
        "label": "Product [Member]",
        "terseLabel": "Product Revenue, Net"
       }
      }
     },
     "localname": "ProductMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfActivityInProductRevenueReserveAndAllowanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfRevenueDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProfitLoss": {
     "auth_ref": [
      "r228",
      "r247",
      "r250",
      "r263",
      "r270",
      "r281",
      "r293",
      "r294",
      "r324",
      "r333",
      "r337",
      "r339",
      "r356",
      "r389",
      "r390",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r398",
      "r399",
      "r555",
      "r558",
      "r559",
      "r575",
      "r588",
      "r698",
      "r752",
      "r774",
      "r775",
      "r805",
      "r844"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 13.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest.",
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "terseLabel": "Net loss",
        "totalLabel": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest, Total"
       }
      }
     },
     "localname": "ProfitLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Abstract]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentByTypeAxis": {
     "auth_ref": [
      "r96"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of long-lived, physical assets used to produce goods and services and not intended for resale.",
        "label": "Long-Lived Tangible Asset [Axis]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock": {
     "auth_ref": [
      "r98",
      "r725",
      "r726",
      "r727"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections.",
        "label": "Property, Plant and Equipment Disclosure [Text Block]",
        "terseLabel": "Property and Equipment, Net"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNet"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentEstimatedUsefulLives": {
     "auth_ref": [
      "r91"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Describes the periods of time over which an entity anticipates to receive utility from its property, plant and equipment (that is, the periods of time over which an entity allocates the initial cost of its property, plant and equipment).",
        "label": "Property, Plant and Equipment, Estimated Useful Lives",
        "terseLabel": "Property and equipment estimated useful lives"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentEstimatedUsefulLives",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentGross": {
     "auth_ref": [
      "r94",
      "r233"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures.",
        "label": "Property, Plant and Equipment, Gross",
        "periodEndLabel": "Property, Plant and Equipment, Gross, Ending Balance",
        "periodStartLabel": "Property, Plant and Equipment, Gross, Beginning Balance",
        "terseLabel": "Property and equipment - at cost",
        "totalLabel": "Property and equipment \u2013 at cost"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Property, Plant and Equipment [Line Items]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "auth_ref": [
      "r96",
      "r213",
      "r699",
      "r778"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business to produce goods and services and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures.",
        "label": "Property, Plant and Equipment, Net",
        "periodEndLabel": "Property, Plant and Equipment, Net, Ending Balance",
        "periodStartLabel": "Property, Plant and Equipment, Net, Beginning Balance",
        "terseLabel": "Property and equipment, net",
        "totalLabel": "Property and equipment \u2013 net"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentPolicyTextBlock": {
     "auth_ref": [
      "r96",
      "r725",
      "r726"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections.",
        "label": "Property, Plant and Equipment, Policy [Policy Text Block]",
        "terseLabel": "Property and Equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTextBlock": {
     "auth_ref": [
      "r96"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation.",
        "label": "Property, Plant and Equipment [Table Text Block]",
        "terseLabel": "Schedule of Property and Equipment, Net"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTypeDomain": {
     "auth_ref": [
      "r94"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Listing of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale. Examples include land, buildings, machinery and equipment, and other types of furniture and equipment including, but not limited to, office equipment, furniture and fixtures, and computer equipment and software.",
        "label": "Long-Lived Tangible Asset [Domain]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentUsefulLife": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Useful life of long lived, physical assets used in the normal conduct of business and not intended for resale, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Examples include, but not limited to, land, buildings, machinery and equipment, office equipment, furniture and fixtures, and computer equipment.",
        "label": "Property, Plant and Equipment, Useful Life",
        "terseLabel": "Property and equipment estimated useful life"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentUsefulLife",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_RedeemableConvertiblePreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of type or class of redeemable convertible preferred stock. Convertible redeemable preferred stock possess conversion and redemption features. The stock has redemption features that are outside the control of the issuer.",
        "label": "Redeemable Convertible Preferred Stock [Member]",
        "terseLabel": "Legacy Gelesis Redeemable Convertible Preferred Stock",
        "verboseLabel": "Redeemable Convertible Preferred Stock"
       }
      }
     },
     "localname": "RedeemableConvertiblePreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount": {
     "auth_ref": [
      "r111",
      "r112",
      "r114",
      "r115"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "As of the reporting date, the aggregate carrying amount of all noncontrolling interests which are redeemable by the (parent) entity (1) at a fixed or determinable price on a fixed or determinable date, (2) at the option of the holder of the noncontrolling interest, or (3) upon occurrence of an event that is not solely within the control of the (parent) entity. This item includes noncontrolling interest holder's ownership (or holders' ownership) regardless of the type of equity interest (common, preferred, other) including all potential organizational (legal) forms of the investee entity.",
        "label": "Redeemable Noncontrolling Interest, Equity, Carrying Amount",
        "periodEndLabel": "Balance at the End of Period",
        "periodStartLabel": "Balance at Beginning of Period",
        "terseLabel": "Noncontrolling interest",
        "totalLabel": "Redeemable Noncontrolling Interest, Equity, Carrying Amount, Total"
       }
      }
     },
     "localname": "RedeemableNoncontrollingInterestEquityCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfNoncontrollingInterestDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RedeemableNoncontrollingInterestTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of redeemable noncontrolling interest (as defined) included in the statement of financial position as either a liability or temporary equity. As of the date of the statement of financial position, such redeemable noncontrolling interest is currently redeemable, as defined, for cash or other assets of the entity at (1) at a fixed or determinable price on a fixed or determinable date, (2) at the option of the holder of the noncontrolling interest, or (3) upon occurrence of an event that is not solely within the control of the entity.",
        "label": "Redeemable Noncontrolling Interest [Table Text Block]",
        "terseLabel": "Summary of Noncontrolling Interest"
       }
      }
     },
     "localname": "RedeemableNoncontrollingInterestTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RelatedPartyCosts": {
     "auth_ref": [
      "r51",
      "r391",
      "r392",
      "r393",
      "r397",
      "r398",
      "r399",
      "r814"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Direct costs arising from transactions with related parties who are not affiliates or joint Ventures. These costs are categorized as cost of goods sold.",
        "label": "Related Party Costs",
        "terseLabel": "Cost of goods sold, related party expense"
       }
      }
     },
     "localname": "RelatedPartyCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperationsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RelatedPartyDomain": {
     "auth_ref": [
      "r469",
      "r636",
      "r637"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Related parties include affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests.",
        "label": "Related Party [Domain]",
        "terseLabel": "Related Party"
       }
      }
     },
     "localname": "RelatedPartyDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RelatedPartyTransactionAxis": {
     "auth_ref": [
      "r222",
      "r636",
      "r637",
      "r901"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of related party transaction.",
        "label": "Related Party Transaction [Axis]",
        "terseLabel": "Related Party Transaction"
       }
      }
     },
     "localname": "RelatedPartyTransactionAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionDomain": {
     "auth_ref": [
      "r222"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Transaction between related party.",
        "label": "Related Party Transaction [Domain]",
        "terseLabel": "Related Party Transaction"
       }
      }
     },
     "localname": "RelatedPartyTransactionDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty": {
     "auth_ref": [
      "r189"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expenses recognized resulting from transactions (excluding transactions that are eliminated in consolidated or combined financial statements) with related party.",
        "label": "Related Party Transaction, Expenses from Transactions with Related Party",
        "terseLabel": "Research and development, including related party expenses"
       }
      }
     },
     "localname": "RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RelatedPartyTransactionLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Related Party Transaction [Line Items]",
        "terseLabel": "Related Party Transaction [Line Items]"
       }
      }
     },
     "localname": "RelatedPartyTransactionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionSellingGeneralAndAdministrativeExpensesFromTransactionsWithRelatedParty": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of selling, general and administrative expenses resulting from transactions, excluding transactions that are eliminated in consolidated or combined financial statements, with related party.",
        "label": "Related Party Transaction, Selling, General and Administrative Expenses from Transactions with Related Party",
        "terseLabel": "Selling, general and administrative, related party expense"
       }
      }
     },
     "localname": "RelatedPartyTransactionSellingGeneralAndAdministrativeExpensesFromTransactionsWithRelatedParty",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperationsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RelatedPartyTransactionsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions [Abstract]"
       }
      }
     },
     "localname": "RelatedPartyTransactionsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionsByRelatedPartyAxis": {
     "auth_ref": [
      "r469",
      "r636",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r695",
      "r901"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of related party. Related parties include, but not limited to, affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests.",
        "label": "Related Party [Axis]",
        "terseLabel": "Related Party"
       }
      }
     },
     "localname": "RelatedPartyTransactionsByRelatedPartyAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionsDisclosureTextBlock": {
     "auth_ref": [
      "r634",
      "r635",
      "r637",
      "r638",
      "r639"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates.",
        "label": "Related Party Transactions Disclosure [Text Block]",
        "terseLabel": "Related Party Transactions"
       }
      }
     },
     "localname": "RelatedPartyTransactionsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactions"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RepaymentsOfConvertibleDebt": {
     "auth_ref": [
      "r58"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow from the repayment of a long-term debt instrument which can be exchanged for a specified amount of another security, typically the entity's common stock, at the option of the issuer or the holder.",
        "label": "Repayments of Convertible Debt",
        "negatedLabel": "Repayment of convertible promissory notes"
       }
      }
     },
     "localname": "RepaymentsOfConvertibleDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepaymentsOfLongTermDebt": {
     "auth_ref": [
      "r58"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow for debt initially having maturity due after one year or beyond the normal operating cycle, if longer.",
        "label": "Repayments of Long-Term Debt",
        "terseLabel": "Repayment of debt",
        "totalLabel": "Repayments of Long-term Debt, Total"
       }
      }
     },
     "localname": "RepaymentsOfLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepaymentsOfNotesPayable": {
     "auth_ref": [
      "r58"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow for a borrowing supported by a written promise to pay an obligation.",
        "label": "Repayments of Notes Payable",
        "negatedLabel": "Principal repayment of notes payable"
       }
      }
     },
     "localname": "RepaymentsOfNotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ResearchAndDevelopmentExpense": {
     "auth_ref": [
      "r145",
      "r218",
      "r910"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 2.0,
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate costs incurred (1) in a planned search or critical investigation aimed at discovery of new knowledge with the hope that such knowledge will be useful in developing a new product or service, a new process or technique, or in bringing about a significant improvement to an existing product or process; or (2) to translate research findings or other knowledge into a plan or design for a new product or process or for a significant improvement to an existing product or process whether intended for sale or the entity's use, during the reporting period charged to research and development projects, including the costs of developing computer software up to the point in time of achieving technological feasibility, and costs allocated in accounting for a business combination to in-process projects deemed to have no alternative future use.",
        "label": "Research and Development Expense",
        "terseLabel": "Research and development, including related party expenses of $231 and $255, respectively",
        "totalLabel": "Research and Development Expense, Total"
       }
      }
     },
     "localname": "ResearchAndDevelopmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ResearchAndDevelopmentExpenseMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption in which the reported facts about research and development expense have been included.",
        "label": "Research and Development Expense [Member]",
        "terseLabel": "Research and Development",
        "verboseLabel": "Research and Development Expense"
       }
      }
     },
     "localname": "ResearchAndDevelopmentExpenseMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ResearchAndDevelopmentExpensePolicy": {
     "auth_ref": [
      "r145"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for costs it has incurred (1) in a planned search or critical investigation aimed at discovery of new knowledge with the hope that such knowledge will be useful in developing a new product or service, a new process or technique, or in bringing about a significant improvement to an existing product or process; or (2) to translate research findings or other knowledge into a plan or design for a new product or process or for a significant improvement to an existing product or process.",
        "label": "Research and Development Expense, Policy [Policy Text Block]",
        "terseLabel": "Research and Development Costs"
       }
      }
     },
     "localname": "ResearchAndDevelopmentExpensePolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RestrictedStockUnitsRSUMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met.",
        "label": "Restricted Stock Units (RSUs) [Member]",
        "terseLabel": "Restricted Stock Units (RSUs)"
       }
      }
     },
     "localname": "RestrictedStockUnitsRSUMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r13",
      "r125",
      "r211",
      "r711",
      "r716",
      "r778"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings (Accumulated Deficit)",
        "periodEndLabel": "Retained Earnings (Accumulated Deficit), Ending Balance",
        "periodStartLabel": "Retained Earnings (Accumulated Deficit), Beginning Balance",
        "terseLabel": "Accumulated deficit",
        "totalLabel": "Retained Earnings (Accumulated Deficit), Total"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [
      "r225",
      "r277",
      "r278",
      "r279",
      "r282",
      "r291",
      "r294",
      "r363",
      "r507",
      "r508",
      "r509",
      "r535",
      "r536",
      "r573",
      "r707",
      "r709"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings [Member]",
        "terseLabel": "Accumulated Deficit"
       }
      }
     },
     "localname": "RetainedEarningsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from Contract with Customer [Abstract]"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax": {
     "auth_ref": [
      "r320",
      "r321",
      "r332",
      "r335",
      "r336",
      "r340",
      "r341",
      "r343",
      "r459",
      "r460",
      "r679"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 0.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, excluding tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value added and excise.",
        "label": "Revenue from Contract with Customer, Excluding Assessed Tax",
        "terseLabel": "Total revenue, net",
        "totalLabel": "Revenue from Contract with Customer, Excluding Assessed Tax, Total",
        "verboseLabel": "Revenue"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerExcludingAssessedTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfRevenueDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerPolicyTextBlock": {
     "auth_ref": [
      "r451",
      "r452",
      "r453",
      "r454",
      "r455",
      "r456",
      "r457",
      "r458",
      "r461",
      "r749"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for revenue from contract with customer.",
        "label": "Revenue from Contract with Customer [Policy Text Block]",
        "terseLabel": "Revenue Recognition"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RevenueRemainingPerformanceObligation": {
     "auth_ref": [
      "r449"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transaction price allocated to performance obligation that has not been recognized as revenue.",
        "label": "Revenue, Remaining Performance Obligation, Amount",
        "terseLabel": "Revenue performance obligation transactions price"
       }
      }
     },
     "localname": "RevenueRemainingPerformanceObligation",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RevenueRemainingPerformanceObligationOptionalExemptionRemainingDuration": {
     "auth_ref": [
      "r450"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Remaining duration of performance obligation for which optional exemption was applied not to disclose amount of transaction price allocated to and timing of revenue recognition for remaining performance obligation, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Revenue, Remaining Performance Obligation, Optional Exemption, Remaining Duration",
        "terseLabel": "Revenue, Remaining Performance Obligation, Remaining Duration"
       }
      }
     },
     "localname": "RevenueRemainingPerformanceObligationOptionalExemptionRemainingDuration",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_RevenuesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenues [Abstract]",
        "terseLabel": "Revenue:"
       }
      }
     },
     "localname": "RevenuesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevenuesNetOfInterestExpense": {
     "auth_ref": [
      "r320",
      "r321",
      "r332",
      "r335",
      "r336",
      "r340",
      "r341",
      "r343"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income after deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss).",
        "label": "Revenues, Net of Interest Expense",
        "verboseLabel": "Interest income"
       }
      }
     },
     "localname": "RevenuesNetOfInterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SaleOfStockConsiderationReceivedOnTransaction": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash received on stock transaction after deduction of issuance costs.",
        "label": "Sale of Stock, Consideration Received on Transaction",
        "terseLabel": "Consideration allocated net of issuance costs"
       }
      }
     },
     "localname": "SaleOfStockConsiderationReceivedOnTransaction",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SaleOfStockNameOfTransactionDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of the entity's stock, including, but not limited to, initial public offering (IPO) and private placement.",
        "label": "Sale of Stock [Domain]"
       }
      }
     },
     "localname": "SaleOfStockNameOfTransactionDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable": {
     "auth_ref": [
      "r70"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule for securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by Antidilutive Securities.",
        "label": "Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table]",
        "terseLabel": "Schedule Of Antidilutive Securities Excluded From Computation Of Earnings Per Share [Table]"
       }
      }
     },
     "localname": "ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock": {
     "auth_ref": [
      "r70"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by antidilutive securities.",
        "label": "Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table Text Block]",
        "terseLabel": "Schedule of Anti-dilutive Securities Excluded from Computation of Net Loss Per Share"
       }
      }
     },
     "localname": "ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable": {
     "auth_ref": [
      "r154",
      "r155",
      "r550"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting each material business combination (or series of individually immaterial business combinations) completed during the period, including background, timing, and recognized assets and liabilities.",
        "label": "Schedule of Business Acquisitions, by Acquisition [Table]"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationSummaryOfNetProceedsFromBusinessCombinationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock": {
     "auth_ref": [
      "r154",
      "r155"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of a material business combination completed during the period, including background, timing, and recognized assets and liabilities. This table does not include leveraged buyouts.",
        "label": "Schedule of Business Acquisitions, by Acquisition [Table Text Block]",
        "terseLabel": "Summary of Net Proceeds from Business Combination"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable": {
     "auth_ref": [
      "r888"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about collaborative arrangement and arrangement other than collaborative applicable to revenue-generating activity or operations.",
        "label": "Collaborative Arrangement and Arrangement Other than Collaborative [Table]",
        "terseLabel": "Schedule Of Collaborative Arrangements And Noncollaborative Arrangement Transactions [Table]"
       }
      }
     },
     "localname": "ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsScheduleOfAllocatedConsiderationInJune2019TransactionOnRelativeFairValueBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfChangesInFairValueOfCallOptionLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfNoncontrollingInterestDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfCallOptionLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "auth_ref": [
      "r151"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of income tax expense attributable to continuing operations for each year presented including, but not limited to: current tax expense (benefit), deferred tax expense (benefit), investment tax credits, government grants, the benefits of operating loss carryforwards, tax expense that results from allocating certain tax benefits either directly to contributed capital or to reduce goodwill or other noncurrent intangible assets of an acquired entity, adjustments of a deferred tax liability or asset for enacted changes in tax laws or rates or a change in the tax status of the entity, and adjustments of the beginning-of-the-year balances of a valuation allowance because of a change in circumstances that causes a change in judgment about the realizability of the related deferred tax asset in future years.",
        "label": "Schedule of Components of Income Tax Expense (Benefit) [Table Text Block]",
        "terseLabel": "Schedule of Provision for income taxes"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDebtTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of information pertaining to short-term and long-debt instruments or arrangements, including but not limited to identification of terms, features, collateral requirements and other information necessary to a fair presentation.",
        "label": "Schedule of Debt [Table Text Block]",
        "terseLabel": "Summary of Non-Convertible Debt Outstanding"
       }
      }
     },
     "localname": "ScheduleOfDebtTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "auth_ref": [
      "r148"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of net deferred tax asset or liability recognized in an entity's statement of financial position, including the following: the total of all deferred tax liabilities, the total of all deferred tax assets, the total valuation allowance recognized for deferred tax assets.",
        "label": "Schedule of Deferred Tax Assets and Liabilities [Table Text Block]",
        "terseLabel": "Significant Components of Consolidated Deferred Tax Assets and Liabilities"
       }
      }
     },
     "localname": "ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock": {
     "auth_ref": [
      "r171"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position.",
        "label": "Schedule of Derivative Instruments in Statement of Financial Position, Fair Value [Table Text Block]",
        "terseLabel": "Summary of Earnout Liability Activity"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r825"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations.",
        "label": "Schedule of Earnings Per Share, Basic and Diluted [Table Text Block]",
        "terseLabel": "Summary of Basic and Diluted Net Loss Per Share"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock": {
     "auth_ref": [
      "r146"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the reconciliation using percentage or dollar amounts of the reported amount of income tax expense attributable to continuing operations for the year to the amount of income tax expense that would result from applying domestic federal statutory tax rates to pretax income from continuing operations.",
        "label": "Schedule of Effective Income Tax Rate Reconciliation [Table Text Block]",
        "terseLabel": "Schedule of Reconciliation of U.S. Federal Statutory Rate to Effective Income Tax Rate"
       }
      }
     },
     "localname": "ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock": {
     "auth_ref": [
      "r138"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of allocation of amount expensed and capitalized for award under share-based payment arrangement to statement of income or comprehensive income and statement of financial position. Includes, but is not limited to, corresponding line item in financial statement.",
        "label": "Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Table Text Block]",
        "terseLabel": "Summary of Stock-Based Compensation Expense"
       }
      }
     },
     "localname": "ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock": {
     "auth_ref": [
      "r76"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of entity-wide revenues from external customers for each product or service or each group of similar products or services if the information is not provided as part of the reportable operating segment information.",
        "label": "Revenue from External Customers by Products and Services [Table Text Block]",
        "terseLabel": "Summary of Revenue"
       }
      }
     },
     "localname": "ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock": {
     "auth_ref": [
      "r813"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of income before income tax between domestic and foreign jurisdictions.",
        "label": "Schedule of Income before Income Tax, Domestic and Foreign [Table Text Block]",
        "terseLabel": "Schedule of (Loss) Income before Income Tax, Domestic and Foreign"
       }
      }
     },
     "localname": "ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfInventoryCurrentTableTextBlock": {
     "auth_ref": [
      "r1",
      "r17",
      "r18",
      "r19"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the carrying amount as of the balance sheet date of merchandise, goods, commodities, or supplies held for future sale or to be used in manufacturing, servicing or production process.",
        "label": "Schedule of Inventory, Current [Table Text Block]",
        "terseLabel": "Schedule of Inventories"
       }
      }
     },
     "localname": "ScheduleOfInventoryCurrentTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureInventoriesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfMaturitiesOfLongTermDebtTableTextBlock": {
     "auth_ref": [
      "r102"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of maturity and sinking fund requirement for long-term debt.",
        "label": "Schedule of Maturities of Long-Term Debt [Table Text Block]",
        "terseLabel": "Summary of Future Maturities to Debt Outstanding"
       }
      }
     },
     "localname": "ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfProductInformationTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule detailing quantitative information concerning products or product lines by product or product line.",
        "label": "Schedule of Product Information [Table]",
        "terseLabel": "Schedule Of Product Information [Table]"
       }
      }
     },
     "localname": "ScheduleOfProductInformationTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfActivityInProductRevenueReserveAndAllowanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesSummaryOfRevenueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfPropertyPlantAndEquipmentTable": {
     "auth_ref": [
      "r96"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation.",
        "label": "Property, Plant and Equipment [Table]"
       }
      }
     },
     "localname": "ScheduleOfPropertyPlantAndEquipmentTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable": {
     "auth_ref": [
      "r191",
      "r192"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of quantitative and qualitative information pertaining to related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates.",
        "label": "Schedule of Related Party Transactions, by Related Party [Table]",
        "terseLabel": "Schedule Of Related Party Transactions By Related Party [Table]"
       }
      }
     },
     "localname": "ScheduleOfRelatedPartyTransactionsByRelatedPartyTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationOneSrlDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationRifDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r472",
      "r474",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about share-based payment arrangement.",
        "label": "Schedule of Share-Based Compensation Arrangements by Share-Based Payment Award [Table]",
        "terseLabel": "Schedule Of Share Based Compensation Arrangements By Share Based Payment Award [Table]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock": {
     "auth_ref": [
      "r133"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the number and weighted-average grant date fair value for restricted stock units that were outstanding at the beginning and end of the year, and the number of restricted stock units that were granted, vested, or forfeited during the year.",
        "label": "Share-Based Payment Arrangement, Restricted Stock Unit, Activity [Table Text Block]",
        "terseLabel": "Summary of Restricted Stock Unit Activity"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock": {
     "auth_ref": [
      "r133",
      "r134",
      "r135"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure for stock option plans. Includes, but is not limited to, outstanding awards at beginning and end of year, grants, exercises, forfeitures, and weighted-average grant date fair value.",
        "label": "Share-Based Payment Arrangement, Option, Activity [Table Text Block]",
        "terseLabel": "Summary of Stock Option Activity"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock": {
     "auth_ref": [
      "r137"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the significant assumptions used during the year to estimate the fair value of stock options, including, but not limited to: (a) expected term of share options and similar instruments, (b) expected volatility of the entity's shares, (c) expected dividends, (d) risk-free rate(s), and (e) discount for post-vesting restrictions.",
        "label": "Schedule of Share-Based Payment Award, Stock Options, Valuation Assumptions [Table Text Block]",
        "terseLabel": "Schedule of Grant Date Fair Value of Options Issued Using Black-Scholes Weighted Average Assumptions"
       }
      }
     },
     "localname": "ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfStockByClassTable": {
     "auth_ref": [
      "r109",
      "r116",
      "r117",
      "r119",
      "r120",
      "r121",
      "r122",
      "r123",
      "r124",
      "r125",
      "r238",
      "r239",
      "r240",
      "r314",
      "r430",
      "r431",
      "r433",
      "r435",
      "r439",
      "r444",
      "r446",
      "r760",
      "r792",
      "r810"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule detailing information related to equity by class of stock. Class of stock includes common, convertible, and preferred stocks which are not redeemable or redeemable solely at the option of the issuer. It also includes preferred stock with redemption features that are solely within the control of the issuer and mandatorily redeemable stock if redemption is required to occur only upon liquidation or termination of the reporting entity.",
        "label": "Schedule of Stock by Class [Table]"
       }
      }
     },
     "localname": "ScheduleOfStockByClassTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfStockholdersEquityTableTextBlock": {
     "auth_ref": [
      "r118"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of changes in the separate accounts comprising stockholders' equity (in addition to retained earnings) and of the changes in the number of shares of equity securities during at least the most recent annual fiscal period and any subsequent interim period presented is required to make the financial statements sufficiently informative if both financial position and results of operations are presented.",
        "label": "Schedule of Stockholders Equity [Table Text Block]",
        "terseLabel": "Schedule of Common Stock Reserved for Future Issuance"
       }
      }
     },
     "localname": "ScheduleOfStockholdersEquityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfUnrecognizedTaxBenefitsRollForwardTableTextBlock": {
     "auth_ref": [
      "r773",
      "r881"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the change in unrecognized tax benefits.",
        "label": "Schedule of Unrecognized Tax Benefits Roll Forward [Table Text Block]",
        "terseLabel": "Reconciliation of Beginning and Ending Amount of Uncertain Tax Positions"
       }
      }
     },
     "localname": "ScheduleOfUnrecognizedTaxBenefitsRollForwardTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SegmentReportingPolicyPolicyTextBlock": {
     "auth_ref": [
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r341"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for segment reporting.",
        "label": "Segment Reporting, Policy [Policy Text Block]",
        "terseLabel": "Segment Information"
       }
      }
     },
     "localname": "SegmentReportingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SellingGeneralAndAdministrativeExpense": {
     "auth_ref": [
      "r52"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate total costs related to selling a firm's product and services, as well as all other general and administrative expenses. Direct selling expenses (for example, credit, warranty, and advertising) are expenses that can be directly linked to the sale of specific products. Indirect selling expenses are expenses that cannot be directly linked to the sale of specific products, for example telephone expenses, Internet, and postal charges. General and administrative expenses include salaries of non-sales personnel, rent, utilities, communication, etc.",
        "label": "Selling, General and Administrative Expense",
        "terseLabel": "Selling, general and administrative, including related party expenses of $504 and $494, respectively",
        "totalLabel": "Selling, General and Administrative Expense, Total",
        "verboseLabel": "Selling, general and administrative expenses"
       }
      }
     },
     "localname": "SellingGeneralAndAdministrativeExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SellingGeneralAndAdministrativeExpensesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing selling, general and administrative expense.",
        "label": "Selling, General and Administrative Expenses [Member]",
        "terseLabel": "Selling, General and Administrative Expense"
       }
      }
     },
     "localname": "SellingGeneralAndAdministrativeExpensesMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SellingGeneralAndAdministrativeExpensesPolicyTextBlock": {
     "auth_ref": [
      "r144"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for inclusion of significant items in the selling, general and administrative (or similar) expense report caption.",
        "label": "Selling, General and Administrative Expenses, Policy [Policy Text Block]",
        "terseLabel": "Selling, General and Administrative Costs"
       }
      }
     },
     "localname": "SellingGeneralAndAdministrativeExpensesPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ShareBasedCompensation": {
     "auth_ref": [
      "r63"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncash expense for share-based payment arrangement.",
        "label": "Share-Based Payment Arrangement, Noncash Expense",
        "terseLabel": "Stock-based compensation",
        "totalLabel": "Share-based Payment Arrangement, Noncash Expense, Total"
       }
      }
     },
     "localname": "ShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "auth_ref": [
      "r770"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Award Vesting Period",
        "terseLabel": "Vesting period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "auth_ref": [
      "r492"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "negatedLabel": "Number of RSUs, Forfeited",
        "terseLabel": "Number of RSUs, Forfeited"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r492"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average fair value as of the grant date of equity-based award plans other than stock (unit) option plans that were not exercised or put into effect as a result of the occurrence of a terminating event.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted-Average Grant Date Fair Value, Forfeited"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "auth_ref": [
      "r490"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "terseLabel": "Number of RSUs, Granted",
        "verboseLabel": "RSU issued"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r490"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average fair value at grant date for nonvested equity-based awards issued during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted-Average Grant Date Fair Value, Granted",
        "verboseLabel": "RSU weighted-average fair value per unit"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "auth_ref": [
      "r487",
      "r488"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "periodEndLabel": "Number of RSUs, Outstanding and Unvested",
        "periodStartLabel": "Number of RSUs, Outstanding and Unvested",
        "verboseLabel": "Number of restricted stock units issued"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r487",
      "r488"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
        "periodEndLabel": "Weighted-Average Grant Date Fair Value, Outstanding and Unvested",
        "periodStartLabel": "Weighted-Average Grant Date Fair Value, Outstanding and Unvested",
        "verboseLabel": "Weighted-average fair value of stock issued per unit"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "auth_ref": [
      "r491"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period",
        "negatedLabel": "Number of RSUs, Vested",
        "terseLabel": "Number of RSUs, Vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r491"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average fair value as of grant date pertaining to an equity-based award plan other than a stock (or unit) option plan for which the grantee gained the right during the reporting period, by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash in accordance with the terms of the arrangement.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted-Average Grant Date Fair Value, Vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate": {
     "auth_ref": [
      "r499"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The estimated dividend rate (a percentage of the share price) to be paid (expected dividends) to holders of the underlying shares over the option's term.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Expected Dividend Rate",
        "terseLabel": "Expected dividend yield"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfGrantDateFairValueOfOptionsIssuedUsingBlackScholesWeightedAverageAssumptionsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate": {
     "auth_ref": [
      "r498"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The estimated measure of the percentage by which a share price is expected to fluctuate during a period. Volatility also may be defined as a probability-weighted measure of the dispersion of returns about the mean. The volatility of a share price is the standard deviation of the continuously compounded rates of return on the share over a specified period. That is the same as the standard deviation of the differences in the natural logarithms of the stock prices plus dividends, if any, over the period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Expected Volatility Rate",
        "terseLabel": "Expected volatility"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfGrantDateFairValueOfOptionsIssuedUsingBlackScholesWeightedAverageAssumptionsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate": {
     "auth_ref": [
      "r500"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The risk-free interest rate assumption that is used in valuing an option on its own shares.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Risk Free Interest Rate",
        "terseLabel": "Risk-free interest rate"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfGrantDateFairValueOfOptionsIssuedUsingBlackScholesWeightedAverageAssumptionsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]",
        "terseLabel": "Share Based Compensation Arrangement By Share Based Payment Award [Line Items]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "auth_ref": [
      "r772"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Authorized",
        "terseLabel": "Number of shares authorized to issue on common stock"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant": {
     "auth_ref": [
      "r139"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The difference between the maximum number of shares (or other type of equity) authorized for issuance under the plan (including the effects of amendments and adjustments), and the sum of: 1) the number of shares (or other type of equity) already issued upon exercise of options or other equity-based awards under the plan; and 2) shares (or other type of equity) reserved for issuance on granting of outstanding awards, net of cancellations and forfeitures, if applicable.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Available for Grant",
        "terseLabel": "Remaining shares available for issuance"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber": {
     "auth_ref": [
      "r481"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of shares into which fully or partially vested stock options outstanding as of the balance sheet date can be currently converted under the option plan.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercisable, Number",
        "terseLabel": "Number of Options, Exercisable"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice": {
     "auth_ref": [
      "r481"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted-average price as of the balance sheet date at which grantees can acquire the shares reserved for issuance on vested portions of options outstanding and currently exercisable under the stock option plan.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercisable, Weighted Average Exercise Price",
        "terseLabel": "Weighted-Average Exercise Price per Share, Exercisable"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExpirationsInPeriod": {
     "auth_ref": [
      "r486"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of options or other stock instruments for which the right to exercise has lapsed under the terms of the plan agreements.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Expirations in Period",
        "negatedLabel": "Number of Options, Expired",
        "terseLabel": "Number of Options, Expired"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExpirationsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod": {
     "auth_ref": [
      "r485"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of shares under options that were cancelled during the reporting period as a result of occurrence of a terminating event specified in contractual agreements pertaining to the stock option plan.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Forfeitures in Period",
        "negatedLabel": "Number of Options, Forfeited - vested",
        "terseLabel": "Number of Options, Forfeited - vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross": {
     "auth_ref": [
      "r483"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross number of share options (or share units) granted during the period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Grants in Period, Gross",
        "terseLabel": "Number of Options, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r493"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average grant-date fair value of options granted during the reporting period as calculated by applying the disclosed option pricing methodology.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted-average grant date fair value of stock options granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue": {
     "auth_ref": [
      "r139"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount by which the current fair value of the underlying stock exceeds the exercise price of options outstanding.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Intrinsic Value",
        "terseLabel": "Aggregate Intrinsic Value, Outstanding"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber": {
     "auth_ref": [
      "r479",
      "r480"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of options outstanding, including both vested and non-vested options.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Number",
        "periodEndLabel": "Number of Options, Outstanding",
        "periodStartLabel": "Number of Options, Outstanding",
        "terseLabel": "Number of Options, Outstanding"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding [Roll Forward]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice": {
     "auth_ref": [
      "r479",
      "r480"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average price at which grantees can acquire the shares reserved for issuance under the stock option plan.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price",
        "periodEndLabel": "Weighted-Average Exercise Price per Share, Outstanding",
        "periodStartLabel": "Weighted-Average Exercise Price per Share, Outstanding"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price [Abstract]",
        "terseLabel": "Weighted Average Exercise Price per Share"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue": {
     "auth_ref": [
      "r495"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount by which current fair value of underlying stock exceeds exercise price of fully vested and expected to vest options outstanding. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Outstanding, Aggregate Intrinsic Value",
        "terseLabel": "Aggregate Intrinsic Value, Vested and expected to vest"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber": {
     "auth_ref": [
      "r495"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of fully vested and expected to vest options outstanding that can be converted into shares under option plan. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Outstanding, Number",
        "terseLabel": "Number of Options, Vested and expected to vest"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice": {
     "auth_ref": [
      "r495"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted-average exercise price, at which grantee can acquire shares reserved for issuance, for fully vested and expected to vest options outstanding. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Outstanding, Weighted Average Exercise Price",
        "terseLabel": "Weighted- Average Exercise Price per Share, Vested and expected to vest"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardPercentageOfOutstandingStockMaximum": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum number of shares that may be issued in accordance with the plan as a proportion of outstanding capital stock.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Percentage of Outstanding Stock Maximum",
        "terseLabel": "Increase in percentage, number of shares of stock issued and outstanding"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardPercentageOfOutstandingStockMaximum",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Award under share-based payment arrangement.",
        "label": "Award Type [Domain]",
        "terseLabel": "Award Type"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfRestrictedStockUnitActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [
      "r484"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average price at which option holders acquired shares when converting their stock options into shares.",
        "label": "Share-Based Compensation Arrangements by Share-Based Payment Award, Options, Exercises in Period, Weighted Average Exercise Price",
        "terseLabel": "Weighted-Average Exercise Price per Share, Exercised"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExpirationsInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [
      "r486"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average price at which grantees could have acquired the underlying shares with respect to stock options of the plan that expired.",
        "label": "Share-Based Compensation Arrangements by Share-Based Payment Award, Options, Expirations in Period, Weighted Average Exercise Price",
        "terseLabel": "Weighted-Average Exercise Price per Share, Expired"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExpirationsInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [
      "r485"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average price at which grantees could have acquired the underlying shares with respect to stock options that were terminated.",
        "label": "Share-Based Compensation Arrangements by Share-Based Payment Award, Options, Forfeitures in Period, Weighted Average Exercise Price",
        "terseLabel": "Weighted-Average Exercise Price per Share, Forfeited - vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [
      "r483"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average per share amount at which grantees can acquire shares of common stock by exercise of options.",
        "label": "Share-Based Compensation Arrangements by Share-Based Payment Award, Options, Grants in Period, Weighted Average Exercise Price",
        "terseLabel": "Weighted-Average Exercise Price per Share, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SharePrice": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Price of a single share of a number of saleable stocks of a company.",
        "label": "Share Price",
        "terseLabel": "Market price of common stock"
       }
      }
     },
     "localname": "SharePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfGrantDateFairValueOfOptionsIssuedUsingBlackScholesWeightedAverageAssumptionsDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod": {
     "auth_ref": [
      "r771"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period from grant date that an equity-based award expires, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Expiration Period",
        "terseLabel": "Expiration period of awards granted"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1": {
     "auth_ref": [
      "r497"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expected term of award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Expected Term",
        "terseLabel": "Expected term (in years)"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfGrantDateFairValueOfOptionsIssuedUsingBlackScholesWeightedAverageAssumptionsDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1": {
     "auth_ref": [
      "r139"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of difference between fair value of the underlying shares reserved for issuance and exercise price of vested portions of options outstanding and currently exercisable.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercisable, Intrinsic Value",
        "terseLabel": "Aggregate Intrinsic Value, Exercisable"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1": {
     "auth_ref": [
      "r139"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining contractual term for vested portions of options outstanding and currently exercisable or convertible, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercisable, Weighted Average Remaining Contractual Term",
        "terseLabel": "Weighted-Average Remaining Contractual Term (Years), Exercisable"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of non-vested options forfeited.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Nonvested Options Forfeited, Number of Shares",
        "negatedLabel": "Number of Options, Forfeited - unvested",
        "terseLabel": "Number of Options, Forfeited - unvested"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2": {
     "auth_ref": [
      "r136"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining contractual term for option awards outstanding, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Remaining Contractual Term",
        "terseLabel": "Weighted-Average Remaining Contractual Term (Years), Outstanding"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1": {
     "auth_ref": [
      "r495"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining contractual term for fully vested and expected to vest options outstanding, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Outstanding, Weighted Average Remaining Contractual Term",
        "terseLabel": "Weighted-Average Remaining Contractual Term (Years), Vested and expected to vest"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1": {
     "auth_ref": [
      "r494"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of options vested. Excludes equity instruments other than options, for example, but not limited to, share units, stock appreciation rights, restricted stock.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested in Period, Fair Value",
        "terseLabel": "Total fair value of options vested"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares issued which are neither cancelled nor held in the treasury.",
        "label": "Shares, Outstanding",
        "periodEndLabel": "Balance, shares",
        "periodStartLabel": "Balance, shares"
       }
      }
     },
     "localname": "SharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmountCurrent": {
     "auth_ref": [
      "r107"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 7.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount that is required to be paid, determined under the conditions specified in the contract, if as of the reporting date, the holder of the share has exercised the right to or the shares are mandatorily redeemable within one year of the reporting date or operating cycle, if longer.",
        "label": "Financial Instruments Subject to Mandatory Redemption, Settlement Terms, Share Value, Amount, Current",
        "terseLabel": "Warrant liabilities"
       }
      }
     },
     "localname": "SharesSubjectToMandatoryRedemptionSettlementTermsAmountCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmountNoncurrent": {
     "auth_ref": [
      "r107"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount that is required to be paid, determined under the conditions specified in the contract, if as of the reporting date, the holder of the share has exercised the right to or the shares are mandatorily redeemable after one year from the reporting date or operating cycle, if longer.",
        "label": "Financial Instruments Subject to Mandatory Redemption, Settlement Terms, Share Value, Amount, Noncurrent",
        "terseLabel": "Warrant liabilities"
       }
      }
     },
     "localname": "SharesSubjectToMandatoryRedemptionSettlementTermsAmountNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsFairValueOfShares": {
     "auth_ref": [
      "r107"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value of shares that would be issued, determined under the conditions specified in the contract if the settlement were to occur at the reporting date.",
        "label": "Financial Instruments Subject to Mandatory Redemption, Settlement Terms, Fair Value of Shares",
        "terseLabel": "Warrant liability"
       }
      }
     },
     "localname": "SharesSubjectToMandatoryRedemptionSettlementTermsFairValueOfShares",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShortTermDebtTypeAxis": {
     "auth_ref": [
      "r23"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of short-term debt arrangement.",
        "label": "Short-Term Debt, Type [Axis]"
       }
      }
     },
     "localname": "ShortTermDebtTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfAssumptionsUsedToDetermineFairValueOf2022ConvertiblePromissoryNotesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShortTermDebtTypeDomain": {
     "auth_ref": [
      "r22"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of short-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing.",
        "label": "Short-Term Debt, Type [Domain]"
       }
      }
     },
     "localname": "ShortTermDebtTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureDebtSummaryOfAssumptionsUsedToDetermineFairValueOf2022ConvertiblePromissoryNotesDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "auth_ref": [
      "r69",
      "r267"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity.",
        "label": "Significant Accounting Policies [Text Block]",
        "terseLabel": "Summary of Significant Accounting Policies"
       }
      }
     },
     "localname": "SignificantAccountingPoliciesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SoftwareDevelopmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Internally developed software for sale, licensing or long-term internal use.",
        "label": "Software Development [Member]",
        "terseLabel": "Capitalized Software"
       }
      }
     },
     "localname": "SoftwareDevelopmentMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StatementClassOfStockAxis": {
     "auth_ref": [
      "r238",
      "r239",
      "r240",
      "r270",
      "r300",
      "r301",
      "r304",
      "r306",
      "r314",
      "r315",
      "r356",
      "r389",
      "r392",
      "r393",
      "r394",
      "r398",
      "r399",
      "r430",
      "r431",
      "r435",
      "r439",
      "r446",
      "r588",
      "r739",
      "r792",
      "r810",
      "r824"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by the different classes of stock of the entity.",
        "label": "Class of Stock [Axis]",
        "terseLabel": "Class of Stock"
       }
      }
     },
     "localname": "StatementClassOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareScheduleOfAntiDilutiveSecuritiesExcludedFromComputationOfNetLossPerShareDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r37",
      "r118",
      "r225",
      "r253",
      "r254",
      "r255",
      "r277",
      "r278",
      "r279",
      "r282",
      "r291",
      "r294",
      "r313",
      "r363",
      "r448",
      "r507",
      "r508",
      "r509",
      "r535",
      "r536",
      "r573",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r633",
      "r707",
      "r708",
      "r709"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Equity Components [Axis]",
        "terseLabel": "Equity Components"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Statement [Line Items]",
        "terseLabel": "Statement [Line Items]"
       }
      }
     },
     "localname": "StatementLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsTables",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "localname": "StatementOfCashFlowsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfIncomeAndComprehensiveIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Comprehensive Income [Abstract]"
       }
      }
     },
     "localname": "StatementOfIncomeAndComprehensiveIncomeAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r277",
      "r278",
      "r279",
      "r313",
      "r679"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed.",
        "label": "Statement [Table]",
        "terseLabel": "Statement [Table]"
       }
      }
     },
     "localname": "StatementTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsTables",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities": {
     "auth_ref": [
      "r36",
      "r118",
      "r119",
      "r125",
      "r417"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares issued during the period as a result of the conversion of convertible securities.",
        "label": "Stock Issued During Period, Shares, Conversion of Convertible Securities",
        "terseLabel": "Conversion of redeemable convertible preferred stock into common stock upon merger recapitalization, shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "auth_ref": [
      "r10",
      "r11",
      "r118",
      "r125"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of new stock issued during the period.",
        "label": "Stock Issued during period, Shares, new issues",
        "terseLabel": "Issuance of common stock, shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesOther": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of stock issued attributable to transactions classified as other.",
        "label": "Stock Issued During Period, Shares, Other",
        "terseLabel": "Common stock issued to Gelesis Legacy Equityholders",
        "verboseLabel": "Common stock issued"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesOther",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationScheduleOfConsummationOfBusinessCombinationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross": {
     "auth_ref": [
      "r118",
      "r125"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of shares issued during the period, including shares forfeited, as a result of Restricted Stock Awards.",
        "label": "Stock Issued During Period, Shares, Restricted Stock Award, Gross",
        "terseLabel": "Release of restricted stock units, shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised": {
     "auth_ref": [
      "r10",
      "r11",
      "r118",
      "r125",
      "r484"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of share options (or share units) exercised during the current period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercises in Period",
        "negatedLabel": "Number of Options, Exercised",
        "terseLabel": "Number of Options, Exercised",
        "verboseLabel": "Exercise of stock options, shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesStockOptionsExercised",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfStockOptionActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities": {
     "auth_ref": [
      "r37",
      "r118",
      "r125"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The gross value of stock issued during the period upon the conversion of convertible securities.",
        "label": "Stock Issued During Period, Value, Conversion of Convertible Securities",
        "terseLabel": "Conversion of redeemable convertible preferred stock into common stock upon merger recapitalization"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueConversionOfConvertibleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueNewIssues": {
     "auth_ref": [
      "r10",
      "r11",
      "r118",
      "r125"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity impact of the value of new stock issued during the period. Includes shares issued in an initial public offering or a secondary public offering.",
        "label": "Stock Issued during period, Value, new issues",
        "terseLabel": "Issuance of common stock"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised": {
     "auth_ref": [
      "r37",
      "r118",
      "r125"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of stock issued as a result of the exercise of stock options.",
        "label": "Stock Issued During Period, Value, Stock Options Exercised",
        "terseLabel": "Exercise of stock options"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueStockOptionsExercised",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r11",
      "r14",
      "r15",
      "r77",
      "r778",
      "r812",
      "r833",
      "r893"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which are attributable to the parent. The amount of the economic entity's stockholders' equity attributable to the parent excludes the amount of stockholders' equity which is allocable to that ownership interest in subsidiary equity which is not attributable to the parent (noncontrolling interest, minority interest). This excludes temporary equity and is sometimes called permanent equity.",
        "label": "Stockholders' Equity Attributable to Parent",
        "periodEndLabel": "Stockholders' Equity Attributable to Parent, Ending Balance",
        "periodStartLabel": "Stockholders' Equity Attributable to Parent, Beginning Balance",
        "terseLabel": "StockholdersEquity",
        "totalLabel": "Total stockholders' deficit"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Attributable to Parent [Abstract]",
        "terseLabel": "Stockholders' deficit:"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r159",
      "r160",
      "r167",
      "r225",
      "r226",
      "r254",
      "r277",
      "r278",
      "r279",
      "r282",
      "r291",
      "r363",
      "r448",
      "r507",
      "r508",
      "r509",
      "r535",
      "r536",
      "r573",
      "r606",
      "r607",
      "r611",
      "r633",
      "r708",
      "r709",
      "r812",
      "r833",
      "r893"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of stockholders' equity (deficit), net of receivables from officers, directors, owners, and affiliates of the entity, attributable to both the parent and noncontrolling interests. Amount excludes temporary equity. Alternate caption for the concept is permanent equity.",
        "label": "Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest",
        "periodEndLabel": "Balance",
        "periodStartLabel": "Balance",
        "totalLabel": "Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest, Total"
       }
      }
     },
     "localname": "StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityNoteAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Note [Abstract]"
       }
      }
     },
     "localname": "StockholdersEquityNoteAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "auth_ref": [
      "r127",
      "r269",
      "r431",
      "r434",
      "r435",
      "r436",
      "r437",
      "r438",
      "r439",
      "r440",
      "r441",
      "r442",
      "r443",
      "r445",
      "r448",
      "r564"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for shareholders' equity comprised of portions attributable to the parent entity and noncontrolling interest, including other comprehensive income. Includes, but is not limited to, balances of common stock, preferred stock, additional paid-in capital, other capital and retained earnings, accumulated balance for each classification of other comprehensive income and amount of comprehensive income.",
        "label": "Stockholders' Equity Note Disclosure [Text Block]",
        "terseLabel": "Stockholder\u2019s Deficit",
        "verboseLabel": "Stockholder's Equity (Deficit)"
       }
      }
     },
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficit1"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubsequentEventLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Detail information of subsequent event by type. User is expected to use existing line items from elsewhere in the taxonomy as the primary line items for this disclosure, which is further associated with dimension and member elements pertaining to a subsequent event.",
        "label": "Subsequent Event [Line Items]"
       }
      }
     },
     "localname": "SubsequentEventLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventMember": {
     "auth_ref": [
      "r612",
      "r641"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event [Member]",
        "terseLabel": "Subsequent Event"
       }
      }
     },
     "localname": "SubsequentEventMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventTable": {
     "auth_ref": [
      "r612",
      "r641"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discloses pertinent information about one or more significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued.",
        "label": "Subsequent Event [Table]"
       }
      }
     },
     "localname": "SubsequentEventTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "auth_ref": [
      "r612",
      "r641"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Axis]"
       }
      }
     },
     "localname": "SubsequentEventTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "auth_ref": [
      "r612",
      "r641"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Domain]"
       }
      }
     },
     "localname": "SubsequentEventTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Abstract]"
       }
      }
     },
     "localname": "SubsequentEventsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventsPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for reporting subsequent events.",
        "label": "Subsequent Events, Policy [Policy Text Block]",
        "terseLabel": "Subsequent Event(s)"
       }
      }
     },
     "localname": "SubsequentEventsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "auth_ref": [
      "r640",
      "r642"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued. Examples include: the sale of a capital stock issue, purchase of a business, settlement of litigation, catastrophic loss, significant foreign exchange rate changes, loans to insiders or affiliates, and transactions not in the ordinary course of business.",
        "label": "Subsequent Events [Text Block]",
        "terseLabel": "Subsequent Event(s)"
       }
      }
     },
     "localname": "SubsequentEventsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEvents1"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Different names of stock transactions and the different attributes of each transaction.",
        "label": "Subsidiary or Equity Method Investee, Sale of Stock by Subsidiary or Equity Investee [Table]",
        "terseLabel": "Subsidiary Or Equity Method Investee Sale Of Stock By Subsidiary Or Equity Investee [Table]"
       }
      }
     },
     "localname": "SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureNatureOfBusinessAndBasisOfPresentationAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsidiarySaleOfStockAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of sale of the entity's stock.",
        "label": "Sale of Stock [Axis]"
       }
      }
     },
     "localname": "SubsidiarySaleOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureBusinessCombinationAndReverseRecapitalizationAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsidiarySaleOfStockLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Subsidiary, Sale of Stock [Line Items]",
        "terseLabel": "Subsidiary Sale Of Stock [Line Items]"
       }
      }
     },
     "localname": "SubsidiarySaleOfStockLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureNatureOfBusinessAndBasisOfPresentationAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]",
        "terseLabel": "Supplemental cash flow information:"
       }
      }
     },
     "localname": "SupplementalCashFlowInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TaxPeriodAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information about the period subject to enacted tax laws.",
        "label": "Tax Period [Axis]"
       }
      }
     },
     "localname": "TaxPeriodAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TaxPeriodDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identified tax period.",
        "label": "Tax Period [Domain]"
       }
      }
     },
     "localname": "TaxPeriodDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TemporaryEquityAccretionToRedemptionValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of accretion of temporary equity to its redemption value during the period.",
        "label": "Temporary Equity, Accretion to Redemption Value",
        "negatedLabel": "Temporary Equity, Accretion of senior preferred stock to redemption value",
        "terseLabel": "Temporary Equity, Accretion of senior preferred stock to redemption value"
       }
      }
     },
     "localname": "TemporaryEquityAccretionToRedemptionValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment": {
     "auth_ref": [],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0
      },
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations": {
       "order": 0.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease to net income for accretion of temporary equity to its redemption value to derive net income apportioned to common stockholders.",
        "label": "Temporary Equity, Accretion to Redemption Value, Adjustment",
        "negatedLabel": "Accretion of Legacy Gelesis senior preferred stock to redemption value",
        "negatedTerseLabel": "Accretion of redeemable convertible preferred stock to redemption value",
        "totalLabel": "Accretion of senior preferred stock to redemption value"
       }
      }
     },
     "localname": "TemporaryEquityAccretionToRedemptionValueAdjustment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TemporaryEquityCarryingAmountAttributableToParent": {
     "auth_ref": [
      "r389",
      "r392",
      "r393",
      "r394",
      "r398",
      "r399"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount, attributable to parent, of an entity's issued and outstanding stock which is not included within permanent equity. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. Includes stock with a put option held by an ESOP and stock redeemable by a holder only in the event of a change in control of the issuer.",
        "label": "Temporary Equity, Carrying Amount, Attributable to Parent",
        "terseLabel": "Legacy Gelesis redeemable convertible preferred stock, $0.0001 par value - zero shares issued and outstanding at December 31, 2022; 51,730,762 shares authorized at December 31, 2021; and 48,566,655 shares issued and outstanding at December 31, 2021"
       }
      }
     },
     "localname": "TemporaryEquityCarryingAmountAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests": {
     "auth_ref": [
      "r34",
      "r270",
      "r356",
      "r588"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount, attributable to parent and noncontrolling interests, of an entity's issued and outstanding stock which is not included within permanent equity. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. Includes stock with a put option held by an ESOP and stock redeemable by a holder only in the event of a change in control of the issuer.",
        "label": "Temporary Equity, Carrying Amount, Including Portion Attributable to Noncontrolling Interests",
        "periodEndLabel": "Temporary Equity Balance",
        "periodStartLabel": "Temporary Equity Balance",
        "totalLabel": "Temporary Equity, Carrying Amount, Including Portion Attributable to Noncontrolling Interests, Total"
       }
      }
     },
     "localname": "TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TemporaryEquityForeignCurrencyTranslationAdjustments": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments to temporary equity resulting from foreign currency translation adjustments.",
        "label": "Temporary Equity, Foreign Currency Translation Adjustments",
        "negatedLabel": "Temporary Equity, Foreign currency translation adjustment",
        "terseLabel": "Temporary Equity, Foreign currency translation adjustment",
        "verboseLabel": "Foreign currency translation adjustment"
       }
      }
     },
     "localname": "TemporaryEquityForeignCurrencyTranslationAdjustments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfNoncontrollingInterestDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TemporaryEquityParOrStatedValuePerShare": {
     "auth_ref": [
      "r2",
      "r110"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per share amount of par value or stated value of stock classified as temporary equity. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable.",
        "label": "Temporary Equity, Par or Stated Value Per Share",
        "terseLabel": "Temporary equity, par value"
       }
      }
     },
     "localname": "TemporaryEquityParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_TemporaryEquitySharesAuthorized": {
     "auth_ref": [
      "r8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum number of securities classified as temporary equity that are permitted to be issued by an entity's charter and bylaws. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. If convertible, the issuer does not control the actions or events necessary to issue the maximum number of shares that could be required to be delivered under the conversion option if the holder exercises the option to convert the stock to another class of equity. If the security is a warrant or a rights issue, the warrant or rights issue is considered to be temporary equity if the issuer cannot demonstrate that it would be able to deliver upon the exercise of the option by the holder in all cases. Includes stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer.",
        "label": "Temporary Equity, Shares Authorized",
        "terseLabel": "Temporary equity, shares authorized"
       }
      }
     },
     "localname": "TemporaryEquitySharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_TemporaryEquitySharesIssued": {
     "auth_ref": [
      "r8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of securities classified as temporary equity that have been sold (or granted) to the entity's shareholders. Securities issued include securities outstanding and securities held in treasury. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. If convertible, the issuer does not control the actions or events necessary to issue the maximum number of shares that could be required to be delivered under the conversion option if the holder exercises the option to convert the stock to another class of equity. If the security is a warrant or a rights issue, the warrant or rights issue is considered to be temporary equity if the issuer cannot demonstrate that it would be able to deliver upon the exercise of the option by the holder in all cases. Includes stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer.",
        "label": "Temporary Equity, Shares Issued",
        "terseLabel": "Temporary equity, shares issued"
       }
      }
     },
     "localname": "TemporaryEquitySharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_TemporaryEquitySharesOutstanding": {
     "auth_ref": [
      "r8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of securities classified as temporary equity that have been issued and are held by the entity's shareholders. Securities outstanding equals securities issued minus securities held in treasury. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. If convertible, the issuer does not control the actions or events necessary to issue the maximum number of shares that could be required to be delivered under the conversion option if the holder exercises the option to convert the stock to another class of equity. If the security is a warrant or a rights issue, the warrant or rights issue is considered to be temporary equity if the issuer cannot demonstrate that it would be able to deliver upon the exercise of the option by the holder in all cases. Includes stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer.",
        "label": "Temporary Equity, Shares Outstanding",
        "periodEndLabel": "Temporary Equity Balance, shares",
        "periodStartLabel": "Temporary Equity Balance, shares",
        "terseLabel": "Temporary equity, shares outstanding",
        "verboseLabel": "Conversion of all classes of redeemable convertible preferred stock"
       }
      }
     },
     "localname": "TemporaryEquitySharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitScheduleOfCommonStockReservedForFutureIssuanceDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfNoncontrollingInterestRedeemableConvertiblePreferredStockAndStockholdersDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_TradeAndOtherAccountsReceivablePolicy": {
     "auth_ref": [
      "r219",
      "r220",
      "r221",
      "r346",
      "r347",
      "r348"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for accounts receivable.",
        "label": "Accounts Receivable [Policy Text Block]",
        "terseLabel": "Accounts Receivable"
       }
      }
     },
     "localname": "TradeAndOtherAccountsReceivablePolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r352",
      "r353",
      "r425",
      "r444",
      "r563",
      "r643",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r650",
      "r651",
      "r652",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663",
      "r664",
      "r665",
      "r666",
      "r667",
      "r668",
      "r669",
      "r670",
      "r671",
      "r672",
      "r830",
      "r831",
      "r832",
      "r912",
      "r913",
      "r914",
      "r915",
      "r916",
      "r917",
      "r918"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Instrument or contract that imposes a contractual obligation to deliver cash or another financial instrument or to exchange other financial instruments on potentially unfavorable terms and conveys a contractual right to receive cash or another financial instrument or to exchange other financial instruments on potentially favorable terms.",
        "label": "Financial Instruments [Domain]",
        "terseLabel": "Financial Instruments"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilityAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfEarnoutLiabilityActivityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInFairValueOfCompanysLevel3FinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TypeOfAdoptionMember": {
     "auth_ref": [
      "r223",
      "r224",
      "r225",
      "r226",
      "r227",
      "r281",
      "r282",
      "r283",
      "r284",
      "r296",
      "r349",
      "r350",
      "r360",
      "r361",
      "r362",
      "r363",
      "r365",
      "r366",
      "r507",
      "r508",
      "r509",
      "r533",
      "r534",
      "r535",
      "r536",
      "r551",
      "r552",
      "r553",
      "r565",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r589",
      "r590",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r597",
      "r614",
      "r615",
      "r619",
      "r620",
      "r621",
      "r622",
      "r628",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r681",
      "r682",
      "r683",
      "r705",
      "r706",
      "r707",
      "r708",
      "r709",
      "r710",
      "r711",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amendment to accounting standards.",
        "label": "Accounting Standards Update [Domain]"
       }
      }
     },
     "localname": "TypeOfAdoptionMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TypeOfArrangementAxis": {
     "auth_ref": [
      "r888"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by collaborative arrangement and arrangement other than collaborative applicable to revenue-generating activity or operations.",
        "label": "Collaborative Arrangement and Arrangement Other than Collaborative [Axis]",
        "terseLabel": "Collaborative Arrangement and Arrangement Other than Collaborative"
       }
      }
     },
     "localname": "TypeOfArrangementAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureProductRevenueAndReserveAndAllowancesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSignificantAgreementsSummaryOfAmountsRecognizedOnConsolidatedStatementsOfOperationsAndOnConsolidatedBalanceSheetsDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureCommitmentAndContingenciesAdditionalInformationDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSignificantAgreementsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_UnrecognizedTaxBenefits": {
     "auth_ref": [
      "r511",
      "r518"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesReconciliationOfBeginningAndEndingAmountOfUncertainTaxPositionsDetails": {
       "order": 1.0,
       "parentTag": "gls_ResearchCreditTaxAssetsNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrecognized tax benefits.",
        "label": "Unrecognized Tax Benefits",
        "negatedPeriodEndLabel": "Unrecognized tax benefits at the end of year",
        "negatedPeriodStartLabel": "Unrecognized tax benefits at the beginning of year",
        "periodEndLabel": "Unrecognized tax benefits at the end of year",
        "periodStartLabel": "Unrecognized tax benefits at the beginning of year"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefits",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesReconciliationOfBeginningAndEndingAmountOfUncertainTaxPositionsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestExpense": {
     "auth_ref": [
      "r517"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for interest on an underpayment of income taxes and penalties related to a tax position claimed or expected to be claimed in the tax return.",
        "label": "Unrecognized Tax Benefits, Income Tax Penalties and Interest Expense",
        "terseLabel": "Estimated interest or penalties on Uncertain tax position",
        "totalLabel": "Unrecognized Tax Benefits, Income Tax Penalties and Interest Expense, Total"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions": {
     "auth_ref": [
      "r520"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return.",
        "label": "Unrecognized Tax Benefits, Increase Resulting from Current Period Tax Positions",
        "negatedLabel": "Increase for current year positions",
        "terseLabel": "Increase for current year positions"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesReconciliationOfBeginningAndEndingAmountOfUncertainTaxPositionsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions": {
     "auth_ref": [
      "r519"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in unrecognized tax benefits resulting from tax positions taken in prior period tax returns.",
        "label": "Unrecognized Tax Benefits, Increase Resulting from Prior Period Tax Positions",
        "terseLabel": "Increase for prior year positions"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesReconciliationOfBeginningAndEndingAmountOfUncertainTaxPositionsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsReductionsResultingFromLapseOfApplicableStatuteOfLimitations": {
     "auth_ref": [
      "r521"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease in unrecognized tax benefits resulting from lapses of applicable statutes of limitations.",
        "label": "Unrecognized Tax Benefits, Reduction Resulting from Lapse of Applicable Statute of Limitations",
        "terseLabel": "Expiration of statute of limitations"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsReductionsResultingFromLapseOfApplicableStatuteOfLimitations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureIncomeTaxesReconciliationOfBeginningAndEndingAmountOfUncertainTaxPositionsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UseOfEstimates": {
     "auth_ref": [
      "r72",
      "r73",
      "r74",
      "r316",
      "r317",
      "r318",
      "r319"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for the use of estimates in the preparation of financial statements in conformity with generally accepted accounting principles.",
        "label": "Use of Estimates, Policy [Policy Text Block]",
        "terseLabel": "Use of Estimates"
       }
      }
     },
     "localname": "UseOfEstimates",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount": {
     "auth_ref": [
      "r527"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in the valuation allowance for a specified deferred tax asset.",
        "label": "Valuation Allowance, Deferred Tax Asset, Increase (Decrease), Amount",
        "terseLabel": "Adjustment to record deferred tax liability",
        "verboseLabel": "Change in valuation allowance"
       }
      }
     },
     "localname": "ValuationAllowanceDeferredTaxAssetChangeInAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationTechniqueAxis": {
     "auth_ref": [
      "r179"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by valuation approach and technique.",
        "label": "Valuation Approach and Technique [Axis]"
       }
      }
     },
     "localname": "ValuationTechniqueAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ValuationTechniqueDomain": {
     "auth_ref": [
      "r179"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation approach and technique.",
        "label": "Valuation Approach and Technique [Domain]"
       }
      }
     },
     "localname": "ValuationTechniqueDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureEarnoutLiabilitySummaryOfWeightedAverageAssumptionsUsedToDetermineFairValueOfEarnoutLiabilityDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureWarrantLiabilitiesSummaryOfWeightedAverageAssumptionsOfFairValueOfLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ValueAddedTaxReceivableCurrent": {
     "auth_ref": [
      "r797"
     ],
     "calculation": {
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_PrepaidExpenseAndOtherAssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of value added taxes due either from customers arising from sales on credit terms, or as previously overpaid to tax authorities. For classified balance sheets, represents the current amount receivable, that is amounts expected to be collected within one year or the normal operating cycle, if longer.",
        "label": "Value Added Tax Receivable, Current",
        "terseLabel": "Value added tax receivable"
       }
      }
     },
     "localname": "ValueAddedTaxReceivableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_VariableRateAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of variable rate.",
        "label": "Variable Rate [Axis]"
       }
      }
     },
     "localname": "VariableRateAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableRateDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index.",
        "label": "Variable Rate [Domain]"
       }
      }
     },
     "localname": "VariableRateDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_WarrantsAndRightsNoteDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants and Rights Note Disclosure [Abstract]"
       }
      }
     },
     "localname": "WarrantsAndRightsNoteDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_WarrantsAndRightsOutstandingTerm": {
     "auth_ref": [
      "r892"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period between issuance and expiration of outstanding warrant and right embodying unconditional obligation requiring redemption by transferring asset at specified or determinable date or upon event certain to occur, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Warrants and Rights Outstanding, Term",
        "terseLabel": "Expected term",
        "verboseLabel": "Warrants expiration term"
       }
      }
     },
     "localname": "WarrantsAndRightsOutstandingTerm",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/DisclosureStockholdersEquityDeficitAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r299",
      "r306"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period.",
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "terseLabel": "Weighted average common shares outstanding, diluted",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Diluted, Total"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number of Shares Outstanding, Diluted [Abstract]",
        "terseLabel": "Denominator:"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r297",
      "r306"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period.",
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "terseLabel": "Weighted average common shares outstanding, basic",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Basic, Total"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://ir.gelesis.com/20221231/taxonomy/role/Role_DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedNetLossPerShareDetails",
      "http://ir.gelesis.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "sharesItemType"
    }
   },
   "unitCount": 12
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "205",
   "URI": "https://asc.fasb.org/topic&trid=2122149",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=6361739&loc=d3e7789-107766",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r10": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "460",
   "URI": "https://asc.fasb.org/extlink&oid=124440162&loc=d3e12021-110248",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "460",
   "URI": "https://asc.fasb.org/extlink&oid=124440162&loc=d3e12053-110248",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123465755&loc=d3e1835-112601",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123465755&loc=SL6230698-112601",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466302&loc=d3e4724-112606",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "470",
   "URI": "https://asc.fasb.org/topic&trid=2208564",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=109262497&loc=d3e20148-110875",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=109262807&loc=d3e22047-110879",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "63",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=126970277&loc=d3e23176-110880",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(CFRR 211.02)",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=122040564&loc=d3e177068-122764",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r11": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=122040564&loc=d3e177068-122764",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(12)(c)",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=122040564&loc=SL6540498-122764",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r112": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(16)(c)",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=122040564&loc=SL6540498-122764",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r113": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(3)",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=122040564&loc=SL6540498-122764",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "14",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=122040564&loc=SL6540498-122764",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "15",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=122040564&loc=SL6540498-122764",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=65888546&loc=d3e21300-112643",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21553-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21463-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21475-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r12": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21484-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21488-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21506-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21521-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21538-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "50",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=6784392&loc=d3e188667-122775",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "505",
   "URI": "https://asc.fasb.org/topic&trid=2208762",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "710",
   "URI": "https://asc.fasb.org/topic&trid=2127225",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "712",
   "URI": "https://asc.fasb.org/topic&trid=2197446",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "715",
   "URI": "https://asc.fasb.org/topic&trid=2235017",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5047-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b),(f(1))",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r139": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r140": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=SL79508275-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r141": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126964447&loc=d3e11149-113907",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r142": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126964447&loc=d3e11178-113907",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "https://asc.fasb.org/topic&trid=2228938",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r144": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "35",
   "Subparagraph": "(a)",
   "Topic": "720",
   "URI": "https://asc.fasb.org/extlink&oid=6420018&loc=d3e36677-107848",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r145": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "730",
   "URI": "https://asc.fasb.org/extlink&oid=6420194&loc=d3e21568-108373",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r146": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32687-109319",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32718-109319",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32559-109319",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(31))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32632-109319",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=123586518&loc=d3e1043-128460",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1486-128463",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092470&loc=d3e4845-128472",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "30",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=6911189&loc=d3e6408-128476",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126966325&loc=d3e6819-128478",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4568447-111683",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(32))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4568740-111683",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4569616-111683",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4569643-111683",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c),(3)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4I",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=120409616&loc=SL4590271-111686",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=120409616&loc=SL4591551-111686",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "182",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=127000641&loc=SL5629052-113961",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126731327&loc=d3e90193-114008",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126731327&loc=d3e90198-114008",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126731327&loc=d3e90205-114008",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "815",
   "URI": "https://asc.fasb.org/topic&trid=2229140",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19279-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "820",
   "URI": "https://asc.fasb.org/topic&trid=2155941",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=123444420&loc=d3e33268-110906",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124435984&loc=d3e28541-108399",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r186": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124435984&loc=d3e28551-108399",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124435984&loc=d3e28555-108399",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r19": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(c))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r190": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39603-107864",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "940",
   "URI": "https://asc.fasb.org/extlink&oid=126941158&loc=d3e41242-110953",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(11))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(13))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(1))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(2))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(16))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(23))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(27)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r20": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.12)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.10)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.17)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(15))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r203": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(22))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.9)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(15)(b)(2))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(16))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(15)(b)(1))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r21": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(a)(5))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(8))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r214": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.(a),19)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.5(c))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(18))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(8))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "985",
   "URI": "https://asc.fasb.org/extlink&oid=6501960&loc=d3e128462-111756",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524",
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(a))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5212-111524",
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5093-111524",
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(n)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef"
  },
  "r223": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6904-107765",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=6361739&loc=d3e7789-107766",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r233": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(13))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(14))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(17))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(18))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(27)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r24": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19,20)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(7))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(9))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r246": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(2))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669619-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669619-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669619-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19,20,22)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669625-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669625-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL116659661-227067",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442407-227067",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442411-227067",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124452729-227067",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(210.5-03(11))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(24))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(25))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(7)(d))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r26": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3367-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3444-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3000-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3521-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r266": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4297-108586",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r267": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=126899994&loc=d3e18726-107790",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r268": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(c))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r269": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(e)(1))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.20)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r270": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r271": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(1))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r272": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r274": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(iii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(2)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21914-107793",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21930-107793",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21711-107793",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.21)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(4)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=SL124452830-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22583-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22595-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22658-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22663-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=122038215&loc=d3e31010-122693",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.M.Q2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=122038215&loc=d3e31137-122693",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1448-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1377-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1505-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r30": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1252-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1278-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=SL5780133-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=SL5780133-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=SL5780133-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1337-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3630-109257",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=109243012&loc=SL65017193-207537",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r31": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.23)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=128363288&loc=d3e3842-109258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "https://asc.fasb.org/topic&trid=2144383",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "270",
   "URI": "https://asc.fasb.org/extlink&oid=126900757&loc=d3e543-108305",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "https://asc.fasb.org/extlink&oid=125520817&loc=d3e70191-108054",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "https://asc.fasb.org/extlink&oid=6373374&loc=d3e70434-108055",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "272",
   "URI": "https://asc.fasb.org/extlink&oid=6373374&loc=d3e70478-108055",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e5967-108592",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e5967-108592",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6161-108592",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6191-108592",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.24)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8813-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8864-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8864-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8864-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8864-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r33": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.25)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8864-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8864-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.27(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9031-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9038-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9038-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "42",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9054-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=124259787&loc=d3e4428-111522",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=124259787&loc=d3e4531-111522",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e4975-111524",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5033-111524",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r348": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=84159169&loc=d3e10133-111534",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r349": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=126986314&loc=SL124402458-218513",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=126986314&loc=SL124402458-218513",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(d)(1)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=126986314&loc=SL124402458-218513",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27232-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=SL120269820-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r354": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "321",
   "URI": "https://asc.fasb.org/extlink&oid=123583714&loc=SL75117360-209713",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL120254519-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL120320025-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL120320025-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-30)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(4)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919244-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919253-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r37": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919258-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919230-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922895-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922900-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "330",
   "URI": "https://asc.fasb.org/extlink&oid=116847112&loc=d3e4492-108314",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r376": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "330",
   "URI": "https://asc.fasb.org/extlink&oid=116847112&loc=d3e4556-108314",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r377": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "330",
   "URI": "https://asc.fasb.org/topic&trid=2126998",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Topic": "340",
   "URI": "https://asc.fasb.org/extlink&oid=126905020&loc=d3e5879-108316",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "340",
   "URI": "https://asc.fasb.org/extlink&oid=6387103&loc=d3e6435-108320",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r38": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "420",
   "URI": "https://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "440",
   "URI": "https://asc.fasb.org/extlink&oid=123406679&loc=d3e25336-109308",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "440",
   "URI": "https://asc.fasb.org/extlink&oid=123406679&loc=d3e25336-109308",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14326-108349",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14435-108349",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14557-108349",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r387": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 5.Y.Q2)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=27011672&loc=d3e149879-122751",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 5.Y.Q4)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=27011672&loc=d3e149879-122751",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r39": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a-c)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(B))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(5))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(i))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r397": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(C))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r398": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r399": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(5))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(20))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r40": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r400": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r401": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r402": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r403": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r404": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r405": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r406": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r407": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(i)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r409": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495334-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r41": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e637-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r410": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495334-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r411": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495334-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r412": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r415": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r416": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r417": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r418": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r42": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e681-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r421": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r423": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r424": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r425": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r426": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r427": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r428": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r429": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r43": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669686-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r430": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r431": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r432": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r433": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r434": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r435": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r436": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r437": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r438": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496171-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r439": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496171-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r44": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e557-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r440": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496171-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r441": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496180-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r442": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496189-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r443": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496189-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496189-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r445": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496189-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r446": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21463-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r447": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21475-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r448": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r449": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130556-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r45": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(10))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r450": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130558-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r451": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130561-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r452": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130563-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r453": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130563-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r454": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130564-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r455": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130566-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r456": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130566-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r457": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130566-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r458": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130566-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r459": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130543-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(20))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r460": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130545-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r461": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "606",
   "URI": "https://asc.fasb.org/topic&trid=49130388",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r462": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(i)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r463": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r464": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r465": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r466": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r467": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r468": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(03)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r469": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(n)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(4))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r470": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(d)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r471": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(f)(3)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r472": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126961718&loc=SL116886442-113899",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r473": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126961718&loc=d3e4534-113899",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r474": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126961718&loc=d3e4549-113899",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r475": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r476": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r477": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r478": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r479": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r480": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r481": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r482": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r483": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r484": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r485": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r486": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r487": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r488": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r489": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.19)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r490": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r491": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r492": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r493": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r494": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r495": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r496": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r497": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r498": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r499": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r50": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.2(a),(d))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r500": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r501": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(v)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r502": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r503": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r504": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r505": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r506": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(l)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r507": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128097895&loc=SL121327923-165333",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r508": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128097895&loc=SL121327923-165333",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r509": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128097895&loc=SL121327923-165333",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.2)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r510": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "https://asc.fasb.org/topic&trid=2228938",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r511": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123427490&loc=SL37586934-109318",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r512": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123427490&loc=d3e32247-109318",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r513": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123427490&loc=d3e32280-109318",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r514": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32672-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r515": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32687-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r516": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32705-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r517": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32718-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r518": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=SL6600010-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r519": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=SL6600010-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r52": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.4)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r520": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=SL6600010-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r521": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=SL6600010-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r522": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32809-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r523": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32840-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r524": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r525": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r526": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r527": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r528": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32847-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r529": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32857-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r53": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.9)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r530": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r531": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r532": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r533": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r534": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r535": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r536": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(3)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r537": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r538": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.5.Q1)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r539": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.7)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r540": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.1)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r541": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.2)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r542": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.3)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r543": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.4)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r544": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.C)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330215-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r545": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123586238&loc=d3e38679-109324",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r546": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "270",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=6424409&loc=d3e44925-109338",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r547": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=6424122&loc=d3e41874-109331",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r548": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=6424122&loc=d3e41874-109331",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r549": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "740",
   "URI": "https://asc.fasb.org/topic&trid=2144680",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r550": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092470&loc=d3e4946-128472",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r551": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r552": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r553": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r554": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)(1)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r555": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4569616-111683",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r556": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r557": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r558": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r559": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r560": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r561": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r562": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=121483254&loc=SL120254523-199619",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r563": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126731327&loc=d3e90205-114008",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r564": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126731327&loc=SL126733271-114008",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r565": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r566": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(2)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r567": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r568": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r569": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)(2)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r57": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r570": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r571": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r572": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(2)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r573": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r574": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(4)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r575": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r576": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL126732908-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r577": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r578": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r579": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r580": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(1)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r581": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r582": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r583": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r584": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r585": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r586": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19279-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r587": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=SL6742756-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r588": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123596393&loc=d3e14064-108612",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r589": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL120254526-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r59": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r590": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL120254526-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r591": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL120254526-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r592": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r593": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r594": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r595": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r596": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL122642865-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r597": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL122642865-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r598": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=126980362&loc=d3e28228-110885",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r599": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=126980362&loc=d3e28129-110885",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r6": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(a))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3521-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r600": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "20",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=123602790&loc=d3e30226-110892",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r601": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "20",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=123602790&loc=d3e30304-110892",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r602": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=125521441&loc=d3e30690-110894",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r603": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=124440516&loc=d3e30840-110895",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r604": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=123444420&loc=d3e33268-110906",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r605": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32022-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r606": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32136-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r607": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r608": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r609": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r610": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r611": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r612": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=6450520&loc=d3e32618-110901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r613": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "830",
   "URI": "https://asc.fasb.org/topic&trid=2175825",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r614": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "832",
   "URI": "https://asc.fasb.org/extlink&oid=128342835&loc=SL128342857-244232",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r615": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "832",
   "URI": "https://asc.fasb.org/extlink&oid=128342835&loc=SL128342857-244232",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r616": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=6450988&loc=d3e26243-108391",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r617": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124429444&loc=SL124452920-239629",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r618": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL120154346-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r619": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r620": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r621": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r622": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r623": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r624": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r625": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918666-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r626": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(4)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r627": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918701-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r628": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL122150809-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r629": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r630": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r631": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r632": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r633": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r634": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r635": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r636": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r637": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r638": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39691-107864",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r639": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "850",
   "URI": "https://asc.fasb.org/topic&trid=2122745",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r640": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "855",
   "URI": "https://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r641": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "https://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r642": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "855",
   "URI": "https://asc.fasb.org/topic&trid=2122774",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r643": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(i)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r644": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(ii)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r645": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r646": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r647": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r648": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r649": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r650": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r651": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r652": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r653": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r654": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r655": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r656": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=66007379&loc=d3e113888-111728",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r657": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=109249958&loc=SL34722452-111729",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r658": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122625-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r659": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122625-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3044-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r660": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122625-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r661": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)(i)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122625-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r662": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r663": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r664": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r665": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r666": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(5)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r667": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(6)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r668": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(7)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r669": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4273-108586",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r670": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r671": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r672": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r673": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "910",
   "URI": "https://asc.fasb.org/extlink&oid=126937589&loc=SL119991595-234733",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r674": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Subparagraph": "(b)",
   "Topic": "912",
   "URI": "https://asc.fasb.org/extlink&oid=126938201&loc=d3e55415-109406",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r675": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "330",
   "Topic": "912",
   "URI": "https://asc.fasb.org/extlink&oid=6471895&loc=d3e55923-109411",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r676": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "350",
   "Subparagraph": "(a)",
   "Topic": "920",
   "URI": "https://asc.fasb.org/extlink&oid=120155617&loc=SL120155628-234783",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r677": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "350",
   "Subparagraph": "(b)",
   "Topic": "920",
   "URI": "https://asc.fasb.org/extlink&oid=120155617&loc=SL120155628-234783",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r678": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "350",
   "Subparagraph": "(a)",
   "Topic": "920",
   "URI": "https://asc.fasb.org/extlink&oid=120155617&loc=SL120155638-234783",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r679": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.L)",
   "Topic": "924",
   "URI": "https://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=SL98516268-108586",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r680": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "926",
   "URI": "https://asc.fasb.org/extlink&oid=120154696&loc=d3e54445-107959",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r681": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "926",
   "URI": "https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r682": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "926",
   "URI": "https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r683": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "926",
   "URI": "https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r684": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e61929-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r685": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e61929-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r686": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62059-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r687": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62059-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r688": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62395-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r689": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62395-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "https://asc.fasb.org/topic&trid=2122369",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r690": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62479-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r691": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62479-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r692": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=SL6807758-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r693": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=SL6807758-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r694": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(c)(1)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e61872-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r695": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(c)(2)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e61872-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r696": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(26))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r697": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(27))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r698": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399901&loc=d3e537907-122884",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r699": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=124429447&loc=SL124453093-239630",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r700": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(3))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r701": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(22))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r702": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(23))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r703": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(9))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r704": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124506351&loc=SL117782755-158439",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r705": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r706": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r707": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r708": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r709": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(2)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3630-109257",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r710": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r711": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(i)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r712": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(ii)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r713": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iii)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r714": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iv)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r715": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r716": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(2)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r717": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13(Column B)(Footnote 1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611282-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r718": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13(Column C)(Footnote 1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611282-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r719": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13(Column D)(Footnote 1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611282-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6061-108592",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r720": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13(Column E)(Footnote 1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611282-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r721": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13(Column F)(Footnote 1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611282-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r722": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13(Column G)(Footnote 1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611282-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r723": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "https://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r724": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "440",
   "Subparagraph": "(a)",
   "Topic": "954",
   "URI": "https://asc.fasb.org/extlink&oid=6491277&loc=d3e6429-115629",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r725": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Subparagraph": "(d)",
   "Topic": "958",
   "URI": "https://asc.fasb.org/extlink&oid=126982197&loc=d3e99779-112916",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r726": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "958",
   "URI": "https://asc.fasb.org/extlink&oid=126982197&loc=d3e99893-112916",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r727": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "958",
   "URI": "https://asc.fasb.org/extlink&oid=126982197&loc=SL120174063-112916",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r728": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column B))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r729": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column C))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6132-108592",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r730": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column D))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r731": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column E))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r732": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column F))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r733": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column G))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r734": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column H))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r735": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column I))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r736": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 2))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r737": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(c)",
   "Topic": "976",
   "URI": "https://asc.fasb.org/extlink&oid=6497875&loc=d3e22274-108663",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r738": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(b)",
   "Topic": "978",
   "URI": "https://asc.fasb.org/extlink&oid=126945304&loc=d3e27327-108691",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r739": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1402",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6143-108592",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r740": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r741": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r742": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r743": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(g)(1)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r744": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=99393222&loc=SL20226024-175313",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r745": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=99393222&loc=SL20226049-175313",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r746": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=99393222&loc=SL20226052-175313",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r747": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=126899994&loc=d3e18823-107790",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r748": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=126899994&loc=d3e18823-107790",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r749": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=126899994&loc=d3e18823-107790",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "275",
   "URI": "https://asc.fasb.org/topic&trid=2134479",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r750": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=128363288&loc=d3e4984-109258",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r751": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r752": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8924-108599",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r753": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=121590138&loc=SL82922954-210456",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r754": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "340",
   "URI": "https://asc.fasb.org/extlink&oid=126905020&loc=d3e5879-108316",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r755": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r756": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69B",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495735-112612",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r757": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69C",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495737-112612",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r758": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69E",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495743-112612",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r759": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495745-112612",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9031-108599",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r760": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r761": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130551-203045",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r762": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r763": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r764": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r765": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r766": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123450688&loc=d3e4179-114921",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r767": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r768": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r769": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=35742348&loc=SL14450788-114948",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.E)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=122038336&loc=d3e74512-122707",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r770": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r771": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r772": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r773": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "217",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126976462&loc=d3e36027-109320",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r774": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=120409616&loc=SL4591551-111686",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r775": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=120409616&loc=SL4591552-111686",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r776": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r777": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "53",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r778": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=84165509&loc=d3e56426-112766",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r779": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126561865&loc=SL117783719-158441",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "310",
   "URI": "https://asc.fasb.org/topic&trid=2196771",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r780": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126561865&loc=SL117783719-158441",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r781": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126561865&loc=SL117819544-158441",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r782": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r783": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r784": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "d1-1",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r785": {
   "Name": "Form 10-K",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "310",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r786": {
   "Name": "Form 20-F",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "220",
   "Subsection": "f",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r787": {
   "Name": "Form 40-F",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "240",
   "Subsection": "f",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r788": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r789": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=109237563&loc=d3e33749-111570",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r790": {
   "Name": "Securities Act",
   "Number": "230",
   "Publisher": "SEC",
   "Section": "405",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r791": {
   "Name": "Securities Act",
   "Number": "7A",
   "Publisher": "SEC",
   "Section": "B",
   "Subsection": "2",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r792": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "https://asc.fasb.org/extlink&oid=125520817&loc=d3e70229-108054",
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef"
  },
  "r793": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14615-108349",
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef"
  },
  "r794": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "https://asc.fasb.org/extlink&oid=6842918&loc=SL6314020-165662",
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef"
  },
  "r795": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(10))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r796": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(c))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r797": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(3)(a)(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r798": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r799": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a)(3))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(27)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r800": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a)(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r801": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r802": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(9))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r803": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442407-227067",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r804": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442411-227067",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r805": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124452729-227067",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r806": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r807": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r808": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r809": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r810": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(d))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r811": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(f))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r812": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r813": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(1)(Note 1))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r814": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(k)(1))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r815": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21914-107793",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r816": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21930-107793",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r817": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21711-107793",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r818": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=SL124452830-107794",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r819": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22583-107794",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r82": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r820": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22595-107794",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r821": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r822": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r823": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22658-107794",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r824": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "55",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e2626-109256",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r825": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r826": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8672-108599",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r827": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=124259787&loc=d3e4647-111522",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r828": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r829": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27232-111563",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "330",
   "URI": "https://asc.fasb.org/extlink&oid=116847112&loc=d3e4492-108314",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r830": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "321",
   "URI": "https://asc.fasb.org/extlink&oid=126980263&loc=SL75117539-209714",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r831": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "321",
   "URI": "https://asc.fasb.org/extlink&oid=126980263&loc=SL75117539-209714",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r832": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "321",
   "URI": "https://asc.fasb.org/extlink&oid=126980263&loc=SL75117539-209714",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r833": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r834": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r835": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(4)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r836": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "340",
   "URI": "https://asc.fasb.org/extlink&oid=6387103&loc=d3e6435-108320",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r837": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "410",
   "URI": "https://asc.fasb.org/extlink&oid=6393242&loc=d3e13237-110859",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r838": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14435-108349",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r839": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14557-108349",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.L)",
   "Topic": "330",
   "URI": "https://asc.fasb.org/extlink&oid=27011343&loc=d3e99989-122729",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r840": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14557-108349",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r841": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 5.Y.Q2)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=27011672&loc=d3e149879-122751",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r842": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "450",
   "URI": "https://asc.fasb.org/topic&trid=2127136",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r843": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=28183603&loc=d3e692-112598",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r844": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(ii))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r845": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r846": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r847": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r848": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r849": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130545-203045",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=6388964&loc=d3e16212-109274",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r850": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "27",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130611-203046-203046",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r851": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r852": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "705",
   "URI": "https://asc.fasb.org/topic&trid=2122478",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r853": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r854": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r855": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r856": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r857": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r858": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r859": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=6388964&loc=d3e16225-109274",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r860": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r861": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r862": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r863": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r864": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r865": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r866": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r867": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r868": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r869": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "((a)(1),(b))",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r870": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r871": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r872": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r873": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r874": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r875": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r876": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r877": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r878": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(v)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r879": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r88": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r880": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32687-109319",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r881": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=SL6600010-109319",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r882": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r883": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32621-109319",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r884": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r885": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r886": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r887": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.4)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r888": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "808",
   "URI": "https://asc.fasb.org/extlink&oid=6931272&loc=SL5834143-161434",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r889": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r89": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(2)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r890": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r891": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r892": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r893": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123596393&loc=d3e14064-108612",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r894": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918638-209977",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r895": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918673-209980",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r896": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(1)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r897": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918701-209980",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r898": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r899": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r9": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(27))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=109226317&loc=d3e202-110218",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r900": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39599-107864",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r901": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39603-107864",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r902": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r903": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r904": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r905": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r906": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r907": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r908": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r909": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=126905813&loc=d3e1205-110223",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r910": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "730",
   "Topic": "912",
   "URI": "https://asc.fasb.org/extlink&oid=6472174&loc=d3e58812-109433",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r911": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=116884468&loc=SL65671331-158438",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r912": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1402",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r913": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(1)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r914": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r915": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(3)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r916": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(i)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r917": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(ii)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r918": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(iii)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r92": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=126905981&loc=d3e2611-110228",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.CC)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=27011434&loc=d3e125687-122742",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "360",
   "URI": "https://asc.fasb.org/topic&trid=2155823",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "440",
   "URI": "https://asc.fasb.org/topic&trid=2144648",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  }
 },
 "version": "2.2"
}
