/*
.woocommerce-account .main-container {
    width: 100% !important;
}
*/

.member-perks-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    color: #303C6C;
    display: flex;
    gap: 15px;
}

.woocommerce-MyAccount-content .member-perks-container p, .woocommerce-MyAccount-content .member-perks-container h3 {
	font-family: 'Montserrat', sans-serif;
}

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--coupon-affiliate {
    display: none;
}

.member-status-section {
    background: #fff;
/*     padding: 25px; */
    margin-bottom: 30px;
    width: 100%;

}

.member-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.member-avatar {
    position: relative;
    margin-right: 20px;
    box-sizing: border-box !important;
    cursor: pointer;
    min-width: 100px;
}

.member-avatar img {
    border-radius: 50%;
    border: 5px solid #303C6C;
    position: relative;
    z-index: 1;
    aspect-ratio: 1/1;
}

.member-avatar.silver img {
    border-radius: 50%;
    border: 5px solid #BCC6CC;
    position: relative;
    z-index: 1;
}

.member-avatar.gold img {
    border-radius: 50%;
    border: 5px solid #FFD700;
    position: relative;
    z-index: 1;
}

.member-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0) 39%, rgba(255, 255, 255, 1) 47%, rgba(255, 255, 255, 0) 55%);
    background-size: 400% 400%;
    z-index: 2;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.member-details {
    width: 100%;
}

.member-details h2 {
    margin: 0 0 8px 0;
    color: #303C6C;
    font-size: 24px;
    font-weight: 600;
}

.member-type {
    color: #303C6C;
    margin: 0 0 5px 0;
    font-size: 15px;
    display: inline;
}

.member-type a {
    color: #303C6C;
    text-decoration: underline;
}

.wr-referral-code-wrapper .copied-message {
	background-color: #303C6C !important;
	font-size: 14px !important;
}

.member-perks-container .wr-referral-code-wrapper {
    display: inline;

    & * {
        display: inline;
        font-size: 15px;
    }

    & .wr_refl_button_copy {
        text-decoration: underline;
        color: #303C6C;
    }
}

.member-since {
    color: #303C6C;
    margin: 0;
    font-size: 14px;
}

.membership-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    max-width: 1000px;
    width: 55%;
}

.status-box {
    margin-bottom: 25px;
}

.status-box h3 {
    color: #303C6C;
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
}

.validity,
.points-expiry,
.status-description {
    color: #303C6C;
    font-size: 15px;
    padding: 0px
}

.spending-progress {
    position: relative;
    padding: 20px 0;
}

.progress-bar {
    height: 25px;
    background: #e9ecef;
    border-radius: 100px;
    position: relative;
    margin: 30px 0 20px;
}

.progress {
    height: 100%;
    background: #303C6C;
    border-radius: 100px;
    position: relative;
    transition: width 0.3s ease;
}

.progress.gold {
    background: #FFD700;
}

.marker {
    position: absolute;
    top: -38px;
    transform: translateX(-50%);
    background: #303C6C;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1;
}

.progress.gold .marker {
    background: #FFD700;
    color: #303C6C;

    &:after {
        border-top-color: #FFD700;
    }
}

.marker:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #303C6C;
}

.target-amount {
    position: absolute;
    right: 0;
    /* top: -32px; */
    color: #666;
    font-weight: 500;
}

.progress-text {
    color: #303C6C;
    margin: 15px 0 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.member-section-container {
    display: flex;
    gap: 30px;
}

.upcoming-reservations {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    width: 45%;
}

.upcoming-reservations h3 {
    color: #303C6C;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

.reservation-details {
    background: #f8f9fa;
    border-radius: 8px;
}

.reservation-details p {
    color: #303C6C;
    font-size: 15px;
    padding: 0;
}

.checkin-note {
    width: 100%;
    text-align: center;
}

.checkin-note p {
    color: #303C6C;
    font-style: italic;
    font-size: 14px;
}

.online-checkin-btn {
    display: inline-block;
    background: #303C6C;
    color: white;
    padding: 12px 25px;
    border-radius: 100px;
    text-decoration: none;
    margin-top: 15px;
    margin-bottom: 20px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.online-checkin-btn:hover {
    background: #252F54;
    color: white;
    text-decoration: none;
}

/* My Account page specific styles */
.woocommerce-MyAccount-content .member-perks-container {
    padding: 0;
}

/*
.woocommerce-MyAccount-content .member-status-section {
    margin-top: 20px;
}
*/

/* Reservation History */
.reservation-history-table td,
.reservation-history-table th,
.reservation-history-table {
    border: none;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #f0f0f0;
}

.reservation-history-table td[data-label="Order ID"], .reservation-history-table td[data-label="Date Booked"], 
.reservation-history-table td[data-label="Arrival Date"], .reservation-history-table td[data-label="Departure Date"], 
.reservation-history-table td[data-label="Booking Amount"] {
    text-align: center;
}

.reservation-history-table td:nth-child(6) {
    text-align: center;
}

.reservation-history-table th {
    background-color: #eee;
    padding: 10px;
}

.reservation-history-table th:nth-child(5) {
	text-align: left;
}

.reservation-history-table tr:nth-child(even) {
    background-color: #f7f7f7;
}

/* Point History */
.lwss_selectable.history-grid-title, .lwss_selectable.history-grid-date,
.lwss_selectable.history-grid-descr, .lwss_selectable.history-grid-points,
.lwss_selectable.history-grid-total {
	padding: 10px !important;
	border: 1px solid #f0f0f0;
	font-family: 14px !important;
}

.lwss_selectable.history-grid-points, .lwss_selectable.history-grid-total {
	text-align: center !important;
}

.lwss_selectable.wr-history-grid {
	gap: 0 !important;
}

@media (min-width: 1024px) {
	.reservation-history-table td[data-label="Arrival Date"] {
		width: 90px;
	}
}

@media (max-width: 1300px) {

    .member-section-container {
        flex-wrap: wrap;
    }
    
    .upcoming-reservations, .membership-details {
        width: 100%;
    }
}

/* Responsive styles for mobile view */
@media (max-width: 768px) {

    .reservation-history-table thead {
        display: none;
    }

    .reservation-history-table {
        width: 100%;
        display: block;
        overflow-x: auto;
    }

    .reservation-history-table th,
    .reservation-history-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .reservation-history-table th {
        background-color: #eee;
        text-align: left;
    }

    .reservation-history-table td {
        border-top: 1px solid #ddd;
        padding-left: 50%;
        position: relative;
    }
    
    
    .reservation-history-table td:nth-child(6) {
        text-align: unset;
    }

    .reservation-history-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        white-space: nowrap;
    }

    .reservation-history-table tr {
        display: block;
        margin-bottom: 10px;
    }
}

.member-avatar .dashicons.dashicons-edit {
    position: absolute;
    right: 0;
    z-index: 2;
    background: white; 
    border-radius: 50%;
    box-shadow: 1px 1px rgb(49, 59, 108);
    transition: 0.2s ease all;
    opacity: 0;
    text-decoration: none;
    color: rgb(49, 59, 108);
}

.member-avatar:hover .dashicons.dashicons-edit {
    opacity: 1;
}

#profile_picture_preview {
	aspect-ratio: 1/1;
	min-width: 100px;
}

.wr-referral-code-wrapper .link-url.url_to_copy.link {
    opacity: 0;
    height: 1px;
    overflow: hidden;
    width: 1px;
    display: inline-block;
    border: 0px;
    padding: 0;
}
