/* Advertisement action bar: icon tiles with a label under each icon */
.ad-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 0.5rem;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px dashed #dee2e6;
}

.ad-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 72px;
    padding: 0;
    background: none;
    border: 0;
    color: #495057;
    text-decoration: none;
    cursor: pointer;
}

.ad-action:hover,
.ad-action:focus {
    color: #212529;
    text-decoration: none;
}

.ad-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ad-action:hover .ad-action-icon,
.ad-action:focus-visible .ad-action-icon {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ad-action-label {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.ad-action--media .ad-action-icon { background-color: #dc3545; }
.ad-action--share .ad-action-icon { background-color: #212529; }
.ad-action--link  .ad-action-icon { background-color: #6c757d; }
.ad-action--pdf   .ad-action-icon { background-color: #c62828; }
.ad-action--whatsapp .ad-action-icon { background-color: #25d366; }

@media (max-width: 575.98px) {
    .ad-action { width: calc(25% - 0.375rem); }
}
