/* AEM page hack */
.bannerStyle {
    width: 100% !important;
    padding: 0;
    margin: 0;
}

.page-heading-section + .content-wrapper {
  margin: 0;
  width: 100%;
  border: none;
}

.page-heading-section.container,
.page-content-bottom.section-wrapper,
.home-disclaimer.section-wrapper {
  display: none;
}

.template-basic .section-wrapper {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.template-basic .section-content {
  padding: 0px;
}
.template-basic .section-content .row {
  margin-left: 0px;
  margin-right: 0px;
}

main#pageMain {
  padding-bottom: 0px;
}

.container.home-disclaimer.section-wrapper {
  margin: 0;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F4F4F4;
}

::-webkit-scrollbar-thumb {
  background: #A2A2A4;
}

::-webkit-scrollbar-thumb:hover {
  background: #6C6C6E;
}

/* AEM Page hack END */
/* Global Styles */
a {
    color: #1460AA;
}

p, li {
    font-weight: 400;
}

b, strong {
    font-weight: 700;
}

p.text-small {
    font-size: 12px;
}

.btn-primary {
    padding: 12px 32px;
    background: #1460AA;
    color: #fff !important;
    border: 1px solid #1460AA;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all .2s ease-in-out;
    cursor: pointer;
    font-size: 16px;
}

.btn-secondary {
    display: flex;
    min-width: 120px;
    padding: 12px 32px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    align-self: stretch;
    color: #1460AA !important;
    text-decoration: none;
    border: 1px solid;
    border-radius: 24px;
}

.btn-primary:hover, .btn-primary:focus, .btn-secondary:hover, .btn-secondary:focus {
    text-decoration: none;
}

a.btn-secondary:hover {
    border: 1px solid #1460AA;
}

@media screen and (max-width: 767px) {
    a.btn-primary {
      display: flex;
      width: fit-content;
      justify-content: center;
      width: 100%;
    }

    a.btn-secondary {
      width: 100%;
    }

  .main-content h2 {
      font-size: 20px !important;
      font-weight: 700;
  }

  .main-content p, .main-content a, .main-content li {
    font-size: 16px;
  }

   .main-content p {
    font-weight: 400;
   }
}

@media screen and (min-width: 1024px) {
    a.btn-secondary {
      width: fit-content;
    }
}

@media screen and (min-width: 768px) {
    a.btn-primary {
        display: flex;
        width: fit-content;
    }
}

@media screen and (max-width: 1024px) {
  .main-content {
    padding: 24px 0 0;
  }

  section h2 {
    padding-bottom: 24px;
  }

  .bottom-padding {
    padding-bottom: 64px;
  }

  .main-content h2 {
      font-size: 24px;
      font-weight: 700;
  }
}

@media screen and (min-width: 1025px) {
  .main-content {
    padding: 40px 0 0;
  }

  .main-content h2 {
      font-size: 28px;
      font-weight: 700;
  }

  section h2 {
    padding-bottom: 40px;
  }

  .standard-policy h2, .economy-basic h2 {
    padding-bottom: 0 !important;
  }

  .bottom-padding {
      padding-bottom: 80px;
  }
}

/* Page Layout */
.main-content-inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.left-column {
    max-width: 892px;
}

.right-column {
    width: 280px;
}

@media screen and (max-width: 767px) {
  .main-content-inner {
      padding: 0 16px;
  }

  .carry-on-baggage .main-content h2, .carry-on-baggage section.more-information, .carry-on-baggage .accordion, .carry-on-baggage .main-content-inner, .carry-on-baggage .content-left {
      padding: 0 16px;
  }

  .accordion a {
    font-size: 14px;
  }

  .economy-basic .content-left {
      padding: 24px 16px 0;
  }

  .carry-on-baggage .important-note-yellow {
    margin: 40px 16px 16px;
  }

  .carry-on-baggage .main-content h2 {
      padding: 0 16px 24px;
  }

  .carry-on-baggage section#standard-policy h2 {
    padding-bottom: 0;
    padding-top: 24px;
  }

  .carry-on-baggage section#faq {
    padding-bottom: 32px;
  }

  .carry-on-baggage .tab-content > div {
      padding: 0 16px;
  }

  .carry-on-baggage .bottom-padding {
      padding-bottom: 32px !important;
  }
}

@media screen and (max-width: 1024px) {
    .main-content-inner {
        flex-direction: column;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .main-content-inner {
    padding: 0 32px;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1280px) {
  .main-content-inner {
    padding: 0 32px;
  }
}

@media screen and (min-width: 1025px) {
  .left-column {
    padding-right: 32px;
  }
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    padding: 8px 32px;
    background: #F9F9F9;
}

.breadcrumb img {
    padding-right: 8px;
}

.breadcrumb p {
    font-size: 14px;
    font-weight: 400;
    color: #6D6D6F;
    line-height: 20px;
    padding-right: 8px;
}

@media screen and (max-width: 1024px) {
    .breadcrumb {
        padding-left: 16px;
        max-height: 40px;
    }

  .breadcrumb div {
      display: flex;
      padding-top: 8px;
  }
}

@media screen and (min-width: 1025px) {
  .breadcrumb div {
      display: flex;
      width: 1200px;
      justify-content: flex-start;
      padding-top: 8px;
  }
}

/* Header Section */
.header {
  background: #F9F9F9;
}

.header-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.header-left {
    max-width: 792px;
    padding: 48px 0;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.qr-code img {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15);
}

nav.on-this-page h3 {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    padding-bottom: 16px;
}

nav.on-this-page h3::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url(/content/dam/aircanada/portal/images/baggage/bookmark.png);
    vertical-align: bottom;
}

nav.on-this-page ul {
    color: #1460AA;
}

@media screen and (max-width: 767px) {
    .header-content {
        display: flex;
        flex-direction: column;
    }

    .header-right img {
        width: 50%;
        margin-right: 16px;
    }

    .header-content h1 {
      font-size: 24px;
      font-weight: 700;
      margin-top: 0;
      margin-bottom: 16px;
    }

    .header-content p {
      font-size: 18px;
      font-weight: 400;
    }

    .qr-code {
        display: none;
    }

    .header-left {
      padding: 40px 16px 24px;
    }

    nav.on-this-page h3 {
      padding-bottom: 0 !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .header-left {
        padding-left: 32px;
    }

    .header-right img {
        height: 234.734px;
        padding-right: 32px;
    }

    .header-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
    }

    .header-content h1 {
      font-size: 28px;
      font-weight: 700;
      margin-top: 0;
    }

    .header-content p {
      font-size: 18px;
      font-weight: 400;
    }

    .qr-code {
        display: none;
    }
}

@media screen and (min-width: 1025px) {
    .header {
        padding: 0 32px;
    }

    .header-right img {
        max-height: 362px;
        min-height: 320px;
        flex: 1 0 0;
    }

    .header-content h1 {
      font-size: 36px;
      font-weight: 700;
      margin-top: 0;
    }

    .header-content p {
      font-size: 18px;
      font-weight: 400;
    }

    .app-button {
        display: none;
    }
}

/* Steps section */
.step {
    width: 276px;
    z-index: 1;
}

.steps-container {
    display: flex;
    gap: 32px;
    position: relative;
}

.step ul li {
    padding-bottom: 16px;
    list-style: disc;
}

ul li {
    list-style: disc;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 120px;
    right: 120px;
    height: 0;
    border-top: 2px dashed #C9CACC;
    z-index: 0;
}

.step span.red {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    color: #D8292F;
}

.step-panel .important-note {
    padding-top: 24px;
}

.red {
    color: #D8292F;
}

@media (max-width: 1024px) {
    .steps-container {
        overflow-x: auto;
        scroll-behavior: smooth;
        flex-wrap: nowrap;
        gap: 24px;
        padding: 0 16px;
        margin: 0 -16px;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .steps-container .step {
      scroll-snap-align: start;
    }
}

.animation {
    width: 240px;
    height: 200px;
    margin-bottom: 16px;
}

.animation video {
    border-radius: 16px;
}

p.important {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

p.important::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url(/content/dam/aircanada/portal/images/baggage/alert-circle.png);
    margin-left: 8px;
    vertical-align: bottom;
    flex-shrink: 0;
}

.important-note-yellow {
    background: #FFF7CC;
    border: 1px solid #C80;
    border-radius: 16px;
    padding: 16px;
}

.carry-on-baggage .important-note-yellow {
  margin: 64px 0;
}

.economy-basic .important-note-yellow {
    margin: 24px 0;
}

.delayed-damaged-baggage .important-note-yellow {
  margin: 0 0 64px;
}

.accordion .important-note-yellow {
    margin: 0 0 24px;
}

.carry-on-baggage .accordion .important-note-yellow p:has(a) {
    display: block;
}

.important-note-yellow p {
    margin-bottom: 0;
    display: flex;
    gap: 8px;
}

.important-note-yellow p:nth-of-type(1)::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url(/content/dam/aircanada/portal/images/baggage/alert-circle.png);
    margin-left: 8px;
    vertical-align: bottom;
    flex-shrink: 0;
}

section#economy-basic p:not(.important-note-yellow p), section#economy-basic li {
    font-size: 16px;
}

/* Image left content right */
.content-row {
    display: flex;
}

@media screen and (max-width: 767px) {
  .content-right p, .content-right li {
      font-size: 14px;
  }

  .content-row {
      flex-direction: column;
      align-items: center;
  }

  section#economy-basic .content-row {
      flex-direction: column-reverse;
  }

 .img-left-content-right .content-left {
  margin-right: 0 !important;
 }
}

/* Bag Tracking */
.bag-tracking .content-right img {
    max-width: 434px;
    border-radius: 16px;
}

.download-buttons img {
    height: 44px;
}

section#bag-tracking a {
    padding-right: 16px;
}

@media screen and (max-width: 767px) {
  .bag-tracking .content-right img {
      height: 343px;
  }

  section#bag-tracking a {
      margin-bottom: 40px;
  }
}

@media screen and (max-width: 1024px) {
  .airtag-section img {
      height: 386.364px;
  }

  .download-buttons {
    display: none;
  }
}

/* Carousel Indicators */
.feature-carousel-indicators {
    display: flex;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 10;
}

@media (max-width: 1024px) {
    .feature-carousel-indicators {
        position: static;
        transform: none;
        justify-content: center;
        margin: 32px;
    }
}

@media (min-width: 1025px) {
    .feature-carousel-indicators {
        display: none;
    }
}

.feature-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C9CACC;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.feature-indicator.active {
    background: #1460AA;
    width: 24px;
    border-radius: 4px;
}

.feature-indicator:hover {
    background: #C9CACC;
}

/* Accordion Styles */
.accordion-item {
  margin-bottom: 0;
}

.accordion-header {
  padding: 16px 16px 16px 0;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  border-bottom: 1px solid #C9CACC;
}

.tab-content .accordion-header {
  font-size: 18px;
}

.accordion-header::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 16px;
  background-image: url('/content/dam/aircanada/portal/images/baggage/chevron-right.png');
  margin-left: 8px;
  vertical-align: middle;
  float: right;
  transform: rotate(90deg);
  background-repeat: no-repeat !important;
}

.accordion-header.active::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 16px;
  background-image: url('/content/dam/aircanada/portal/images/baggage/chevron-right.png');
  margin-left: 8px;
  vertical-align: middle;
  transform: rotate(270deg);
}

.accordion-header.active {
    border-bottom: none !important;
}

.accordion-content {
  display: none;
  padding: 16px 16px 16px 0;
  background-color: #fff;
}

.tab-content .accordion-content {
    background: transparent;
}

.accordion .accordion-content p {
    margin-bottom: 16px;
    font-weight: 400;
}

.accordion-content.active {
  display: block;
  border-bottom: 1px solid #C9CACC;
}

.carry-on-baggage .accordion-content ul {
    display: flex;
    flex-direction: column;
}

div#standard-allowance .accordion {
    padding-top: 24px;
}

@media screen and (max-width: 767px) {
  section#faq p {
    font-size: 14px;
  }

  section#faq h2 {
      font-size: 20px;
      padding-bottom: 16px;
  }
}

@media screen and (max-width: 1024px) {
  .accordion-header {
      font-size: 16px !important;
      display: flex;
  }
}

@media screen and (min-width: 1025px) {
    .accordion-content ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

  .accordion-header {
    font-size: 20px;
  }

  section#faq p, section#faq li {
    font-size: 16px !important;
  }
} 

.mobile-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 48px;
}

.mobile-navigation hr {
    border: none;
    height: 44px;
    width: 1px;
    background-color: #C9CACC;
    margin-top: 16px;
}

.mobile-navigation p {
    margin-bottom: 8px;
}

.mobile-navigation p.label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    color: #6D6D6F;
}

.mobile-navigation a {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #1460AA;
}

.mobile-navigation .content-right p {
    text-align: right;
}

@media screen and (min-width: 1025px) {
    .mobile-navigation {
        display: none;
    }
}

section.related-topics li, section.more-information li {
    list-style: none;
}

section.related-topics ul, section.more-information ul {
    padding-left: 0;
}

section.related-topics li a, section.more-information li a {
    text-decoration: none;
    font-weight: 700;
}

section.related-topics li a::after, section.more-information li a::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url(/content/dam/aircanada/portal/images/baggage/chevron-right.png);
    vertical-align: middle;
}

.related-topics h3, .more-information h3 {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    padding-bottom: 8px;
}

@media screen and (max-width: 1024px) {
  section.related-topics {
    display: none;
  }

  section.more-information ul li, nav.on-this-page ul li {
      margin: 16px 0;
  }
}

/* Tabs Styles */
.tabs-container {
  margin-top: 32px;
}

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #C9CACC;
}

.tab-button {
  padding: 12px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-button:hover {
  color: #1460AA;
}

.tab-button.active {
  color: #1460AA;
  border-bottom-color: #1460AA;
}

.tab-content {
  display: none;
  background: #F9F9F9;
  padding: 32px;
  border-radius: 0 0 16px 16px;
}

.tab-content.active {
  display: block;
}

.img-left-content-right .content-left {
  flex: 0 0 auto;
  margin-right: 32px;
}

.img-left-content-right .content-left img {
  border-radius: 8px;
  max-width: 300px;
  width: 100%;
}

.img-left-content-right .content-right {
  flex: 1;
}

.content-full .top {
    display: flex;
    align-items: center;
}

.content-full .top div {
  width: 100%;
}

#standard-allowance h3 {
    font-size: 20px;
    padding-bottom: 8px;
}

#standard-allowance p, #standard-allowance li {
    font-size: 16px;
}

#standard-allowance p {
    margin-bottom: 8px;
}

#standard-personal .accordion {
    padding-bottom: 24px;
}

@media screen and (max-width: 767px) {
  .tab-content {
    padding: 0;
  }

  .tab-content h3 {
      font-size: 20px;
      line-height: 22px;
  }

  div#standard-allowance .content-row .content-full .top {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
  }

  div#standard-allowance .content-row .content-full .top div {
    display: flex;
    flex-direction: row;
    margin-top: 20px;

  }

  div#standard-allowance .content-row .content-full .top div > div {
      flex-direction: column !important;
      min-width: 160px;
      padding-right: 24px;
  }

  div#standard-allowance .content-row .content-full .bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    margin: 16px;
  }

  div#standard-allowance img {
    max-height: 181px;
  }

  div#standard-allowance .content-row .content-full .top div:nth-of-type(2) > div {
      margin-left: -24px;
  }

  .tab-content .content-row {
      padding: 0 16px;
  }
}

@media screen and (max-width: 1024px) {
  .tabs-nav {
      display: flex;
      gap: 0;
      border-bottom: 1px solid #C9CACC;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      scroll-behavior: smooth;
  }
}

@media screen and (min-width: 768px) {
  #standard-allowance img {
      display: flex;
      justify-self: flex-end;
  }
}

/* Flights with other airlines - Table */
  .table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
  }

  th {
    background-color: #2c5282;
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #1e3a5f;
  }

  td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
  }

  tr:last-child td {
    border-bottom: none;
  }

  /* Segment column styling */
  td:first-child {
    font-weight: 600;
  }

/* Additional Links Section */
section.additional-links {
  background: #F9F9F9;
}

a.chevron::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-image: url('/content/dam/aircanada/portal/images/baggage/chevron-right.png');
  margin-left: 8px;
  vertical-align: middle;
}

section.additional-links p {
    margin-bottom: 0;
}

section.additional-links p:first-of-type {
    margin-bottom: 12px;
}

section.additional-links h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
}

section.additional-links p {
  font-size: 14px;
}

@media screen and (min-width: 1025px) {
  section.additional-links {
    padding: 48px 32px;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  section.additional-links div {
    max-width: 1169px;
    width: 100%;
  }

  section.additional-links p {
    font-size: 14px;
  }
}

@media screen and (max-width: 767px) {
  section.additional-links {
        padding: 16px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
  }

  section.additional-links p, section.additional-links a {
      font-size: 14px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  section.additional-links {
        padding: 32px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
  }

  section.additional-links p, section.additional-links a {
      font-size: 14px;
  }
}

/* Boarding by zone */ 
.boarding-by-zone table ul li {
    font-size: 14px !important;
}

.check-item {
    font-weight: 400;
}

.boarding-by-zone .bottom-padding {
  padding-bottom: 55px;
}

.boarding-by-zone .header-content p {
  max-width: 750px;
}

@media screen and (max-width: 1024px) {
  .boarding-by-zone .bottom-padding {
    padding-bottom: 48px;
  }

  .boarding-by-zone aside.right-column {
      padding-bottom: 48px;
  }
}