/* General */
.download-card {
	display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 6px;
	background-color: var(--bricks-color-ofvvdf);
	overflow: hidden;
    box-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
    transition: var(--default-transition);
}
.download-card:hover {
    box-shadow: 0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;
}

.download-button {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
	font-weight: 600;
    transition: var(--default-transition);
	width: fit-content;
}

.download-card .download-button {
	width: 100%;
}

.download-button-primary {
    color: var(--bricks-color-ofvvdf);
    background-color: var(--bricks-color-xtoevs);
}
.download-button-primary:hover {
    background-color: var(--bricks-color-shwzxf);
}

.download-card-secondary {
    background-color: var(--bricks-color-ofvvdf);
    border: 2px solid var(--bricks-color-xtoevs);
    color: var(--bricks-color-xtoevs);
}
.download-card-secondary:hover {
    background-color: var(--bricks-color-efwasy);
}

.download-button-light {
    background-color: var(--bricks-color-ofvvdf);
    color: var(--bricks-color-xtoevs);
}
.download-button-light:hover {
    background-color: var(--bricks-color-efwasy);
}

/* Simple Card */
.download-card-simple {
    padding: 24px;
    font-size: 12px;
}

.download-card-simple-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--bricks-color-kbhltr);
}

.download-card-simple-top > svg {
    color: var(--bricks-color-xtoevs);
}

.download-card-simple-title {
    font-size: 14px;
}

.download-card-simple-description {
    margin-top: 8px;
}

.download-card-simple-download-button {
    margin-top: 16px;
    padding: 8px 16px;
}
.download-card-simple-download-button > svg {
    width: 14px;
    height: 14px;
}

/* Extended Card */
.download-card-extended {
    font-size: 14px;
}

.download-card-extended-top {
    color: #fff;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-card-extended-top > svg {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
}

.download-card-extended-title {
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: unset;
}

.download-card-extended-bottom {
    padding: 24px;
}

.download-card-extended-meta-row {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--bricks-color-kbhltr);
}

.download-card-extended-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.download-card-extended-meta-type {
    font-weight: 600;
    color: var(--bricks-color-xtoevs);
}

.download-card-extended-buttons {
    margin-top: 24px;
    border-top: 1px solid var(--bricks-color-zdezqm);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
}

.download-card-extended-button {
    padding: 12px 16px;
}
.download-card-extended-button > svg {
    width: 16px;
    height: 16px;
}

/* Install Guide */
.download-card-install-guide {
    padding: 24px;
    font-size: 14px;
}

.download-card-guide-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--bricks-color-shwzxf);
}

.download-card-guide-top > svg {
    width: 32px;
    height: 32px;
}

.guide-difficulty {
    padding: 4px 12px;
    font-size: 12px;
    text-transform: capitalize;
    border-radius: 50px;
}
.guide-difficulty-easy {
    color: #016630;
    background-color: #dcfce7;
}
.guide-difficulty-intermediate {
    color: #894b00;
    background-color: #fef9c2;
}
.guide-difficulty-hard {
    color: #890000;
    background-color: #fec2c2;
}

.download-card-install-guide .download-card-extended-title {
    margin-bottom: 8px;
}

.download-card-install-guide .download-card-extended-buttons {
    margin-top: 16px;
    padding-top: 16px;
}

.download-card-install-guide .download-button {
    padding: 10px 16px;
}

.download-card-install-guide .download-button > span {
    margin-left: auto;
    font-size: 12px;
}

/* Button only */
.download-button-single {
    padding: 16px 32px;
    gap: 12px;
    font-size: 14px;
}
.download-button-single > svg {
    width: 20px;
    height: 20px;
}

/* Builder Placeholder */
.brxe-file-download.bricks-draggable-item {
	position: relative;
	min-height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.brxe-file-download.bricks-draggable-item:not(.download-button) {
	width: 100%;
}
.brxe-file-download.bricks-draggable-item:not(.download-button)::before {
	content:'';
	display: block;
	padding-top: 56%;
}
.brxe-file-download.bricks-draggable-item::after {
	content: 'FILE DOWNLOAD - BUILDER PLACEHOLDER';
	padding: 4px 8px;
	text-align: center;
}
.brxe-file-download.bricks-draggable-item:not(.download-button)::after {
	position: absolute;
}