/*
CTC Separate Stylesheet
Updated: 2024-03-14 07:22:08
*/

.elementor-widget-archive-posts .elementor-widget-container .elementor-posts article {
    border: 1px solid transparent;
    border-radius: 16px;
    background-color: #fff
}

.elementor-login.elementor-form .elementor-lost-password,
.elementor-login.elementor-form .elementor-remember-me {
    font-size: 16px;
}

.elementor-login.elementor-form .elementor-login-separator {
    margin: 0 20px
}

.elementor-button, .fea-submit-button {
    background: linear-gradient(180deg, #DC9E42 0%, #FFDDA9 49.5%, #D69A40 99.5%);
}

/* custom form ACF Elementor */
.fea-submit-buttons {
	margin-top: 24px;
    justify-content: center;
}

button.fea-submit-button {
	font-family: "Bona Nova", Sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #261717;
    border-radius: 4px 4px 4px 4px;
    padding: 10px 26px 10px 26px;
    border: none;
    background: linear-gradient(180deg, #DC9E42 0%, #FFDDA9 49.5%, #D69A40 99.5%);
}


/* Create Tomb */
.create-tomb .elementor-field-group-religion input {
    display: none !important;
}

.create-tomb .elementor-field-group-religion .elementor-field-subgroup label {
    width: 120px;
    display: inline-block !important;
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    cursor: pointer;
}

.create-tomb .elementor-field-group-religion .elementor-field-subgroup label:before {
    content: "";
    display: block;
    height: 120px;
    width: 100%;
    background: url(https://nghiatrangtuonglai.com/wp-content/uploads/2024/03/Phat-giao.png) no-repeat center;
    margin-bottom: 8px;
    transition: all .3s ease-in-out;
}

.create-tomb .elementor-field-group-religion .elementor-field-subgroup input[value="1"]:checked~label:before {
    background-image: url(https://nghiatrangtuonglai.com/wp-content/uploads/2024/03/Phat-giao-2.png);
}

.create-tomb .elementor-field-group-religion .elementor-field-subgroup input[value="2"]~label:before {
    background-image: url(https://nghiatrangtuonglai.com/wp-content/uploads/2024/03/Cong-giao.png);
}

.create-tomb .elementor-field-group-religion .elementor-field-subgroup input[value="2"]:checked~label:before {
    background-image: url(https://nghiatrangtuonglai.com/wp-content/uploads/2024/03/Cong-giao-2.png);
}

.create-tomb .elementor-field-group-religion .elementor-field-subgroup input[value="3"]~label:before {
    background-image: url(https://nghiatrangtuonglai.com/wp-content/uploads/2024/03/Tin-lanh.png);
}

.create-tomb .elementor-field-group-religion .elementor-field-subgroup input[value="3"]:checked~label:before {
    background-image: url(https://nghiatrangtuonglai.com/wp-content/uploads/2024/03/Tin-lanh-2-1.png);
}

.create-tomb .elementor-field-group-religion .elementor-field-subgroup input[value="4"]~label:before {
    background-image: url(https://nghiatrangtuonglai.com/wp-content/uploads/2024/03/Tin-lanh-2.png);
}

.create-tomb .elementor-field-group-religion .elementor-field-subgroup input[value="4"]:checked~label:before {
    background-image: url(https://nghiatrangtuonglai.com/wp-content/uploads/2024/03/Khac-2.png);
}

.create-tomb .elementor-field-group-religion span.elementor-field-option {
    padding-right: 20px;
}

.create-tomb h4 {
    display: inline-block;
    background-color: #512B29;
    padding: 8px 16px;
    margin: 0;
}

.create-tomb h4:before {
    content: "";
    width: calc(100% - 20px);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    height: 1px;
    background-color: #fff;
    z-index: -1;
    opacity: 1 !important;
    left: 10px;
}

.create-tomb .select2-container .select2-selection--single {
	height: 58px;
}
.create-tomb .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 58px;
}
.create-tomb .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 56px;
}
.select2-dropdown .select2-results__option {
	color: #261717 !important;
}
.create-tomb input[type="text"],
.create-tomb input[type="number"],
.create-tomb select {
    height: 58px;
    padding: 16px 20px 16px 16px;
}

.create-tomb .elementor-select-wrapper .select-caret-down-wrapper svg {
    height: 25px;
}

.create-tomb .elementor-field-group-gender input {
    display: none !important;
}

.create-tomb .elementor-field-group-gender .elementor-field-subgroup {
    display: flex;
    gap: 20px;
}

.create-tomb .elementor-field-group-gender .elementor-field-subgroup span.elementor-field-option {
    flex-basis: auto;
    display: flex;
    align-items: center;
}

.create-tomb .elementor-field-group-gender .elementor-field-subgroup span.elementor-field-option label {
    line-height: 26px;
    display: block;
    height: 26px;
    padding-left: 38px;
    position: relative;
}

.create-tomb .elementor-field-group-gender .elementor-field-subgroup span.elementor-field-option label:before {
    content: "";
    width: 26px;
    height: 26px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    background: #ABAAAA;
    border: 4px solid #EAEAEA;
    transition: all .2s cubic-bezier(0.55, 0.09, 0.68, 0.53);
}

.create-tomb .elementor-field-group-gender .elementor-field-subgroup span.elementor-field-option input:checked~label:before {
    background: var(--e-global-color-secondary);
}

.create-tomb label.elementor-field-label {
    padding-bottom: 10px !important;
}

.create-tomb label.elementor-field-label[for="form-field-gender"] {
    padding-bottom: 20px !important;
}

.create-tomb input#form-field-image::file-selector-button {
    font-size: 16px;
    line-height: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(180deg, #DC9E42 0%, #FFDDA9 49.5%, #D69A40 99.5%);
}

.create-tomb .elementor-field-group-image:after {
    content: "Chỉ hỗ trợ *.jpg, *.png... dung lượng tối đa 10MB";
    margin-top: 5px;
    font-family: "Be Vietnam Pro", sans-serif;
}

.create-tomb .elementor-field-group-image input#form-field-image {
    color: #fff;
}

.elementor-field-group-birth_date label.elementor-field-label:after, .elementor-field-group-date_of_death label.elementor-field-label:after {
    content: "(Vui lòng nhập đúng định dạng dd/mm/yyyy)";
    display: block;
    font-size: 15px;
    font-weight: normal;
    line-height: 5px;
    margin-top: 10px;
}

/* Dashboard */
.item-grave {
    display: table-row;
    vertical-align: middle;
    transition: all .2s ease-in-out;
}

.item-child {
    display: table-cell;
    vertical-align: inherit;
    unicode-bidi: isolate;
    border-bottom: 1px solid #dddddd45;
    text-align: left;
    padding: 8px;
}

.list-grave {
    display: table-row-group;
    vertical-align: middle;
    unicode-bidi: isolate;
    border-color: inherit;
}

.dashboard-grave {
    display: table;
    border-collapse: separate;
    box-sizing: border-box;
    text-indent: initial;
    unicode-bidi: isolate;
    /* border-spacing: 2px; */
    width: 100%;
    /* border: 1px solid #dddddd45; */
    /* background-color: #fff; */
    border-radius: 10px;
    overflow: hidden;
}

.item-child p {
    margin-bottom: 0;
	padding: 8px 0;
}

.dashboard-grave * {
    /* color: #000 !important; */
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 15px;
    text-wrap: nowrap;
}

.dashboard-grave .elementor-button.elementor-button-link.elementor-size-sm {
    color: #000;
}

.item-grave.title-item .item-child {
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

.item-grave:not(:first-child) .item-child {
    text-align: center;
}

.item-grave:last-child .item-child {
    border-bottom: none;
}

.item-grave:not(:first-child):hover {
    background-color: #000000ad;
}

.item-child.image-grave img {
    max-height: 70px;
    width: auto !important;
}

.box-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dashboard-user {
    margin: 0 auto;
}

.box-password {
    margin-bottom: 25px;
    border: 1px solid rgb(255 255 255 / 70%);
    padding: 1.25rem;
    position: relative;
}

.box-password .empty-title {
    position: absolute;
    top: -16px;
    color: var(--e-global-color-primary);
    background-color: #fff;
    padding: 2px 10px;
    text-wrap: nowrap;
    border-radius: 35px;
    font-size: 16px;
}

.item-user:last-child .form-password {
    margin-bottom: 0;
}


.drcc-toast-container.hide {
    display: none;
}

.toast-body {
    z-index: 9;
    position: fixed;
    right: 30px;
    top: 100px;
    background-color: var(--e-global-color-text);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 15px 30px 15px 20px;
    width: 300px;
    animation: SlideInRight 1s, SlideOutRight 3s forwards 4s;
    border-left: 5px solid #198754;
}

.toast-warning .toast-body {
    border-left-color: #ffc107;
}

.toast-error .toast-body {
    border-left-color: #dc3545;
}

@keyframes SlideInRight {
    from {
        opacity: 0;
        transform: translateX(calc(100% + 40px));
    }

    to {
        opacity: 1;
        transform: translateX(0%);
    }
}

@keyframes SlideOutRight {
    from {
        opacity: 1;
        transform: translateX(0%);

    }

    to {
        opacity: 0;
        transform: translateX(calc(100% + 40px));
    }
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-size: 20px;
    margin-bottom: 10px;
    text-transform: capitalize;
    font-weight: bold;
    line-height: 1;
}

.toast-text {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
}

.toast-icon {
    margin-right: 20px;
}

.toast-icon i {
    font-size: 30px;
}

.toast-warning .toast-icon,
.toast-warning .toast-title {
    color: #ffc107;
}

.toast-success .toast-icon,
.toast-success .toast-title {
    color: #198754;
}

.toast-error {
    color: #dc3545;
}

.toast-close {
    position: absolute;
    top: 0px;
    right: 0px;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.toast-close i {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.2);
}

@media only screen and (max-width: 850px) {
    .dashboard-grave {
        overflow-x: scroll;
        display: block;
    }

    .dashboard-grave::-webkit-scrollbar {
        height: 10px;
    }

    .dashboard-grave::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 5px;
    }

    .dashboard-grave::-webkit-scrollbar-thumb {
        background: var(--e-global-color-secondary);
        border-radius: 5px;
    }

    .dashboard-grave::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}


/* Single Grave */
.box-cemetery {
    text-align: center;
}

.box-cemetery .title-cemetery,
.box-cemetery .tax-cemetery {
    color: var(--e-global-color-primary);
}

.headstone>.e-con-inner {
    background: url(/wp-content/uploads/2024/04/Phatgiao.png) no-repeat center;
    background-size: contain;
}

.headstone .elementor-widget-image .elementor-widget-container {
    border: 1px solid var(--e-global-color-primary);
    border-radius: 99px;
}

.headstone .elementor-widget-image .elementor-widget-container img {
    background-color: var(--e-global-color-primary);
}

.box-neighboring-grave {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.box-neighboring {
    margin: 0;
    padding: 0 23px;
    position: relative;
    width: 100%;
    flex-basis: 25%;
    max-width: 25%;
}

.item-neighboring {
    background: url(/wp-content/uploads/2024/04/Phatgiao.png) no-repeat center bottom;
    background-size: contain;
    text-align: center;
}

.image-neighboring {
    position: relative;
    overflow: hidden;
    padding-top: 83px;
    background-position: 50% 50%;
    background-size: cover;
    width: 85px;
    margin: 0 auto;
    /* background-color: #83827F; */
    border-radius: 99px;
    border: 1px solid var(--e-global-color-primary);
}

.image-neighboring img {
    width: 100%;
    height: 100% !important;
    top: 0;
    position: absolute;
    object-position: 50% 50%;
    object-fit: cover;
    display: block;
    border: 5px solid transparent !important;
    border-radius: 99px !important;
}

.box-neighboring {
    height: 350px;
}

.item-neighboring {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
/*     padding-bottom: 85px; */
	
/* 	Added by: toanbui217 */
    padding-bottom: 60px;
/* End */
}

.content-neighboring p {
    margin-bottom: 0;
    color: #261717;
}

.name-neighboring {
    font-family: Playball;
	/*     font-size: 24px; */
	/* 	Added by: toanbui217 */
	font-size: 20px;
	height: 60px;
	/* 	End */
    font-weight: 400;
    line-height: 30px;
    text-align: center;
    color: #261717;
	
	/* 	Added by: toanbui217 */
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2; /* number of lines to show */
	line-clamp: 2;
	-webkit-box-orient: vertical;
	/* 	End */
}

.date-neighboring {
    styleName: Body;
    font-family: Bona Nova;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.content-neighboring {
    padding: 0 50px;
}

#form_edit_image .elementor-field-group-image input#form-field-image {
    color: #fff;
}

#form_edit_image input#form-field-image::file-selector-button {
    font-size: 16px;
    line-height: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(180deg, #DC9E42 0%, #FFDDA9 49.5%, #D69A40 99.5%);
}

#form_edit_image .elementor-field-group-image:after {
    content: "*Chỉ hỗ trợ *.jpg, *.png... dung lượng tối đa 10MB";
    margin-top: 5px;
    font-family: "Be Vietnam Pro", sans-serif;
}

@media only screen and (max-width: 850px) {
    .box-cemetery .title-cemetery {
        font-size: 60px;
        line-height: 70px;
    }

    .box-neighboring {
        flex-basis: 50%;
        max-width: 50%;
        padding: 0 10px;
        height: 450px;
    }

    .image-neighboring {
        width: 110px;
        padding-top: 108px;
    }

	/* 	Added by: toanbui217 */
	/* 	.name-neighboring {
	font-size: 28px;
	line-height: 40px;
} */
	/* 		End */

    .content-neighboring {
        padding: 0px 75px;
    }

    .item-neighboring {
        gap: 20px;
/*         padding-bottom: 110px; */
		
		/* 	Added by: toanbui217 */
		padding-bottom: 60px;
		/* End */
    }

    .date-neighboring {
        font-size: 20px;
    }
}

@media only screen and (max-width: 550px) {
    .grave-info>.e-con-inner>.elementor-element {
        width: 50%;
    }

    .box-neighboring {
        flex-basis: 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}