.box {
/*	border:1px solid black; */
}
.box-input {
	position:relative;
	top:0px;	
}
.title {
	font-weight:bold;	
} 
.sts-main-form {
	position:relative;
	/* left:200px; */
}
.sts-submit-button {
}

/* Download history - thumbnail hover zoom */
.sts-resize {
    -webkit-transition-property: all;
    -webkit-transition-duration: 0.3s;
    -webkit-transition-timing-function: ease;
}
.sts-resize:hover {
    transform: scale(2);
}

/* Download history - credit status bar */
.acud-credit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 3px;
    padding: 10px 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.acud-credit-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.acud-credit-number {
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
    line-height: 1;
}
.acud-credit-label {
    font-size: 14px;
    color: #444;
}
.acud-credit-reset {
    font-size: 13px;
    color: #646970;
}

/* Download history - flex list */
.acud-history-list {
    font-size: 14px;
    width: 100%;
}

/* shared row layout */
.acud-history-header,
.acud-history-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
}
.acud-history-header {
    border-bottom: 2px solid #dcdcde;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #646970;
}
.acud-history-row {
    border-bottom: 1px solid #f0f0f1;
}
.acud-history-row:last-child {
    border-bottom: none;
}

/* column widths */
.acud-history-col-thumb  { flex: 0 0 85px; }
.acud-history-col-title  { flex: 1 1 auto; font-weight: 600; }
.acud-history-col-date   { flex: 0 0 140px; }
.acud-history-col-action { flex: 0 0 130px; text-align: right; }

/* mobile label (hidden on desktop) */
.acud-history-label {
    display: none;
}

/* Mobile: stack into cards */
@media (max-width: 640px) {
    .acud-history-header {
        display: none;
    }
    .acud-history-row {
        flex-wrap: wrap;
        padding: 14px 12px;
        gap: 8px;
    }
    .acud-history-col-thumb  { flex: 0 0 75px; }
    .acud-history-col-title  { flex: 1 1 calc(100% - 95px); }
    .acud-history-col-date   { flex: 0 0 100%; padding-left: 87px; font-size: 13px; }
    .acud-history-col-action { flex: 0 0 100%; padding-left: 87px; text-align: left; }

    .acud-history-label {
        display: inline;
        font-weight: 600;
        margin-right: 4px;
        color: #646970;
    }
}

/* Download notice (shown after a file is downloaded) */
.acud-download-notice {
    margin-bottom: 6px;
    font-size: 14px;
}
.acud-download-fallback {
    font-size: 13px;
    color: #646970;
}

/* Download history - empty state */
.acud-history-empty {
    color: #646970;
    font-style: italic;
    padding: 16px 0;
}

/* Credit banner — inserted before post content on locked/unlocked pages */
.acud-credit-banner {
    border-left: 4px solid #7923B2;
    border-radius: 3px;
    padding: 10px 16px;
    font-size: 14px;
    color: #1d2327;
    background: #FCF0F9;
}
.acud-credit-banner--unlocked {
    background: #f0faf0;
    border-left-color: #25aa00;
}
.acud-credit-banner--pending {
    background: linear-gradient(90deg, #e8f0f7 25%, #cfe0ef 50%, #e8f0f7 75%);
    background-size: 200% 100%;
    border-color: transparent;
    animation: acud-shimmer 1.4s infinite linear;
}
@keyframes acud-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Per-page credit button state indicators */
.acud-unlocked-badge,
.acud-credit-note {
    font-size: 0.8em;
    font-style: normal;
    font-weight: normal;
    display: block;
}
.acud-unlocked-badge {
    color: greenyellow;
}

/* Archive card badges — shared thumbnail positioning */
article.acud-card-loading .elementor-post__thumbnail__link,
div.acud-card-loading .elementor-widget-theme-post-featured-image a,
article.acud-card-locked .elementor-post__thumbnail__link,
div.acud-card-locked .elementor-widget-theme-post-featured-image a,
/* Unlocked badge on archive/listing post cards */
article.acud-page-unlocked .elementor-post__thumbnail__link,
div.acud-page-unlocked .elementor-widget-theme-post-featured-image a {
    position: relative;
    display: block;
}
article.acud-page-unlocked .elementor-post__thumbnail__link::before,
div.acud-page-unlocked .elementor-widget-theme-post-featured-image a::before {
    content: '\2713  Unlocked';
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(37, 170, 0, 0.88);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 9;
}

/* Loading shimmer badge */
article.acud-card-loading .elementor-post__thumbnail__link::before,
div.acud-card-loading .elementor-widget-theme-post-featured-image a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 72px;
    height: 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.35) 25%, rgba(255,255,255,0.65) 50%, rgba(255,255,255,0.35) 75%);
    background-size: 200% 100%;
    animation: acud-shimmer 1.4s infinite linear;
    border-radius: 3px;
    pointer-events: none;
    z-index: 9;
}

/* Locked / not-yet-downloaded badge */
article.acud-card-locked .elementor-post__thumbnail__link::before,
div.acud-card-locked .elementor-widget-theme-post-featured-image a::before {
    content: 'Not downloaded';
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(50, 50, 50, 0.65);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 9;
}

/* [acud_credits_bar] shortcode */
.acud-credits-bar {
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.4;
    color: #646970;
}
.acud-credits-bar__track {
    width: 100%;
    height: 8px;
    background: #dcdcde;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}
.acud-credits-bar__fill {
    height: 100%;
    background: #2271b1;
    border-radius: 4px;
    transition: width 0.3s ease;
    min-width: 2px;
}
.acud-credits-bar--low .acud-credits-bar__fill {
    background: #d63638;
}
.acud-credits-bar--low .acud-credits-bar__count {
    color: #d63638;
}
.acud-credits-bar__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.acud-credits-bar__reset {
    position: relative;
}
.acud-credits-bar__reset-date {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: #1d2327;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    padding: 3px 7px;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.acud-credits-bar__reset-date::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 10px;
    border: 4px solid transparent;
    border-top-color: #1d2327;
}
.acud-credits-bar__reset:hover .acud-credits-bar__reset-date {
    opacity: 1;
}
