.freeCredit-area .claimAllContainer {
	background: var(--freeCredit3_CLAIM_ALL_CONTAINER_BG);
    color: var(--freeCredit3_CLAIM_ALL_CONTAINER_COLOR);
    padding: 14px 20px;
    width: 80%;
    margin: auto;
    margin-top: 18px;
    border-radius: var(--freeCredit3_CLAIM_ALL_BORDER_RADIUS);
    text-align: center;
    position: relative;
}

.freeCredit-area .claimAllContainer .claim-all-header {
	display: inline-block;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    background: var(--freeCredit3_CLAIM_ALL_HEADER_BG);
    color: var(--freeCredit3_CLAIM_ALL_HEADER_COLOR);
    position: relative;
    top: -32px;
    border-radius: var(--freeCredit3_CLAIM_ALL_HEADER_BORDER_RADIUS);
    cursor: default;
}

.freeCredit-area .claimAllContainer .all-card-container {
	display: flex;
    gap: 30px;
    overflow-x: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    margin: 0 30px;
    padding-bottom: 14px;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
	background: var(--freeCredit3_CLAIM_ALL_CARD_BG);
    color: var(--freeCredit3_CLAIM_ALL_CARD_COLOR);
    min-width: 180px;
    width: 180px;
    height: 200px;
    padding: 16px;
    border-radius: var(--freeCredit3_CLAIM_ALL_CARD_BORDER_RADIUS);
    text-align: center;
    align-content: center;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-content {
	flex-grow: 1;
	cursor: default;
	display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-content .card-title {
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 10px;
	white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
	text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-word;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-content .card-amount {
    font-weight: 700;
	font-size: 22px;
	word-wrap: break-word;
	white-space: normal;
	display: flex;
	flex-direction: column;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-content .card-amount .card-currency {
	font-size: 13px;
    margin-right: 2px;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-bottom {
	display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 16px;
    font-size: 13px;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-bottom hr {
	border-top: var(--freeCredit3_CLAIM_ALL_CARD_BOTTOM_HR);
    width: 86%;
    margin-top: 12px;
    margin-bottom: 12px;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-bottom .more-info {
	color: var(--freeCredit3_CLAIM_ALL_CARD_BOTTOM_MORE_INFO_COLOR);
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	user-select: none;
}

.freeCredit-area .claimAllContainer .claim-btn {
    padding: 8px 18px;
    background: var(--freeCredit3_CLAIM_ALL_CARD_BOTTOM_CLAIM_BTN_BG);
    color: var(--freeCredit3_CLAIM_ALL_CARD_BOTTOM_CLAIM_BTN_COLOR);
    border-radius: var(--freeCredit3_CLAIM_ALL_CARD_BOTTOM_CLAIM_BTN_BORDER_RADIUS);
    border: var(--freeCredit3_CLAIM_ALL_CARD_BOTTOM_CLAIM_BTN_BORDER);
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 20px;
    user-select: none;
}

.freeCredit-area .claimAllContainer .claim-btn:active, 
.freeCredit-area .claimAllContainer .claim-btn:hover {
	filter: brightness(0.8);
}

.freeCredit-area .claimAllContainer .arrow {
    display: flex;
    align-items: center;
    color: var(--freeCredit3_CLAIM_ALL_ARROW_COLOR);
    font-size: 21px;
    cursor: pointer;
}

.freeCredit-area .claimAllContainer .arrow:active, 
.freeCredit-area .claimAllContainer .arrow:hover {
	color: var(--freeCredit3_CLAIM_ALL_ARROW_ACTIVE_HOVER_COLOR);
}

.freeCredit-area .claimAllContainer .arrow.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.freeCredit-area .claimAllContainer .arrow.disabled:hover,
.freeCredit-area .claimAllContainer .arrow.disabled:active {
    color: var(--freeCredit3_CLAIM_ALL_ARROW_DISABLED_COLOR);
}

.freeCredit-area .claimAllContainer .arrow.disabled:hover i,
.freeCredit-area .claimAllContainer .arrow.disabled:active i {
    border: var(--freeCredit3_CLAIM_ALL_ARROW_DISABLED_ICON_BORDER);
	background: var(--freeCredit3_CLAIM_ALL_ARROW_DISABLED_ICON_BG);
}

.freeCredit-area .claimAllContainer .arrow i {
	border: var(--freeCredit3_CLAIM_ALL_ARROW_DISABLED_ICON_BORDER);
    border-radius: 50%;
    background: var(--freeCredit3_CLAIM_ALL_ARROW_DISABLED_ICON_BG);
}

.freeCredit-area .claimAllContainer .arrow:active i, 
.freeCredit-area .claimAllContainer .arrow:hover i {
	border: var(--freeCredit3_CLAIM_ALL_ARROW_ACTIVE_HOVER_ICON_BORDER);
	background: var(--freeCredit3_CLAIM_ALL_ARROW_ACTIVE_HOVER_ICON_BG);
}

.or-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--freeCredit3_CLAIM_ALL_OR_SEPARATOR_TXT_COLOR);
    padding: 20px 0;
    font-size: 14px;
    width: 80%;
    margin: auto;
}

.or-separator .line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--freeCredit3_CLAIM_ALL_OR_SEPARATOR_LINE_BG);
}

#angpowclaimmodal {
	top: 12%;
}

#angpowclaimmodal .modal-header {
	font-size: 16px;
	justify-content: center;
}

#angpowclaimmodal .modal-content {
	width: 80%;
    margin: auto;
    border-radius: var(--freeCredit3_CLAIM_ALL_MODAL_BORDER_RADIUS);
    color: var(--freeCredit3_CLAIM_ALL_MODAL_COLOR);
}

#angpowclaimmodal .claimList-wrapper .dstg-bonus-img {
	width: 100%;
    height: 340px;
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
}

#angpowclaimmodal .modal-content .claimList-wrapper .failed-img {
	width: 40%;
    display: flex;
    margin: auto;
    margin-bottom: 20px;
}

#angpowclaimmodal .modal-content .claimList-wrapper .collapsible {
	background-color: inherit;
	color: var(--freeCredit3_CLAIM_ALL_MODAL_SHOW_DETAILS_COLOR);
	cursor: pointer;
	padding: 8px;
	width: 100%;
	border: none;
	text-align: center;
	font-size: 13px;
	display: block;
	text-decoration: underline;
}

#angpowclaimmodal .modal-content .claimList-wrapper .error-msg-list {
	padding: 0 20px;
	height: 0;
	max-height: 120px;
	overflow: auto;
	transition: height 0.2s ease-out;
	background-color: var(--freeCredit3_CLAIM_ALL_MODAL_ERROR_LIST_BG);
	color: var(--freeCredit3_CLAIM_ALL_MODAL_ERROR_LIST_COLOR);
	text-align: left;
	align-content: center;
	border-radius: var(--freeCredit3_CLAIM_ALL_MODAL_ERROR_LIST_BORDER_RADIUS);
}

#angpowclaimmodal .modal-content .claimList-wrapper .error-msg-list p {
	margin-bottom: 3px;
}

.red-text {
	color: var(--freeCredit3_CLAIM_ALL_MODAL_RED_TXT_COLOR);
}

.green-text {
	color: var(--freeCredit3_CLAIM_ALL_MODAL_GREEN_TXT_COLOR);
}

.grey-text {
	color: var(--freeCredit3_CLAIM_ALL_MODAL_GREY_TXT_COLOR);
}

.success-text {
	font-size: 15px;
	margin-bottom: 8px;
	text-shadow: var(--freeCredit3_CLAIM_ALL_MODAL_SUCCESS_TXT_SHADOW);
}

.failed-text {
	font-size: 15px;
	margin-bottom: 4px;
	text-shadow: var(--freeCredit3_CLAIM_ALL_MODAL_FAIL_TXT_SHADOW);
}

.loading-icon {
	display: none;
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--freeCredit3_CLAIM_ALL_LOADING_CONTAINER_BG);
    border-radius: var(--freeCredit3_CLAIM_ALL_LOADING_CONTAINER_BORDER_RADIUS);
    width: 16%;
}

.loading-icon .spinner {
    border: var(--freeCredit3_CLAIM_ALL_LOADING_SPINNER_BORDER);
    border-left-color: var(--freeCredit3_CLAIM_ALL_LOADING_SPINNER_BORDER_LEFT_COLOR);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-icon .loadingMessage {
	font-weight: 700;
    text-shadow: var(--freeCredit3_CLAIM_ALL_LOADING_MSG_TXT_SHADOW);
    font-size: 14px;
    margin-top: 10px;
    color: var(--color2);
}

/* ============================================
   TAB NAVIGATION - Match Claim All Container Width
   ============================================ */
.freeCredit-tab-navigation {
    margin-bottom: 30px;
    width: 80%; /* Match claimAllContainer width */
    margin-left: auto;
    margin-right: auto;
}

.transactionChangeTab-btn {
    display: flex;
    padding: 0;
    gap: 0;
    width: 100%;
}

.transactionBtn {
    border-radius: 0;
    width: 50%;
    padding: 18px 0;
    font-weight: var(--MED_FONT_WEIGHT);
    font-size: 16px;
    transition: .3s;
    border: none;
}

.transactionBtn:first-child {
    border-radius: 10px 0 0 10px;
}

.transactionBtn:last-child {
    border-radius: 0 10px 10px 0;
}

/* Remove notification positioning conflict */
.transactionChangeTab-btn .notification {
     position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #dc3545; /* Red background */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.transactionChangeTab-btn .freeCreditBtn {
    position: relative; /* Keep relative positioning */
    left: 0; /* Reset left positioning */
}

/* ============================================
   VOUCHER INPUT SECTION - Match Container Width
   ============================================ */
.freeCredit-area .freeCreditTransfer-wrap .transaction-freeCredit-title {
    margin-bottom: 30px;
    width: 80% !important; /* Override with !important */
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
}

/* Override basedesktop.css voucher-wrap width */
.freeCredit-area .freeCreditTransfer-wrap .transaction-freeCredit-title .voucher-wrap {
    width: 100% !important;
    max-width: none !important; /* Remove 500px limit */
    display: flex;
    gap: 15px !important; /* Override 10px from basedesktop */
    align-items: center;
}

/* Override voucherCode styling */
.freeCredit-area .freeCreditTransfer-wrap .transaction-freeCredit-title .voucher-wrap .voucherCode {
    flex: 1;
    padding: 15px 20px !important; /* Override basedesktop 10px 1rem */
    height: 55px !important; /* Override basedesktop 45px */
    border-radius: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Override redeemBtn styling */
.freeCredit-area .freeCreditTransfer-wrap .transaction-freeCredit-title .voucher-wrap .redeemBtn {
    padding: 15px 30px !important; /* Override basedesktop */
    height: 55px !important; /* Override basedesktop 45px */
    min-width: 150px !important; /* Override basedesktop 120px */
    font-size: 16px;
    font-weight: var(--MED_FONT_WEIGHT);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-sizing: border-box;
}

/* Override placeholder styling */
.freeCredit-area .freeCreditTransfer-wrap .transaction-freeCredit-title .voucher-wrap .voucherCode::placeholder {
    font-size: 14px !important; /* Override basedesktop 12px */
}

/* Override unclaimed voucher section */
.freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap {
    display: flex;
    gap: 15px !important;
    width: 80% !important; /* Override basedesktop */
    max-width: none !important; /* Remove 500px limit */
    margin: 20px auto;
    align-items: center;
}

.freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap .voucherCode {
    flex: 1;
    padding: 15px 20px !important;
    height: 55px !important;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap .redeemBtn {
    padding: 15px 30px !important;
    height: 55px !important;
    min-width: 150px !important;
    font-size: 16px;
    font-weight: var(--MED_FONT_WEIGHT);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-sizing: border-box;
    text-transform: uppercase;
}

/* Remove any col-sm-12 default Bootstrap padding that might interfere */
.freeCreditTransfer-wrap .col-sm-12.transaction-freeCredit-title {
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* ============================================
   CREDIT BOX CONTAINER - Match Container Width
   ============================================ */
.freeCreditList2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%; /* Match claimAllContainer width */
    margin: 0 auto;
}

.freeCreditWrapper {
    width: 100% !important;
    margin: 0 auto 20px auto !important;
}

/* ============================================
   CREDIT BOX LAYOUT - Fix Overlapping Content
   ============================================ */
.freeCreditWrapper .transaction-list {
    width: 100%;
    height: auto;
    min-height: 180px; /* Increased from 160px */
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 15px;
    display: flex; /* Changed from grid to flex */
    flex-direction: row;
    align-items: center;
    gap: 0;
    position: relative;
    box-sizing: border-box;
    background-size: 100%;
    background-repeat: no-repeat;
    justify-content: space-around;
}

/* Fix the row inside transaction-list */
.transaction-list .row.claim-credit {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ============================================
   AMOUNT COLUMN - Left Section (25%)
   ============================================ */
.transaction-list .amountColumn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 25%;
    padding-right: 20px;
}

.freeCreditTransfer-wrap .currency-code {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.freeCreditTransfer-wrap .freeCreditAmt {
    font-size: 42px; /* Slightly reduced to prevent overflow */
    font-weight: 700;
    line-height: 1;
    display: block;
}

/* ============================================
   TITLE & CONTENT COLUMN - Middle Section (45%)
   ============================================ */
.transaction-list .col-sm-5 {
    width: 45%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.freeCreditTransfer-wrap .freeCreditTitle {
    font-size: 22px; /* Slightly reduced */
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}

.freeCreditTransfer-wrap .freeCreditContent {
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.6;
}

.freeCreditTransfer-wrap .moreInfoBtn {
    font-size: 14px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: inline-block;
    margin-top: 8px;
    width: auto;
}

/* ============================================
   TRANSFER SECTION - Right Section (30%)
   ============================================ */
.transaction-list .col-sm-3 {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    align-items: stretch;
}

.transaction-list .btn_transfer {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    border: none;
}

.transaction-list .important-icon {
    color: rgb(206, 15, 16);
    margin-right: 3px;
}

.transaction-list #labelTransferTo {
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

.transaction-list .freeCreditProviderOption {
    width: 100%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    height: 45px;
    box-sizing: border-box;
}

/* ============================================
   UNCLAIMED VOUCHER SECTION
   ============================================ */
.freeCreditTransfer-wrap .unClaim_voucher-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%; /* Match container width */
    margin: 20px auto;
}

.freeCreditTransfer-wrap .unClaim_voucher-wrap .voucherCode {
    width: 100%;
    margin-bottom: 15px;
    padding: 15px 20px;
    height: 55px;
    border-radius: 10px;
}

/* ============================================
   MASKED STATE (Zero Balance)
   ============================================ */
.transaction-list.masked:before {
    content: "";
    cursor: default;
    z-index: 2;
    opacity: 1;
}

.transaction-list.masked .maskedText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    font-size: 16px;
    font-style: italic;
    width: 80%;
    text-align: center;
}

/* ============================================
   BACKGROUND IMAGE
   ============================================ */
.claim-credit-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 15px;
    overflow: hidden;
}

.claim-credit-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1400px) {
    .freeCredit-tab-navigation,
    .freeCreditTransfer-wrap .transaction-freeCredit-title,
    .freeCreditList2,
    .freeCreditTransfer-wrap .unClaim_voucher-wrap {
        width: 90%;
    }
    
    .freeCreditTransfer-wrap .freeCreditAmt {
        font-size: 38px;
    }
}

@media (max-width: 1200px) {
    .freeCredit-tab-navigation,
    .freeCreditTransfer-wrap .transaction-freeCredit-title,
    .freeCreditList2,
    .freeCreditTransfer-wrap .unClaim_voucher-wrap {
        width: 95%;
    }
    
    .transaction-list .row.claim-credit {
        flex-wrap: nowrap;
    }
}

@media (max-width: 992px) {
    .transaction-list .row.claim-credit {
        flex-direction: column;
        text-align: center;
    }
    
    .transaction-list .amountColumn,
    .transaction-list .col-sm-5,
    .transaction-list .col-sm-3 {
        width: 100%;
        padding: 10px 0;
        align-items: center;
    }
    
    .freeCreditTransfer-wrap .freeCreditTitle {
        font-size: 20px;
    }
    
    .freeCreditTransfer-wrap .freeCreditAmt {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
   .freeCredit-area .freeCreditTransfer-wrap .transaction-freeCredit-title .voucher-wrap,
    .freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap {
        flex-direction: column;
        gap: 10px;
    }
    
    .freeCredit-area .freeCreditTransfer-wrap .transaction-freeCredit-title .voucher-wrap .voucherCode,
    .freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap .voucherCode,
    .freeCredit-area .freeCreditTransfer-wrap .transaction-freeCredit-title .voucher-wrap .redeemBtn,
    .freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap .redeemBtn {
        width: 100% !important;
    }

}

/* Hide actions, show mask when not available */
.credits-item-[data-creditavail="false"] .btn-subsubmit-,
.credits-item-[data-creditavail="false"] .btn_transfer,
.credits-item-[data-creditavail="false"] button {
  display: none !important;
}

.credits-item-[data-creditavail="false"] .mask- {
  display: flex !important; /* or block, match your mobile */
}

/* Optional: dim the card */
.credits-item-[data-creditavail="false"] .content- {
  opacity: .5;
  pointer-events: none;
}

/* Make the outer card a flex row */
.freeCreditWrapper .transaction-list {
  display: flex;
  justify-content: space-between;   /* avoid space-around bumps */
  align-items: center;
  box-sizing: border-box;
}

/* Target the three columns directly under .transaction-list */
.freeCreditWrapper .transaction-list > .amountColumn { 
  flex: 0 0 25%;
  padding-right: 20px;
  box-sizing: border-box;
}

.freeCreditWrapper .transaction-list > .col-sm-5 { 
  flex: 0 0 45%;
  padding: 0 20px;
  box-sizing: border-box;
}

.freeCreditWrapper .transaction-list > .col-sm-3 { 
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  box-sizing: border-box;
}





