.accordion {
	// accordion primary
	&-primary{
		.accordion-header {
			&.collapsed{
				background: var(--rgba-primary-1);
				border-color: var(--rgba-primary-1);
				color: var(--primary);
				box-shadow:none;
				@at-root [data-theme-version="dark"] & {
					background: var(--rgba-primary-1);
					border-color: var(--rgba-primary-1);
					color:$body-color;
				}
			}
			background:var(--primary);
			border-color:var(--primary);
			color: $white;
			box-shadow:0 0.9375rem 1.25rem 0 var(--rgba-primary-1);
		}
	}
	&-primary-solid{
		.accordion-header {
			&.collapsed{
				background: var(--rgba-primary-5);
				border-color: var(--rgba-primary-5);
				color: var(--primary);
				box-shadow:none;
				border-bottom-#{$dz-pos-left}-radius:$radius;
				border-bottom-#{$dz-pos-right}-radius:$radius;
				@at-root [data-theme-version="dark"] & {
					background: var(--rgba-primary-1);
					border-color: var(--rgba-primary-1);
					color:$body-color;
				}
			}
			background:var(--primary);
			border-color:var(--primary);
			color: $white;
			box-shadow:0 -0.625rem 1.25rem 0 var(--rgba-primary-1);
			border-bottom-#{$dz-pos-left}-radius:0;
			border-bottom-#{$dz-pos-right}-radius:0;
		}
		.accordion__body {
            border: 0.125rem solid var(--primary);
            border-top: none;
			box-shadow:0 0.9375rem 1.25rem 0 var(--rgba-primary-1);
			border-bottom-#{$dz-pos-left}-radius:$radius;
			border-bottom-#{$dz-pos-right}-radius:$radius;
		}
	}

	&-danger{
		.accordion-header {
			&.collapsed{
				background: $danger-light;
				border-color: $danger-light;
				color: #211c37;
				box-shadow:none;
			}
			background:$danger;
			border-color:$danger;
			color: $white;
			box-shadow:0 0.9375rem 1.25rem 0 rgba($danger, 0.15);
		}
	}
	&-danger-solid{
		.accordion-header {
			&.collapsed{
				background: $danger-light;
				border-color: $danger-light;
				color: #211c37;
				box-shadow:none;
				border-bottom-#{$dz-pos-left}-radius:$radius;
				border-bottom-#{$dz-pos-right}-radius:$radius;
				@at-root [data-theme-version="dark"] & {
					background:  rgba($danger, 0.5);
					border-color: rgba($danger, 0.5);
					color:$body-color;
				}
			}
			background:$danger;
			border-color:$danger;
			color: $white;
			box-shadow:0 -0.625rem 1.25rem 0 rgba($danger, 0.15);
			border-bottom-#{$dz-pos-left}-radius:0;
			border-bottom-#{$dz-pos-right}-radius:0;
		}
		.accordion__body {
            border: 0.125rem solid $danger;
            border-top: none;
			box-shadow:0 0.9375rem 1.25rem 0 rgba($danger, 0.15);
			border-bottom-#{$dz-pos-left}-radius:$radius;
			border-bottom-#{$dz-pos-right}-radius:$radius;
		}
	}


    //a single accrodion
    &-item {
        margin-bottom: 1.25rem;
		border-radius: $radius;
		background-color: transparent;
    }

    //accrodion header styles
    &-header {
        padding:1rem 1.75rem;
        border: 0.0625rem solid $border;
        cursor: pointer;
        position: relative;
        color: $heading;
        font-weight: 400;
		border-radius:$radius;
		@include transitionMedium;
        @at-root [data-theme-version="dark"] & {
            color: $white!important;
            border-color: $d-border;
        }
        
        

        //set the indicator font family
        &-indicator {
            font-family: 'themify';
            position: absolute;
            #{$dz-pos-right}: 1.5625rem;
            top: 50%;
            transform: translateY(-50%);
            &.indicator_bordered {
                display: inline-block;
                width: 1.5625rem;
                text-align: center;
                height: 1.5625rem;
                border: 0.0625rem solid $border;
                border-radius: 50%;
                line-height: 1.5625rem;
            }
        }

        &:not(.collapsed) {
            .accordion-header-indicator {
                &::before {
                    content: "\e622";
                }

                //icon style
                &.style_two {
                    &::before {
                        content: "\e648";
                    }
                }
            }
        }

        &.collapsed {
            .accordion-header-indicator {
                &::before {
                    content: "\e61a";
                }

                //icon style
                &.style_two {
                    &::before {
                        content: "\e64b";
                    }
                }
            }
        }
    }

    //accordion body styles
    &-body {
        &-text {
            padding: 0.875rem 1.25rem;
        }
        
    }

    //accrodion with border
    &-bordered {
        .accordion__body {
            border: 0.0625rem solid $border;
            border-top: none;
			border-bottom-#{$dz-pos-left}-radius:$radius;
			border-bottom-#{$dz-pos-right}-radius:$radius;
            @at-root [data-theme-version="dark"] & {
                border-color: $d-border;
            }
        }
		.accordion-header.collapsed{
			border-radius:$radius;
		}
		.accordion-header{
			border-bottom-#{$dz-pos-left}-radius:0;
			border-bottom-#{$dz-pos-right}-radius:0;
		}
		
    }

    //accrodion without space
    &-no-gutter {
        .accordion-item {
            margin-bottom: 0;
			background: transparent;

            .accordion-header {
                &.collapsed {
                    border-bottom: none;
                }
            }

            &:last-child {
                .accordion-header {
                    border-bottom: 0.0625rem solid $border;
                    @at-root [data-theme-version="dark"] & {
                        border-color: $d-border;
                    }
                }
            }
            
        }
    }

    //not gutter and bordered
    &-no-gutter.accordion__bordered {
        .accordion-item {
            &:not(:last-child) {
                .accordion__body {
                    border-bottom: none;
                }
            }
        }
    }

    //indicator in left positon
    &-left-indicator {
        .accordion-header {
            &-text {
                padding-#{$dz-pos-left}: 2.5rem;
            }

            &-indicator {
                #{$dz-pos-right}: auto;
                #{$dz-pos-left}: 1.5625rem;
            }
        }
    }

    //with icon
    &-with-icon {
        .accordion-header {
            &-text {
                padding-#{$dz-pos-left}: 2.5rem;
            }

            &-icon {
                position: absolute;
                #{$dz-pos-right}: auto;
                #{$dz-pos-left}: 1.5625rem;
                font-family: 'themify';
                &::before {
                    content: "\e645";
                }
            }
        }

    }

    //with header background
    &-header-bg {
        .accordion-header {
            background-color: $light;
            @at-root [data-theme-version="dark"] & {
                background-color: $d-bg;
                color: $white;
            }
            
            &-primary {
                background-color: var(--primary);
                color: $white;
				border-color:var(--primary);
				@at-root [data-theme-version="dark"] & {
					background-color: var(--primary);
				}
            }
            
            &-info {
                background-color: $info;
                color: $white;
				border-color:$info;
				@at-root [data-theme-version="dark"] & {
					background-color: $info;
				}
            }

            &-success {
                background-color: $success;
                color: $white;
				border-color:$success;
				@at-root [data-theme-version="dark"] & {
					background-color: $success;
				}
            }
        }
    }

    //with header background and no space
    &-header-bg.accordion-no-gutter {
        .accordion-header {
            border-color: transparent;
			border-radius: 0;
        }
		.accordion-item{
			&:first-child{
				.accordion-header{
					border-top-#{$dz-pos-left}-radius:$radius;
					border-top-#{$dz-pos-right}-radius:$radius;
				}
			}
			&:last-child{
				.accordion-header{
					border-bottom-#{$dz-pos-left}-radius:$radius;
					border-bottom-#{$dz-pos-right}-radius:$radius;
				}
			}
		}
    }
	&.accordion-no-gutter {
        .accordion-header {
            border-radius: 0;
        }
		.accordion-header.collapsed {
			border-radius: 0;
		}
		.accordion__body{
			border-radius: 0;
		}
		.accordion-item{
			&:first-child{
				.accordion-header{
					border-top-#{$dz-pos-left}-radius:$radius;
					border-top-#{$dz-pos-right}-radius:$radius;
				}
			}
			&:last-child{
				.accordion-header.collapsed{
					border-bottom-#{$dz-pos-left}-radius:$radius;
					border-bottom-#{$dz-pos-right}-radius:$radius;
				}
				.accordion__body{
					border-bottom-#{$dz-pos-left}-radius:$radius;
					border-bottom-#{$dz-pos-right}-radius:$radius;
				}
			}
		}
    }
    //with solid background
    &-solid-bg {
        .accordion-header {
            border-color: transparent;
            background-color: var(--rgba-primary-1);
			border-bottom-#{$dz-pos-left}-radius:0;
			border-bottom-#{$dz-pos-right}-radius:0;
			
            @at-root [data-theme-version="dark"] & {
                background-color: $d-bg;
            }
			&.collapsed{
				border-radius:$radius;
			}
        }
		
        .accordion__body {
            border-color: transparent;
            background-color: var(--rgba-primary-1);
			border-bottom-#{$dz-pos-left}-radius:$radius;
			border-bottom-#{$dz-pos-right}-radius:$radius;
            @at-root [data-theme-version="dark"] & {
                background-color: $d-bg;
            }
        }
    }

    //active header styles
    &-active-header {
        .accordion-header {
            &:not(.collapsed) {
                background-color: $info;
                border-color: $info;
                color: $white;
            }
        }
    }

    //shadow in header
    &-header-shadow {
        .accordion-header {
            border: none;
            box-shadow: 0 0 0.9375rem -0.1875rem rgba($color: $black, $alpha: .3);
        }
    }

    //stylishly rounded borders
    &-rounded-stylish {
        .accordion-header {
            border-top-#{$dz-pos-left}-radius: 0.375rem;
            border-top-#{$dz-pos-right}-radius: 0.375rem;
        }

        .accordion__body {
            border-bottom-#{$dz-pos-left}-radius: 0.375rem;
            border-bottom-#{$dz-pos-right}-radius: 0.375rem;
        }
    }

    //smothly rounded accrodion header
    &-rounded {
        .accordion-header {
            border-radius: 0.3125rem;
        }
    }

    //accordion gradient
    &-gradient {
        .accordion-header {
            color: $white;
            background-image: linear-gradient(to right, rgba(186, 1, 181, 0.85) 0%,rgba(103, 25, 255, .85) 100%);
            border-color: transparent;
			border-bottom-#{$dz-pos-left}-radius: 0;
            border-bottom-#{$dz-pos-right}-radius: 0;
			&.collapsed{
				border-bottom-#{$dz-pos-left}-radius: 0.375rem;
				border-bottom-#{$dz-pos-right}-radius:0.375rem;
			}
        }

        .accordion__body {
            color: $white;
            background-image: linear-gradient(to right, rgba(186, 1, 181, 0.85) 0%,rgba(103, 25, 255, .85) 100%);
            border-color: transparent;
        }
    }
	
} 
.accordion-item{
	border:0;
}