.tso-main {
	height: calc(100vh - 72px);
  overflow: auto;
}
/* Dropdown CSS */
.tso-user-dropdown.opened .tso-user-dropdown-menu {
  display: block;
}
.tso-pages-dropdown.opened .tso-pages-dropdown-menu {
  display: block;
}
/* Business Card Hover CSS */
.tso-eraning-type-block:hover {
  background-color: #DEF2AD;
  border-color: #DEF2AD;
}
.tso-eraning-type-block:hover .tso-earning-icon-block {
  background-color: #C8E976;
  color: #5B7E24;
}
/*Active icon Css */
.tso-business-type-tag input[type="radio"] {
    display: none;
}
.tso-business-type-tag:not(:has(input[type="radio"]:checked)) .check-icon {
    display: none;
}
.tso-action-btn input[type="radio"] {
    display: none;
}
.tso-action-btn:not(:has(input[type="radio"]:checked)) .check-icon {
    display: none;
}
.tso-question-block.disabled .tso-secondary-heading {
color: #909090;
}
.tso-secondary-heading:has(+.learn-more-link) {
margin-bottom: 0 !important;
}
/* Account Dropdown Css */
/* Body open */
.tso-dropdown-menu-wrap.open .tso-account-dropdown-body {
  max-height: 500px;   /* enough height so auto works smoothly */
  opacity: 1;
}
.tso-dropdown-menu-wrap.open .tso-account-dropdown-icon {
  transform: rotate(180deg);
}
/* Show overlay */
.tso-dropdown-full-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
/* Account Dropdown Css */
@media (min-width: 767px) and (max-width: 920px){
	.tso-pages-dropdown.hide-mobile {
  	display: none;
  }
	.tso-header-dropdown-wrap {
    position: sticky;
    top: 0px;
    z-index: 1000;
    display: block;
    min-height: 58px;
    background-color: var(--white);
  }
  .tso-pages-dropdown {
    position: absolute;
    z-index: 1000;
    width: 100%;
    padding: 14px 20px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: var(--border-secondary);
    background-color: var(--white);
  }
  .tso-header-block.height-auto {
  	padding-bottom: 0px;
    height: auto;
  }
   .tso-pages-dropdown-menu {
    position: static;
    display: none;
    min-width: auto;
    margin-top: 10px;
    border-top-color: var(--border-secondary);
    border-right-color: var(--border-secondary);
    border-bottom-color: var(--border-secondary);
    border-left-color: var(--border-secondary);
    box-shadow: none;
    transform: none;
  }
}

/* Full Height Drawer Modals */
/* Remove Fancybox's default vertical centering and padding */
.fancybox__slide {
    align-items: flex-start !important;
    padding: 0 !important;
}

/* Target all modal content specifically */
.fancybox__content#understanding-modal,
.fancybox__content#understanding-self-employment-modal,
.fancybox__content#understanding-property-modal,
.fancybox__content#understanding-employment-modal,
.fancybox__content#understanding-capital-gains-modal,
.fancybox__content#understanding-dividends-interest-modal,
.fancybox__content#understanding-tax-relief-modal {
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;

    /* FORCE FULL HEIGHT */
    height: 100vh !important;
    max-height: 100vh !important;

    width: 500px !important;
    max-width: 85vw !important;

    margin: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;

    /* Smooth slide-in */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2) !important;
}

/* Trigger slide-in when Fancybox adds the 'is-selected' class */
.fancybox__slide.is-selected #understanding-modal,
.fancybox__slide.is-selected #understanding-self-employment-modal,
.fancybox__slide.is-selected #understanding-property-modal,
.fancybox__slide.is-selected #understanding-employment-modal,
.fancybox__slide.is-selected #understanding-capital-gains-modal,
.fancybox__slide.is-selected #understanding-dividends-interest-modal,
.fancybox__slide.is-selected #understanding-tax-relief-modal {
    transform: translateX(0) !important;
}

/* Make the inner padding container fill the height for scrolling */
#understanding-modal .tso-modal-padding,
#understanding-self-employment-modal .tso-modal-padding,
#understanding-property-modal .tso-modal-padding,
#understanding-employment-modal .tso-modal-padding,
#understanding-capital-gains-modal .tso-modal-padding,
#understanding-dividends-interest-modal .tso-modal-padding,
#understanding-tax-relief-modal .tso-modal-padding {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 40px 30px !important;
}

/* Allow only the body text to scroll, keeping the title fixed if needed */
.tso-right-modal-content-body {
    overflow-y: auto !important;
    flex-grow: 1 !important;
    padding-right: 10px; /* Space for scrollbar */
}

/* Custom scrollbar for a cleaner 'drawer' look */
.tso-right-modal-content-body::-webkit-scrollbar {
    width: 6px;
}
.tso-right-modal-content-body::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}

@media (max-width: 767px) {
	div#understanding-modal,
	div#understanding-self-employment-modal,
	div#understanding-property-modal,
	div#understanding-employment-modal,
	div#understanding-capital-gains-modal,
	div#understanding-dividends-interest-modal,
	div#understanding-tax-relief-modal {
  	right: 20px !important;
  }
  .tso-right-modal {
  	width: 92%;
  }
  .tso-modal {
  	margin: 16px !important;
  }
   .fancybox__slide {
    padding-top: 40px !important;
}
}
@media (min-width: 654px) and (max-width: 767px) {
  div#understanding-modal,
  div#understanding-self-employment-modal,
  div#understanding-property-modal,
  div#understanding-employment-modal,
  div#understanding-capital-gains-modal,
  div#understanding-dividends-interest-modal,
  div#understanding-tax-relief-modal {
    right: 20px !important;
    top: 20px !important;
  }
}
@media (max-width: 354px){
	.tso-header-block {
  	padding-left: 16px;
    padding-right: 16px;
  }
  .tso-save-btn {
  	font-size: 13px;
    line-height: 18px;
  }
  .tso-submit-btn,
  .tso-resume-btn {
  	font-size: 15px;
  }
  .tso-earing-type-grid {
    gap: 16px;
    grid-template-columns: 1fr;
  }
  div#understanding-modal,
  div#understanding-self-employment-modal,
  div#understanding-property-modal,
  div#understanding-employment-modal,
  div#understanding-capital-gains-modal,
  div#understanding-dividends-interest-modal,
  div#understanding-tax-relief-modal {
    right: 14px !important;
    left: 14px !important;
    top: 20px !important;
  }
}

.mt-4 {
  margin-top: 20px;
}
.OE_Item:not(:first-child) .tso-input-label {
  display: none;
}
.OE_Item .tso-input-field {
  margin-bottom: 0;
}
#OE_Items_Wrapper {
  margin-top: 20px;
}
.OE_Item+.OE_Item {
  margin-top: 12px;
}
.OE_Item .unit-price-wrapper {
  flex-grow: 1;
}
#expense_other_summary_list .tso-filled-tag-wrapper.less-gap,
#expense_other_summary_list>.tso-answer-tag.is-full {
  margin-top: 6px;
}
.tso-st-answer-tag,
.tso-profit-amout {
  padding-top: 6px;
}
#self_emp_other_businesses {
  margin-top: 20px;
}











.tso-eraning-type-block {
    margin: 0;
}
.tso-eraning-type-block:has(input[type="radio"]:checked) {
    background-color: #eff9d6;
    border-color: #def2ad;
}
.tso-eraning-type-block input[type="radio"] {
    display: none;
}

.tso-continue-button.disable {
    pointer-events: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-top: 2px;
}
.select2-results__option {
  padding-top: 12px;
  padding-bottom: 4px;
}

.tso-user-dropdown-avatar {
  padding-top: 4px;
}
.tso-user-dropdown-item {
  padding-top: 12px;
  padding-bottom: 4px;
}

div>.tso-question-block,
div>.tso-filled-content-block {

}
.tso-action-btn {
  padding-top: 16px;
}

.form-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.tso-user-action-btn {
  width: 100%;
}

.d-none {
  display: none !important;
}
.tso-input-field {
  padding: 12px 16px 4px;
}
.tso-input-label {
  margin-bottom: 6px;
  padding-top: 4px;
}




.tso-question-block.q_disabled,
.txo-js-question-block.q_disabled {
  background-color: #E0E0E0;
  border-color: #E0E0E0;
  cursor: default;
  border-radius: 10px;
}
.tso-question-block.q_disabled .tso-secondary-heading,
.tso-question-block.q_disabled .tso-question-title{
  color: #909090;
}
.tso-question-block.q_disabled .tso-content-wrapper,
.tso-question-block.q_disabled .tso-single-form-block,
.tso-question-block.q_disabled .tso-business-type-bottom {
  display: none;
}
.tso-question-block.q_disabled div:has(>.tso-question-title),
.tso-question-block.q_disabled div:has(>.tso-secondary-heading),
.tso-question-block.q_disabled .tso-secondary-heading {
  margin-bottom: 0 !important;
}

.txo-js-question-block.q_disabled .form-ignore-wrapper {
  display: none;
}

.txo-js-question-block.q_disabled .uploads-list {
  display: none;
}


.tso-question-block,
.tso-filled-content-block {
  transition: all 300ms ease;
  opacity: 1;
  max-height: 5000px; /* adjust as needed */
  visibility: visible;
  position: relative;
}

.q_hidden {
  opacity: 0;
  max-height: 0;
  visibility: hidden;
  overflow: hidden;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  height: 0;
}

.q_cancel_btn {

}
.q_cancel_btn.hidden {
  opacity: 0;
  pointer-events: none;
}
.a_saved {
  border-color: #1d7c4d;
}
.tso-question-label {
  opacity: 0;
  visibility: hidden;
}
.a_saved .tso-question-label {
  opacity: 1;
  visibility: visible;
}

.tso-main.q_edit_mode div:has(>.tso-question-block:not(.q_editable):not(.q_disabled)),
.tso-main.q_edit_mode div:has(>form>.tso-question-block:not(.q_editable):not(.q_disabled)),
.tso-main.q_edit_mode div:has(>.txo-js-question-block:not(.q_editable):not(.q_disabled)),
.tso-main.q_edit_mode div:has(>form>.txo-js-question-block:not(.q_editable):not(.q_disabled)) {
  opacity: 0.4;
  pointer-events: none;
}
.tso-main.q_edit_mode .tso-questions-heading,
.tso-main.q_edit_mode h3 {
  opacity: 0.4;
  pointer-events: none;
}
.tso-action-btn:has(input[type="radio"]:checked) {
  box-shadow: inset 0 0 0 2px #bdb1dc;
}
.tso-heading-wrapper .tso-modal-trigger {
  font-size: 16px;
  text-decoration: underline;
  color: #c53434;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
}
.tso-heading-wrapper .tso-modal-trigger:hover {
  text-decoration: none;
}
.tso-heading-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#business_1_section .tso-heading-wrapper .tso-modal-trigger {
  display: none;
}

.tso-business-navigation {
  border: 1px solid #DED8ED;
  width: 300px;
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
  position: fixed;
  /* top: 105px; */
  z-index: 9;
  left: calc(50% - 700px);
  transition: all 300ms ease;
  opacity: 0;
  visibility: hidden;
}
@media (max-width: 991px) {
  .tso-business-navigation {
    /*
    position: relative;
    left: 0;
    top: 0;
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 30px;
    margin-top: -20px;
    max-width: calc(100% - 40px);
    display: none;
    */
  }
}
.tso-business-navigation.active {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 991px) {
  .tso-business-navigation.active {
    display: block;
  }
}
.tso-bn-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.tso-bn-header-icon {
  width: 36px;
  height: 36px;
  background-color: #FEEACC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tso-bn-header-title {
  color: #2D2D2D;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  margin: 0;
}
.tso-bn-content {

}
.tso-bn-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tso-bn-item {
  padding: 10px;
  background-color: #fff;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #D9D9D9;
  cursor: pointer;
  transition: all 200ms ease;
}
.tso-bn-item:not(.active):hover {
  background-color: #f7f7f7ff;
}
.tso-bn-item.active {
  border-color: #DED8ED;
  background-color: #DED8ED;
}
.tso-bn-item-name {
  color: #2D2D2D;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  padding-top: 6px;
  max-width: 158px;
}
.tso-bn-item-label {
  color: #000;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  padding: 7px 4px 4px 4px;
  border-radius: 4px;
  background-color: #DAF2F3;
}

.pageload-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate360 1s linear infinite;
  margin-bottom: 8px;
}
.pageload-content-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  pointer-events: none;
}
@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.p-0 {
  padding: 0 !important;
}

.tso-question-skip-btn {
  padding-left: 0;
}

.tso-earning-type-checkbox {
  display: none;
}

.tso-eraning-type-block:has(input.tso-earning-type-checkbox:checked) {
  background-color: #eff9d6;
  border-color: #def2ad;
}

input.tso-earning-type-checkbox:checked+.tso-earning-icon-block {
  color: #5b7e24;
  background-color: #def2ad;
}


.text-block-2 {
  margin-bottom: 0;
}
.select2-results__option {
  padding: .8rem .75rem .4rem .75rem !important;
}

.tso-uploader-text {
  padding-top: 2px;
  margin-bottom: -2px;
}
#welcome_hmrc_letter_group.skipped-section .txo-js-answer-block .tso-answer-tag:not(.skipped) {
  display: none;
}
#welcome_hmrc_letter_group:not(.skipped-section) .txo-js-answer-block .tso-answer-tag.skipped {
  display: none;
}
.tso-answer-tag.skipped {
  background-color: #ffcac2;
}
.tso-question-skip-btn {
  background: none;
  outline: none;
  border: none;
}
.txo-js-cancel-btn {
  background: none;
  outline: none;
  border: none;
}
.tso-continue-button {
  width: 100%;
}

@media screen and (max-width: 479px) {
  .tso-pages-dropdown-item .tso-primary-button {
    flex: 0;
  }
}
.tso-primary-button {
  padding: 10px 16px 8px 16px;
}

.tso-uploader-file-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  display: block;
}
.tso-back-btn-block {
  font-weight: 700;
  margin-bottom: 30px;
}
.tso-pages-dropdown-item:last-child {
    border-bottom: none;
}

.tso-note:has( .tso-note-icon) {
  display: flex;
  gap: 8px;
  padding: 8px 20px 8px 8px;
  border: 1px solid #9db6b7;
}
.tso-note.light-blue,
.tso-note.light-blue:has( .tso-note-icon) {
  background: #daf2f3;
}

#final_note {
  margin-top: 20px;
}
.tso-continue-button {
  background: #fff;
}

@media (max-width: 1500px) {
  .tso-bn-header-icon {
    min-width: 36px;
    min-height: 36px;
    cursor: pointer;
  }
  .tso-business-navigation {
    left: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-left: 0;
    top: 150px;
  }
  .tso-bn-header,
  .tso-bn-content {
    min-width: 259px;
  }
  .tso-business-navigation:not(.expanded) {
    width: 60px;
    overflow: hidden;
    padding: 10px;
  }

  .tso-business-navigation:not(.expanded) .tso-bn-header-title {
    display: none;
  }
  .tso-business-navigation:not(.expanded) .tso-bn-header {
    margin-bottom: 0;
    width: 40px;
  }

  .tso-business-navigation:not(.expanded) .tso-bn-content {
    display: none;
  }
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Standard property (less widely supported on its own for this use case) */
input[type=number] {
  appearance: textfield;
}

#welcome_hmrc_upload_sub,
#welcome_hmrc_upload_answer {
  margin-top: 20px;
}

.or-separator {
  color: #76787F;
  font-size: 14px;
  font-style: normal;
  font-weight: 450;
  line-height: 26px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}
.or-separator span {
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 22px;
  min-width: 22px;
}
.or-separator::before, .or-separator::after {
  content: "";
  height: 1px;
  background-color: #E9ECEF;
  display: block;
  width: 50%;
}
.google-button {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid var(--Action-Outline-Normal, #CFD6DD);
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(27, 36, 44, 0.12);
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}
.google-button .gb-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.google-button .gb-text {
  color: #4A545E;
  font-size: 14px;
  font-weight: 450;
  line-height: 24px;
  letter-spacing: 0.2px;
  padding-top: 6px;
}

.tso-summary-card .tso-st-content {
  padding-top: 4px;
}
@media screen and (max-width: 479px) {
  .tso-brand-btn {
    flex: 0;
  }
  .tso-business-type-bottom {
    flex-flow: row;
  }
}

.txo-js-answer-block .tso-st-answer-tag {
  height: 32px;
  padding: 8px 8px 2px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.tso-right-modal-content-body .tso-horizontal-divider {
  min-height: 1px;
  width: 100%;
}
.tso-right-modal-content-body p,
.tso-right-modal-content-body ul,
.tso-right-modal-content-body li,
.tso-right-modal-content-body ol {
  line-height: 1.6em;
  margin-bottom: 1em;
}
.tso-right-modal-content-body h4 {
  margin-top: 1.2em;
  margin-bottom: 0.8em;
}
.tso-right-modal-content-body a {
  text-decoration: underline;
}
.tso-right-modal-content-body a:hover {
  text-decoration: none;
}

.steps-from-yt-content {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.steps-from-yt-content.active {
  margin-bottom: 20px;
}

.tso-dob-wrapper {
  max-width: 300px;
  gap: 10px;
  display: flex;
}
.tso-dob-date {
  min-width: 56px;
}
.tso-dob-year {
  min-width: 76px;
}
.tso-dob-month {
  width: 148px;
  padding-top: 8px;
}

.tso-q-num-label {
  background: #FDD599;
  border-radius: 4px;
  display: inline-flex;
  line-height: 1;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 6px 4px 6px;
  position: absolute;
  right: 24px;
  top: 16px;
}

.txo-js-question-block.q_disabled {
  display: none;
}
.tso-questions-heading:has(+.txo-js-qa-section>form>.txo-js-question-block.q_disabled) {
  display: none;
}
.tso-tertrairy-heading:has(+.txo-js-qa-section>form>.txo-js-question-block.q_disabled) {
  display: none;
}

.txo-js-question-block .tso-question-title,
.tso-business-type-header .tso-secondary-heading {
  padding-right: 115px;
}
.tso-question-heading-block .tso-secondary-heading,
.tso-question-heading-block .tso-secondary-heading.set-width {
  max-width: 100%;
  padding-right: 115px;
}

.tso-st-row:last-child {
  border-bottom: 0;
}

#p11d_completion_note {
  display: none !important;
}
.tso-tax-panding-block {
  cursor: default;
}

.restart-button {
  display: none;
}

@media (min-width: 1101px) {
  .tso-pages-dropdown.hide-mobile {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
  }
}

/* Professional pulse animation for next page button */
@keyframes proPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.pro-pulse-effect {
  animation: proPulse 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
  animation-iteration-count: 1 !important;
  position: relative;
  z-index: 10;
}


.tso-earning-icon-block.active .section-info-link {
  background-color: #def2ad !important;
}
.tso-earning-icon-block {
  background-color: #fff;
  position: relative;
  z-index: 2;
}
.section-info-link{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: #fff;
  padding-top: 2px;
  border-radius: 0px 0px 6px 6px;
  margin-top: -10px;
  z-index: 1;
  position: relative;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  line-height: 1;
  text-decoration: underline;
  transition: all 0.2s ease;
  
}
.section-info-link:hover {
  background-color: #def2ad !important;
}
.section-info-link.light-blue {
  background-color: #daf2f3;
}
.section-info-link.warning-accent {
  background-color: #feeacc;
}
.section-info-link.light-purple {
  background-color: #ded8ed;
}
.section-info-link.danger-accent {
  background-color: #f2d4db;
}
.section-info-link.light-green {
  background-color: #def2ad;
}

